/fortelegram-bot

Telegram bot written in fortran

Primary LanguageFortran

ftg-bot - fortelegram-bot

A simple telegram bot implementation, written in fortran

2023-09-02.20-20-47.mp4

Prerequisites

  • Fortran compiler
  • On Ubuntu, you need to install the curl development headers. Use the following command:

sudo apt install -y libcurl4-openssl-dev

Installation

  1. Clone repo
git clone https://github.com/vypivshiy/fortelegram-bot
  1. Add bot token variable

bash

export BOT_TOKEN="YOUR_BOT_TOKEN"

fish

set BOT_TOKEN "YOUR_BOT_TOKEN"
  1. Compile the package using fpm:
cd fortelegram-bot
fpm build
fpm run

Commands

  • hello - send hi! message
  • !echo - send passed (eg: !echo test123 > test123, !echo a b c > a b c)
  • !cat - send cat picture �
  • other text - show available commands

Used libs: