Telegram bot to interact with the BecauseOfProg API
A simple goal: search for publications using an inline query.
Make sure you have Git and Go 1.15 installed on your machine.
Clone the repository locally:
git clone https://github.com:BecauseOfProg/BecauseOfProg_Bot.git # HTTPS
git clone [email protected]:BecauseOfProg/BecauseOfProg_Bot # SSH
Install the dependencies using go modules with the go get
command. You can also use the dependency manager of your choice. Every dependency is listed in the go.mod file.
Initialize these environment variables:
TELEGRAM_APITOKEN
- the token of your bot (get one with @BotFather)BOT_ENV
- Set it to "development" to get detailed debug logs
You can also create a .env
file at the root of the directory.
Finally, start the bot with go run
or build the project with go build
.
- Maintainer: Théo Vidal
- Library: telegram-bot-api
This code is protected under the GNU GPL v3 license.