With this code , my bot can understand added to

a group , but I wanna know who add the bot to group? how can I code it?

7 ответов

26 просмотров

bots can't join groups on their own

Hirad-Sajde Автор вопроса
⟨ Simon | Schürrle ⟩
bots can't join groups on their own

I know , someone added bot to group , I wanna know who added the bot?

Hirad Sajde
I know , someone added bot to group , I wanna know...

that info should be in the update, print it and check what the field name is

Hirad-Sajde Автор вопроса
⟨ Simon | Schürrle ⟩
that info should be in the update, print it and ch...

do you used python-telegram-bot? this library uses getUpdates method and I think it's not best practise...

Hirad Sajde
I know , someone added bot to group , I wanna know...

Check the from_user field: https://core.telegram.org/bots/api#message

Hirad Sajde
do you used python-telegram-bot? this library uses...

long polling is perfectly fine, why do you think that

Hirad Sajde
do you used python-telegram-bot? this library uses...

ptb also supports webhooks, not only getUpdates. But using getUpdates is perfectly fine, as Simon said.

Похожие вопросы

Карта сайта