An attempt at creating a Telegram Bot for the ElixirDelhi Telegram group.
- Greeting new members
- Processing Telegram's Global Commands
Currently, the bot is deployed on fly.io. To deploy changes to production, simply run:
fly launch # first time setup only
fly deploy
The bot requires the following environment variables to be set:
-
BOT_TOKEN
- the token for the Telegram bot. Check out the docs about how to create a bot and get your token. -
DATA_DIR
- the path to the/data
directory on the server, optional.
It is important to note that the bot runs on a single server currently, since it's polling for Telegram Updates, rather than listening for them.
Although it shouldn't be too difficult to switch to a webhook-based approach ๐.
Currently, exporting necessary environment variables, starting iex and adding a member to the ElixirDelhiBot Playground.