C
C
CatRoys2020-06-20 22:48:05
Python
CatRoys, 2020-06-20 22:48:05

How to get text from forwarded message?

Is it possible somehow to get the text from such a forwarded message:
5eee67618af32624264728.png
I tried to use an ordinary reply, it worked only on messages that are marked as "answer".
Here's how I got the text from the "reply" message:
reply_text = event.obj.reply_message['text']

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Guerro69, 2020-06-20
@CatRoys

text = event.raw['object']['fwd_messages'][0]['text']

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question