Skip to content
access your Mete account with a Telegram bot
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Pipfile
Pipfile.lock
README.md
dockerfile
run.py

README.md

telemete

access your Mete account with a Telegram bot

development

Simply clone this repository, run pipenv install --dev and you're good to go.

deployment

You can use the prebuilt Docker image or build it yourself.

configuration

You'll need a config file. It looks like this:

[mete_connection]
base_url = "http://mete/" # the URL of your Mete instance - please use HTTPS

[initial_admin] # information about the initial administrator
telegram_id = 1234 # can be obtained from t.me/userinfobot or @userinfobot on Telegram
telegram_handle = "foo"
mete_id = 5678

Please put the path to this config file in the environment variable CONFIG_FILE.

Additionally, there are two secret keys you can configure:

  • API_KEY (required): the key from Telegram's botfather
  • SENTRY_DSN (recommended): the key for the project in Sentry

Both can be given either using Docker's mechanism for secrets (prefix them with TELEMETE_) or as environment variables.

Sidenote: This bot requires all administrators to have a user handle on telegram for the purpose of users easily contacting them. So make sure only users with handles get promoted.

You can’t perform that action at this time.