yukuku / telebot

Telegram Bot starter kit. Very easy to install with Google App Engine.
Apache License 2.0
689 stars 236 forks source link

Sending a welcome message to new group members #25

Closed Igetin closed 8 years ago

Igetin commented 9 years ago

Hi, how do I check if a new user is added to a group, using Telegram Bot starter kit? I'm planning to send a message every time someone joins a group chat.

Thanks in advance!

yukuku commented 8 years ago

It is not possible AFAIK. Telegram bots do not receive such events.

Igetin commented 8 years ago

I actually solved this already, there is a new_chat_participant parameter in the API, which can be used to message newly joined users in a group.

ADTC commented 8 years ago

@Igetin Put it on your fork? :)

sziyan commented 8 years ago

Would appreciate it if someone could give a example of the code.

Cant seem to get it to work.