Answer the question
In order to leave comments, you need to log in
Why are callback_query.messege.from_user.id and messege.from_user.id different?
Why are callback_query.messege.from_user.id and messege.from_user.id different?
And how to make it so that callback_query.messege.from_user.id == messege.from_user.id if possible, thanks in advance
(callback_query.messege.from_user.id is a variable in
@bot.callback_query_handler(func=lambda call: True)
def callback_handler(callback_query):)
Answer the question
In order to leave comments, you need to log in
Hello. callback_query.message is the message object that the bot sent, and you get the bot ID.
Try to just output the callback_query object to the console and see what's in it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question