Sign inSign up

station8ops/telegram-callout-bot

By station8ops

•Updated about 23 hours ago

Image
0

10K+

station8ops/telegram-callout-bot repository overview

⁠NSRI Polling Bot

This bot creates a poll on a Telegram group when requested by a person in another admin group. There are several polls that can be sent based on the situation that requires them.

⁠Running

You will need the group IDs for the admin and general groups as well as a Telegram API token. The token is generated by the botfather⁠ on Telegram. Once you have registered your bot, you can add it to the groups you want to use. To get the group IDs you can use the Telegram API:

curl https://api.telegram.org/bot<YourBotToken>/getUpdates | grep chat

The ID of the chat is listed in the chat object.

The configuration file can be mounted to /nsribot.yml or configuration can be done using environment variables. The file location can be changed with the NSRI_BOT_CONFIG_FILE environment variable.

All configuration options can be set using environment variables:

docker run -e NSRI_BOT_TOKEN=<YourBotToken> station8ops/telegram-callout-bot:dev

⁠Environment Variables

  • NSRI_BOT_ADMIN: the admin channel used to create polls
  • NSRI_BOT_CHANNEL: the ops channel to send call-out polls to
  • NSRI_BOT_LINK: the link displayed on the general information command
  • NSRI_BOT_TOKEN: the Telegram API token used to authenticate the bot

Tag summary

Content type

Image

Digest

sha256:dbe514c1f…

Size

98.2 MB

Last updated

11 months ago

docker pull station8ops/telegram-callout-bot