Ashkan
Ashkan

Reputation: 1378

Don't let member to send message in telegram group

I'm looking for a way in telegram group that don't let member to send message or, delete message after a person send.

Is it possible to create a bot like this how help admins to stop chatting after start the bot? Is there any other way to do this?

Upvotes: 8

Views: 35596

Answers (4)

user24258854
user24258854

Reputation: 1

Using the ChatPermissions API, you can directly set a global mute for all members. https://core.telegram.org/bots/api#chatpermissions

Upvotes: 0

teleme.io
teleme.io

Reputation: 860

@telemethebot has exact the feature you request:

Silent Mode

When group silent mode switched on, only group administrators can speak in that group. This help you turning your Telegram supergroup to a channel temporarily.

Teleme - Features

Upvotes: 1

Hoi_A
Hoi_A

Reputation: 492

11/07/18: This answer is no longer up to date please look at woozly's answer


Short answer: No (at least not with the bot api)

Longer answer: There currently is no way of stopping someone from chatting without outright kicking them out of the group. Additionally, bots currently lack the ability to delete messages so that's also not doable with the bot API.


Edit: Actually it's probably possible using the Telegram API instead of the Telegram Bot API where you would just create a regular user which is controlled programmatically to delete messages of "muted" people. I assume that this is likely not as simple as doing stuff with the bot API but in theory, it's possible.

Upvotes: 3

woozly
woozly

Reputation: 1369

Now you can do this.

Restriction from chatting in group:

Now you can achieve this with restrictChatMember() Bot API method.

Deletion of users' messages:

For deletion use this method: deleteMessage()

DON'T forget to grant admin rights to your bot.

Upvotes: 3

Related Questions