telegram-bot-bash
cp commands.sh.dist commands.sh; cp mycommands.sh.dist mycommands.sh
./bashbot.sh init
to setup the environment and enter your Bots token given by botfather.Now your Bot is ready to start …
If you are new to Bot development read Bots: An introduction for developers
As an alternative to download the zip files, you can clone the github repository to get the latest improvements/fixes.
git clone https://github.com/topkecleon/telegram-bot-bash.git
telegram-bot-bash
test/ALL-tests.sh
and if everthing finish OK …sudo ./bashbot.sh init
to setup the environment and enter your Bots token given by botfather.sudo ./bashbot.sh init
to setup your environment after the updateFrom version 0.70 on the tmp dir is renamed to ‘data-bot-bash’ to reflect the fact that not only temporary files are stored. an existing ‘tmp-bot-bash’ will be automatically renamed after update.
From version 0.50 on the temporary files are no more placed in ‘/tmp’. instead a dedicated tmp dir is used.
From Version 0.60 on keybord format for send_keyboard
and send_message "mykeyboardstartshere ..."
was changed. Keybords are now defined in JSON Array notation e.g. “[ \“yes\” , \“no\” ]”. This has the advantage that you can create any type of keyboard supported by Telegram. The old format is supported for backward compatibility, but may fail for corner cases.
Example Keyboards: