infrabot-io.github.io

Documentation

Documentation for infrabot


Integrated Commands


There are several integrated commands which might be turned off or given access to via config.json file:

  • /emergency
  • /getcommands
  • /reloadconfig
  • /showmyid

/emergency

This command shuts down infrabot service. Might be usable in an emergency situation.

Properties:

  • telegram_enable_emergency: true\false - Specifies if this command is enabled or not
  • telegram_allowed_users_id_emergency: 12345, 67890 - Specifies id numbers of users who can execute this command

/getcommands

This command shows a list of available commands to execute.

Properties:

  • telegram_allowed_users_id_getcommands: 12345, 67890 - Specifies id numbers of users who can execute this command

/reloadconfig

This command reloads config file as well as all plugins located in /plugins directory.

Properties:

  • telegram_enable_reloadconfig: true\false - Specifies if this command is enabled or not
  • telegram_allowed_users_id_reloadconfig: 12345, 67890 - Specifies id numbers of users who can execute this command

/showmyid

Properties:

  • telegram_enable_showmyid: true\false - Specifies if this command is enabled or not

This command shows Telegram Id of the user. Command may be useful when you want to give access to user and need his Telegram ID. You can ask user to execute this command and tell you his ID.