No PM Bot

nopm_bot telegram bot

Bot to remove messages which ask people to write private message.

Examples of messages which the bot removes:

  • pm
  • dm
  • text me
  • write me in pm
  • contact me


Follow these steps:

  • Add @nopm_bot as admin into your chatroom
  • Give bot a permission to delete messages. No other permissions are required
  • Configure notifications and language of notifications, see commands section.


  • /nopm config - see bot configuration for the current chat
  • /nopm check - check if bot is installed correctly.
  • /nopm set notify_actions=yes - tell bot to write explanation to the chat about deleted messages (recommended).
  • /nopm set notify_actions=no - tell bot to remove messages silently
  • /nopm set lang=LANG - setup language of bot messages. LANG could be en or ru.
  • /nopm reload_admins - ask bot to reload admin IDs for current chat. Admins list is collected once and cached. Use this command to update cached data.

All these commands have to be sent to the chat which you want to configure. Do not send this command in private message to the bot, it will ignore such private messages.


How to check if bot installed correctly?

First, complete installation instructions. Then type into chat this command: /nopm check. Fix any issues bot talkes about.