diff --git a/src/lib/telegram.js b/src/lib/telegram.js index 324ac27..47df758 100644 --- a/src/lib/telegram.js +++ b/src/lib/telegram.js @@ -120,12 +120,13 @@ export default class Telegram { **/ sendReply(telegramMessage) { return new Promise((resolve, reject) => { - const properties = { + let properties = { userId: String(telegramMessage.chat.id), language: this.config.DEFAULT_LANGUAGE, network: 'telegram', }; if (this._classify(telegramMessage.text) === 'flood') { + properties.language = 'en'; // user speaks English this.bot.card(properties) .then((msg) => { const response = this._prepareLinkResponse(properties.userId, msg);