ameerali19
ameerali19

Reputation: 1

How to set Bot to auto welcome message or group rules to new join member or subscriber- Telegram

How can i set a auto welcome message and group rules to new joining members to the group. I saw many videos in Youtube with bots (which are created by others), Is there any simply way to set a welcome messages with group rules with a facebook link with OWN BOT i mean the Bot which we created

Upvotes: 0

Views: 6346

Answers (1)

marcopiii
marcopiii

Reputation: 888

The method getUpdates will give you an array of Updates. If the update is due to a new member entering the chat you will find update.message.new_chat_members which will have an array of Users.

So when you get an update new_chat_members then you can make your bot send any message you want with sendMessage

Check the API documentation here and here.

Upvotes: 0

Related Questions