Skip to content

vypivshiy/fortelegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Telegram bot written in fortran

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published