Telegram Bot. GetUpdates

(West) #1

Good Day!

I need to make filter for check forward id message.

For example:
I cant use getUpdates, because currently flow xo webhook on bot and i cant use that Method.
When someone forward message another user or from chat, bot etc. telegram gives that type of information:

“forward_from”:{“id”:123456789,“is_bot”:true,“first_name”:“botname”,“username”:superbotbot"}

*example from frorward another bot message.

Can i legal have that data?
Or i can create and use another bot like listener (users send to him data, and main bot check updates and filtred messages), without webhooks, but how i can get that information by webhook? I meen what code i need to get that data?

Thanks alot!