G
G
GineTik2020-07-05 23:03:22
Python
GineTik, 2020-07-05 23:03:22

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

1 answer(s)
D
Dmitry Link, 2020-07-05
@GineTik

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 question

Ask a Question

731 491 924 answers to any question