Skip to content

Test task. Telegram echo bot with external API integration and DB data storage, using pyTelegramAPI

Notifications You must be signed in to change notification settings

RogerRabbit32/Python_TelegramBot---Test_Task

Repository files navigation

Python_TelegramBot---Test_Task

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.

About

Test task. Telegram echo bot with external API integration and DB data storage, using pyTelegramAPI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published