Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I make my Telegram bot for private chat only (not groups)?

Is it possible to prevent my bot from being invited into groups and for it to only be available for private chat? I intend to create a bot that will give user-specific information and this would be confusing within a group.

like image 605
Abbie Avatar asked Jun 21 '17 10:06

Abbie


People also ask

What is privacy mode in Telegram bot?

A bot running in privacy mode will not receive all messages that people send to the group. Instead, it will only receive: Messages that start with a slash '/' Replies to the bot's own messages. Service messages (such as member join and left notifications)

How can I restrict group messages in Telegram?

Open the Group or Channel on Telegram and tap on the Info page. Tap on the edit button on the top right corner. Go to Group / Channel Type. Tap on Restrict Saving Content option.

Can a Telegram bot initiate a conversation?

Telegram Bots can't initiate a conversation with a user. Only an user can initiate it by clicking on the start button.


1 Answers

Sure, you can use /setjoingroups command in @BotFather.

BTW, there has leaveChat, you can leave yourself if your bot joined group before set this.

like image 101
Sean Avatar answered Oct 19 '22 20:10

Sean