a group , but I wanna know who add the bot to group? how can I code it?
bots can't join groups on their own
I know , someone added bot to group , I wanna know who added the bot?
that info should be in the update, print it and check what the field name is
do you used python-telegram-bot? this library uses getUpdates method and I think it's not best practise...
Check the from_user field: https://core.telegram.org/bots/api#message
long polling is perfectly fine, why do you think that
ptb also supports webhooks, not only getUpdates. But using getUpdates is perfectly fine, as Simon said.
Обсуждают сегодня