mikla / telegram-bot-fs2

Example telegram bot implementation using fs2 and http4s client (no akka)

Home Page:http://pavkin.ru/writing-a-simple-telegram-bot-with-tagless-final-http4s-and-fs2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram Bot FS2

Example purely functional telegram bot implementation with FS2 and http4s client.

Uses Scala 3 and cats-effect 3

Launching the bot

  1. Create a new bot for yourself with @BotFather: https://core.telegram.org/bots#6-botfather
  2. Export the token to env variables: export TODOLIST_BOT_TOKEN=<tokem>
  3. sbt run
  4. Just chat with the bot using your telegram app!

About

Example telegram bot implementation using fs2 and http4s client (no akka)

http://pavkin.ru/writing-a-simple-telegram-bot-with-tagless-final-http4s-and-fs2/


Languages

Language:Scala 100.0%