U
U
uIitka2021-06-01 20:43:06
Python
uIitka, 2021-06-01 20:43:06

How to find out id through replay?

I want to get the id of the user whose message I will reply to, for example:
a: hello
b: duel (with a replay to the message of user a)
Is there any way to get the id of user a?
(telebot)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-06-01
@uIitka

You can, in the Message object there is a field reply_to_messagethat contains the initial Message. Well, it has a field fromwith type User , which has a fieldid

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question