get the chat a message was forwarded from

171 Views Asked by At

So what im trying to do is get the chat a message was forwarded from, possibly all chats it went through in between if thats a thing. this is a slightly edited Program_ListenUpdates example

I tried doing this with fwd_from but it always has no values and prints blank

1

There are 1 best solutions below

4
On

message.fwd_from may be null if message is not a forward. If not null, it holds only limited information about the forward. Often you can't trace back to the source of the forward if it's not from a public channel.

In general, you can't obtain more information using Telegram Client API that you can obtain using the official Client apps.

So don't expect to be able to trace a message through all intermediate forwards (especially since nowadays it is possible to forward a message and mask the fact it is a forward)