mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49: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 Strings = getStrings(ctx.from.language_code);
|
||||||
const options = {reply_markup: JSON.stringify({
|
const options = {reply_markup: JSON.stringify({
|
||||||
inline_keyboard: [
|
inline_keyboard: [
|
||||||
[{ text: String.goback, callback_data: '5' }],
|
[{ text: Strings.goback, callback_data: '5' }],
|
||||||
]})
|
]})
|
||||||
};
|
};
|
||||||
switch (callbackData) {
|
switch (callbackData) {
|
||||||
@ -61,7 +61,7 @@ module.exports = (bot) => {
|
|||||||
break;
|
break;
|
||||||
case '4':
|
case '4':
|
||||||
await ctx.answerCbQuery();
|
await ctx.answerCbQuery();
|
||||||
await ctx.editMessageText(Strings.botinfo, options);
|
await ctx.editMessageText(Strings.botInfoHelp, options);
|
||||||
break;
|
break;
|
||||||
case '5':
|
case '5':
|
||||||
await ctx.answerCbQuery();
|
await ctx.answerCbQuery();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user