class CallbackQueryController extends TelegramBaseCallbackQueryController {
/**
*
*
@param {CallbackQuery} query
*/
handle(query) {
if(
query.data == 'nextFirst') {
tg.api.editMessageText('newtext', {
chat_id:
query.message.chat.id,
message_id: query.message.messageId,
reply_markup: JSON.stringify({
inline_keyboard: [
[
{
type: 'inline_keyboard',
text: '[1]',
callback_data: 'nextFirst'
},
{
type: 'inline_keyboard',
text: '[1]',
callback_data: 'nextSecond'
}
]
]
})
})
}
}
}