fix: getStrings correctly and change botInfo help

This commit is contained in:
GiovaniFZ 2024-09-08 14:10:50 -03:00
parent dadbf02e9e
commit 56e1977206

View File

@ -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();