Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

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 _bot. py, _send_message returns data where the button has approximately the following

InlineKeyboardButton(callback_data='55d7b83281da4ae58b389cb101cf391994723d6fb4c240b6b595b2bc8e88a535', text='text button')

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

I'm probably missing something due to my lack of knowledge in the area of “OOP”

You must be logged in to vote

Hey. arbitrary callback data is available only through ExtBot, so that's where you need to look:

if isinstance(result, Message):
self._insert_callback_data(result)

:)

Replies: 2 comments · 1 reply

Comment options

Hey. arbitrary callback data is available only through ExtBot, so that's where you need to look:

if isinstance(result, Message):
self._insert_callback_data(result)

:)

You must be logged in to vote
1 reply
@ergobound
Comment options

Thanks, it seems to happen in _callbackdatacache.py in the __get_keyboard_uuuid_and_button_data method. Method overriding is something I haven't come across yet. But the time has come

Answer selected by ergobound

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
⁉️
Q&A
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.