But when send_message takes what the _send_message function returns, there is approximately the following:
InlineKeyboardButton(callback_data=‘44’, text=‘text button’)Help me to find where this change happens. Thanks
\nI'm probably missing something due to my lack of knowledge in the area of “OOP”
","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"Hey. arbitrary callback data is available only through ExtBot, so that's where you need to look:
\n python-telegram-bot/src/telegram/ext/_extbot.py\n
\n\n Lines 653 to 654\n in\n c062712\n
\n| \n | if isinstance(result, Message): | \n
| \n | self._insert_callback_data(result) | \n
:)
","upvoteCount":1,"url":"https://github.com/python-telegram-bot/python-telegram-bot/discussions/4877#discussioncomment-13892273"}}}-
|
Hey, guys. While researching the PTB code, I couldn't find the lines of code where the uuid is changed to the normal value originally entered. In the script InlineKeyboardButton(callback_data='55d7b83281da4ae58b389cb101cf391994723d6fb4c240b6b595b2bc8e88a535', text='text button')But when send_message takes what the InlineKeyboardButton(callback_data=‘44’, text=‘text button’)Help me to find where this change happens. Thanks I'm probably missing something due to my lack of knowledge in the area of “OOP” |
Beta Was this translation helpful? Give feedback.
-
|
Hey. arbitrary callback data is available only through python-telegram-bot/src/telegram/ext/_extbot.py Lines 653 to 654 in c062712 :) |
Beta Was this translation helpful? Give feedback.
Hey. arbitrary callback data is available only through
ExtBot, so that's where you need to look:python-telegram-bot/src/telegram/ext/_extbot.py
Lines 653 to 654 in c062712
:)