Skip to content
Sahri Riza Umami edited this page Jul 10, 2016 · 4 revisions

Various uncategorized functions.

Bin

Run bots host shell system command. The command is executed by the same user who is running the bot.

WARNING: This plugin interfaces with your operating system. Even without root privileges, a bad command can be harmful.

Command Description
!bin <command> Run a system command.

Example:

  • !bin git pull
  • !bin sudo restart merbot

Blocking

Block and or unblock user.

Command Description
!block <user_id> Block user_id.
!unblock <user_id> Unblock user_id.

Example:

  • !block 123456789
  • !unblock 987654321

Bot API

Message formatting only enabled for bot API. Merbot uses bot API to send pretty message.
When first deploying merbot, the installation wizard will asking for bot API token.
If need to change the token, use following command:

Command Description
!bot token <bot_api_key> Input bot API key.

Example:
!bot token 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11


Join

Bot can join/invited into a group by replying a message contain an invite link or by typing !join [invite link].

If there is more than one invite link in the replied message, first invite link is taken.

Command Description
!join When type by replying to a message contain invite link of a group, will invite the bot into that group.
!Join [invite link] Invite the bot into a group chat via its invite link.

Example:
!join https://telegram.me/joinchat/AfB26wGZCneNyiS2qrYBxQ


Version

Shows bot version.

Command Description
!version Shows bot version.