This project represents a simple Telegram echo bot with a couple of additional features.
The standard bot behavior is simply replying to any text messages from the user with the same message text, any other content (e.g. photos, videos) is ignored. However, some commands implement additional features.
The available bot commands are:
/start - Replies to the user with a standard greeting
/api - Sends request to an external API (https://xkcd.com/), fetches a random comic
and replies to the user with its picture and a caption to it
/profile - Retrieves the user profile data from the app database, replies to the user
with their ID and username in the system (saved as Telegram ID and username)
and the message history with the bot, stored in the database
To launch the project, run the command
docker-compose up
The project utilizes Docker volumes, so there should be no DB data losses.