Patrick-Botman is a Telegram bot that adds text to a random GIF from popular public databases such as Giphy and Tenor. This project was developed as a part of my study in .NET web development.
patrick-botman_demo.mp4
- Send a private message to the bot to add text to a random GIF.
- Use inline queries in any chat to add text to a random GIF.
- ASP.NET Core
- Telegram.Bot library for the backend
- FFmpeg for rendering MP4 with added text
Two services were implemented for handling the GIF functionality:
- GiphyService (Default): Implements the
IGifService
interface and handles requests to the Giphy API. - TenorService: Implements the
IGifService
interface and handles requests to the Tenor API.
By default, the GiphyService is used for fetching GIFs. If you want to use the TenorService instead, you can make the necessary changes in the code.
- Allow the bot to be added to group chats, where it can periodically respond to messages with GIFs (with the ability for users to set the time interval using commands).