A message is displayed without an inline keyboard. I didn’t notice any syntax errors, and I couldn’t find anything on the Internet.
function addDescription(ctx) {
const keyboard = Markup.inlineKeyboard([
[Markup.button.callback('❌ Пропустить', 'noDescription')],
]);
ctx.reply("Теперь добавьте описание к фотографии", { reply_markup: keyboard, parse_mode: 'Markdown' });
}
2
Answers
To address your issue, it’s important to understand the format in which you need to send keyboard data. Could you specify which library you are using?
One potential solution is to try sending a keyboard message without using any library, as the format of the keyboard array might differ from the one used in libraries. For instance, if you consider a simple keyboard, the array structure upon sending looks like this:
Remember, the exact format may vary based on the library or framework you’re using, so knowing that will help in providing a more precise solution.
Try changing the reply method as showed in this example:
Maybe just sending back keyboard will be enough
Also, check this source for more examples