node-telegram-bot-api icon indicating copy to clipboard operation
node-telegram-bot-api copied to clipboard

Question/Bug: using both callback_data and login_url into an InlineKeyboardButton

Open nichis opened this issue 5 years ago • 2 comments

I have added two InlineKeyboardButton with login_url in a message. When I click on one of them the bot doesn't receive any inline_query message, so I added also the field callback_data but in this way the field login_url is not working anymore.

Are these two fields not compatible togheter?

nichis avatar Mar 28 '20 23:03 nichis

you can do this with callback requery like this

bot.on('callback_query', query => {}

cankilinc-zz avatar Mar 30 '20 13:03 cankilinc-zz

you can do this with callback requery like this

bot.on('callback_query', query => {}

yes of course, using the field callback_data , but in this way the field login_url is not working. I have to remove callback_data no enable login_url

nichis avatar Mar 30 '20 13:03 nichis