ftg-bot - fortelegram-bot
September 2, 2023 · View on GitHub
A simple telegram bot implementation, written in fortran
https://github.com/vypivshiy/ftg-bot/assets/59173419/96699867-beb3-4501-b03d-1a95f2e78f18
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
- 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
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