Made with Oleksandr Orlov - using this repo as example
This repository contains a FastAPI-based web application that functions as a Telegram bot for searching and sharing GIFs using the Giphy API. The bot interacts with users through Telegram messages and responds with GIFs based on user prompts. It features the following functionalities:
-
Webhook Setup: The bot can be set up to use a webhook to receive messages from Telegram. It provides endpoints for setting up and removing the webhook.
-
GIF Searching: Users can send a text prompt to the bot, and it will search the Giphy API for GIFs related to the prompt. If GIFs are found, the bot responds with a link to the first GIF. If no matching GIFs are found, it provides an appropriate message.
-
Commands: The bot responds to commands like
"/start"
and"/stop"
. The"/start"
command provides a welcome message and instructions, while the"/stop"
command bids farewell to the user. -
Messaging: The bot can send messages to users with GIF search results, prompts, and instructions.