A DeepInfra Telegram Bot based on https://github.com/topkecleon/telegram-bot-bash
Be responsible!
- The contributors to this repository take no responsiblity for the costs that you may incur when setting up and using the services offered by DeepInfra
- The contributors to this repository take no responsiblity for the setup and security of your Telegram Bot
It is assumed that you are:
- familiar with Docker, having Docker Desktop / Docker CE installed on your system.
- familiar with Telegram and using bots within the Telegram ecosystem
This project includes a DeepInfra API collection created using Bruno: Opensource IDE for exploring and testing APIs.
Visit https://www.usebruno.com/downloads to download the Bruno installer for your system.
You can use the API collection to explore the available interactions with the DeepInfra ecosystem.
Lets not re-invent the wheel! Follow the steps on this page.
Create your botconfig.jssh
and botacl
from the examples provided in boconfig.jssh.sample
and botacl.sample
.
cp -n botconfig.jssh.sample botconfig.jssh
cp -n botacl.sample botacl
Update the relevant fields based on your Telegram configuration.
Start up your local Docker services (this may be Docker Desktop or Docker CE, depending on your configuration).
docker compose up -d
Visit your bot in Telegram and click the Start
button.
Your bot should respond with a message such as: Hi, you are the first user after startup!
.
This is a paid service. Make sure to read DeepInfra's documentation before you use their services.
- Visit https://deepinfra.com/ and register an account
- Visit your
Dashboard > Settings
and set a reasonable payment limit based on your financial situation - Visit your
Dashboard > API Keys
to create an API key for use with this project
cp -n .env.sample .env
cp -n bruno/.env.sample bruno/.env
Edit the above files in your favourite text editor, updating the DEEPINFRA_API_KEY
key with the key created in the preceding section.
docker compose up -d