This is a simple example of using the Meteum API to creating a Telegram chat bot.
If you are looking for a more in-depth guide and reference for the Meteum GraphQL API, please refer to documentation.
Before launching this project, you should create a chatbot using @BotFather, following the instructions.
Here are the next steps for bot quick launch:
-
Register and get free trial at Meteum website.
-
Install Python from the official website.
-
Install Pipenv via pip.
-
Clone or download this repository.
git clone https://github.com/meteum-ai/meteum-telegram-bot.git
-
Prepare environment and install dependencies.
# Meteum API token. Don't hesitate to use our free trial. echo API_TOKEN=... > .env # The bot token that you received from BotFather. echo BOT_TOKEN=... >>.env
-
Run the bot.
pipenv run python bot.py