mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 04:39:57 +00:00
fix: getStrings correctly and change botInfo help
This commit is contained in:
parent
dadbf02e9e
commit
56e1977206
@ -43,7 +43,7 @@ module.exports = (bot) => {
|
||||
const Strings = getStrings(ctx.from.language_code);
|
||||
const options = {reply_markup: JSON.stringify({
|
||||
inline_keyboard: [
|
||||
[{ text: String.goback, callback_data: '5' }],
|
||||
[{ text: Strings.goback, callback_data: '5' }],
|
||||
]})
|
||||
};
|
||||
switch (callbackData) {
|
||||
@ -61,7 +61,7 @@ module.exports = (bot) => {
|
||||
break;
|
||||
case '4':
|
||||
await ctx.answerCbQuery();
|
||||
await ctx.editMessageText(Strings.botinfo, options);
|
||||
await ctx.editMessageText(Strings.botInfoHelp, options);
|
||||
break;
|
||||
case '5':
|
||||
await ctx.answerCbQuery();
|
||||
|
Loading…
x
Reference in New Issue
Block a user