links

versions

use

First of all you need to create config. Default config name is ${HOME}/.telegram-bot/config
Then you need to login. If you want to login as bot you need to run telegram-bot -p profile-name --login --bot=bot-token. If you want to login as user you need to run telegram-bot -p profile-name --login --phone=phone-number.
Now you can run commands. There are two ways to do it: you can use json interface (via stdin or tcp connections) and lua script. To understand how to serialze commands you need to read examples and tl scheme.