Example of a purely functional telegram bot built on top of cats-effect, fs2 and http4s client libraries.
- Create a new bot with @BotFather: https://core.telegram.org/bots#6-botfather
- Register an application for giphy https://developers.giphy.com/, get the token
- Export the tokens as environment variables:
export GIPHY_TOKEN=<token>
export TELEGRAM_TOKEN=<tokn>
- Run
sbt run
from console - Chat with the bot to get gifs