Skip to content
\n

But when send_message takes what the _send_message function returns, there is approximately the following:

\n
InlineKeyboardButton(callback_data=44’, text=text button’)
\n

Help me to find where this change happens. Thanks

\n

I'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

\n
\n

\n python-telegram-bot/src/telegram/ext/_extbot.py\n

\n

\n Lines 653 to 654\n in\n c062712\n

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

\n

:)

","upvoteCount":1,"url":"https://github.com/python-telegram-bot/python-telegram-bot/discussions/4877#discussioncomment-13892273"}}}
Discussion options

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

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

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