This wrapper allows you to easily interact with Telegram bot APIs.
Sourcing telebash.sh will give you the command telegram, which you can use together with all available API methods (https://core.telegram.org/bots/api#available-methods).
You can also use this wrapper as a bot (the script will process every new update got with getUpdates method); a module manager and some modules are provided.
-
Launch
setup.shto install all the dependencies -
Copy
example_variables.shtovariables.sh -
Put a bot token in
variables.sh -
Edit additional variables in
variables.sh
-
Source all functions and variables with
source telebash.sh
-
Launch the bot by typing
./telebash.sh
- Easy to understand (after all, it's Bash, no?)
- A wrapper with multiple functions is included to send and receive informations from Telegram
- Module-based, so you can add and remove modules as you like
- weather | Get weather updates of a city
- speedtest | Test bot's Internet connection speed
- CI | Automated CI system, you can trigger AOSP custom ROMs and custom recoveries building, with progress updating
- cowsay
- neofetch
- And more...
Want to see how this bot works or you want to create a module for this bot?
Head over to the wiki for more informations