Compare commits
No commits in common. "2ca39208d9bc24f47e579f11147c37593a13da87" and "1d5c29564f17029e224750855c237e7cc5d8d1ea" have entirely different histories.
2ca39208d9
...
1d5c29564f
|
@ -5,18 +5,16 @@ module.exports = (bot, feedback_id) => (ctx) => {
|
|||
|
||||
const from = ctx.message.from;
|
||||
let contactable = "The developer might contact you regarding your feedback.";
|
||||
let message;
|
||||
if (from.username) {
|
||||
|
||||
message = `Feedback from: @${from.username}`;
|
||||
bot.telegram.sendMessage(feedback_id, `Feedback from: @${from.username}`);
|
||||
|
||||
} else {
|
||||
|
||||
contactable = "The developer might not be able to contact you due to lack of your username.";
|
||||
message = `Feedback from User ${from.id}`;
|
||||
|
||||
}
|
||||
bot.telegram.sendMessage(feedback_id, `${message} ${ctx.message.text}`).catch(console.log);
|
||||
ctx.forwardMessage(feedback_id);
|
||||
return `Thanks for the feedback! ${contactable}`;
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue