You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I've just noticed with InlineKeyboard callbacks is that somehow in my case c.Context().Data contains both unique button identifier and button data divided by pipe ("|") symbol and preceded by some whitespace characters I didn't care to define. Here's an example of how you can work around it:
set property of button with constant string "nav_merchant", but invisible character 'FF' insert in string when handling callback.
code like:
above log output like this, same text but different length
[nav_merchant/13] not equal [nav_merchant/12]
when copy this log to text editor, this a abnormal at head of string
same problem to context.Callback().Data and context.Data()
The text was updated successfully, but these errors were encountered: