Freq Robot

freqrobot telegram bot

Freq Robot allows chat administrator to limit number of messages users can write to chat. You can limit users by number of messages per minute, hour and day. Messages counter resets at the start of each period (minute, hour or day). You can set upt timezone offset to reset per day message counter regarding your time zone.

Install

Follow these steps:

  • Add @FreqRobot as admin into your chatroom
  • Give bot a permission to delete messages. No other permissions are required
  • Configure how many messages users can write, see Commands section for details.

Commands

  • /freq set limit_day=N - set maximum number of messages user can write to chat per day. For example, to limit users with 10 messages per day use command /freq set limit_day=10. Use zero value to disable limit. Zero does not mean user can't write any message, zero means user can write any number of messages.
  • /freq set tz_offset=N - set timezone offset in hours to reset per day message counter regarding timezone of your chat. For example, if your chat time is Moscow (GMT+3), use this command /freq set tz_offset=3
  • /freq set limit_hour=N - set maximum number of messages user can write to chat per hour.
  • /freq set limit_minute=N - set maximum number of messages user can write to chat per minute.
  • /freq set lang=<lang-code> - setup language of notifications. Valid values for this settings is en and ru.
  • /freq config - see bot configuration for the current chat i.e. see which languages are blocked
  • /freq check - check if bot is installed correctly.
  • /freq set notify_actions=yes - tell bot to log his actions into chat
  • /freq set notify_actions=no - tell bot to remove messages silently
  • /freq 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.
  • /freq add user-whitelist ID - add a user to whitelist i.e. allow any message from this user. Here, ID is a numeric Telegram ID of a user.
  • /freq wluser - add a user to whitelist i.e. allow any message from this user. Use this command in a reply to message of user which you want to whitelist.
  • /freq remove user-whitelist ID - remove ID from list of whitelisted users
  • /freq delwluser - remove a user from whitelist. Use this command in a reply to a message of user which you want to remove from whitelist.

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.

FAQ

How to check if bot installed correctly?

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