mullwar / telebot

The easy way to write Telegram bots in Node.js
https://www.npmjs.com/package/telebot
MIT License
1.48k stars 270 forks source link

No button is created via callback. What to do? #180

Closed tanc41 closed 4 years ago

tanc41 commented 4 years ago

No button is created via callback. What to do? There is a bot on telebot The mongodb database writes the file_id value from the photo When trying to bring from the database to the button via callback, displays [bot.error.event] { ok: false, error_code: 400, description: 'Bad Request: BUTTON_DATA_INVALID' }

CODE [bot.inlineButton ('test', {callback: img _ $ {img}})]

I assume file_id is greater than 64 bytes. Is there any way around this?