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
  • /remindme
  • /showmyid

/emergency

Properties:

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

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


/getcommands

Properties:

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

This command shows available commands to execute. If command_show_in_get_commands_list of the command has been set to false, then that command will not be shown in the list.


/reloadconfig

Properties:

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

This command reloads config file. You can apply changed config without restarting infrabot service.


/remindme

Properties:

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

This command shows message at the specified time. Usage:

/remindme 23 45 Your Message To Show

where the first number is Hour and the second one is Minute. All arguments must be separated with " " (space). First and second arguments must be integer numbers. You can find more about this here.


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