Compilation of all the bots made for simplifying the repetetive tasks on various community platforms of OSDC.
- Open Getting Started - The Go Programming Language
- Follow the setup instructions as per your Operating System.
- Do make sure you have the Go version 1.13.
- Test your installation - https://golang.org/doc/install#testing
$ git clone https://github.com/osdc/bots
$ cd bots
$ git checkout -b <new-branch-name>
- Ping
@BotFather
on Telegram. - Send the message
/start
- Read the instructions and make a new bot for your personal testing by
/newbot
command. - Give a suitable name and username to the bot.
- You’ll get your bot API token as
89xxxxxxx:xxxxxxxxxxxxAAHmf32ZghS-cqxBLfnkUx9VwoXeOIRlnUQ
. - Copy it and save it in a file named as
/.env/
in your project folder.
- In the
telegram-bots
directory, rungo build .
- Export the Telegram API Token by running
export TELEGRAM_TOKEN=<your-token>
in thetelegram-bots
directory using terminal. - The build creates an executable with the name
telegram-bot
. Run it using./telegram-bot
. - Ping your bot at @<username_set>. You’l find the bot up and running.