Telegraf: inlinekeyboard callbackbutton Action character limit

Created on 5 Jul 2017  路  1Comment  路  Source: telegraf/telegraf

Hey there

i should transfer some data with inline keyboard callbackbutton action

ctx.reply(' scene ${S.result[key].Name} ', Extra.HTML().markup((m) => m.inlineKeyboard([ m.callbackButton( | run scene | ,SceneON馃幓${S.result[key].idx}馃幓馃幏${S.result[key].Name}馃幏) ]) ))

some times the variables are long and this error happens

(node:545692) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: 400: Bad Request: BUTTON_DATA_INVALID

what should i do ? is there any ways to expand this limit?

question

Most helpful comment

Well, I guess there is no way to expand this limit. Though, you could try to use sessions with an object to transfer your data.

>All comments

Well, I guess there is no way to expand this limit. Though, you could try to use sessions with an object to transfer your data.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kmahsi picture kmahsi  路  3Comments

bostrot picture bostrot  路  3Comments

sijie123 picture sijie123  路  3Comments

alkhimey picture alkhimey  路  3Comments

agstover picture agstover  路  3Comments