Skip to content

Library to convert old style tg-cli based Telegram bots to API bots

License

Notifications You must be signed in to change notification settings

LucentW/tgcli-shim

Repository files navigation

tgcli-shim

A shim library based on otouto's core to convert tg-cli based bots such as TeleSeed or uzzbot to Bot API 2.0.

This library is highly experimental, and it's being actively developed.

Setup

You must have Lua (5.2+), lua-socket, lua-sec, and lua-cjson installed. To upload files, you must have curl installed. To use fortune.lua, you must have fortune installed.

Clone the repository and set the following values in config.lua:

  • bot_api_key as your bot authorization token from the BotFather.
  • time_offset (optional) as the difference, in seconds, of your system clock to UTC.

When you are ready to start the bot, run ./launch.sh. If you terminate the bot manually, you risk data loss. If you do you not want the bot to restart automatically, run it with lua tgcli-shim.lua.

About

Library to convert old style tg-cli based Telegram bots to API bots

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published