D
D
Duzive2019-09-20 15:21:23
Python
Duzive, 2019-09-20 15:21:23

How to get the user id from a forwarded message?

Made a function to remove a user from a chat. It is necessary to learn from_id from the forwarded message. I used the event.obj.reply_message method, but it gives out all the information about the user. How can I extract from_id from the result, or are there other methods?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
quick_6_response, 2019-09-20
@duzive

message.forwards[0].senderId

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question