A simple telegram bot implementation, written in fortran
2023-09-02.20-20-47.mp4
- Fortran compiler
- On Ubuntu, you need to install the curl development headers. Use the following command:
sudo apt install -y libcurl4-openssl-dev
- Clone repo
git clone https://github.com/vypivshiy/fortelegram-bot
- Add bot token variable
bash
export BOT_TOKEN="YOUR_BOT_TOKEN"
fish
set BOT_TOKEN "YOUR_BOT_TOKEN"
- Compile the package using fpm:
cd fortelegram-bot
fpm build
fpm run
- 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