Search code examples
botstelegramtelegram-bot

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?


Solution

  • 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.