Categorygithub.com/BecauseOfProg/BecauseOfProg_Bot
modulepackage
0.0.0-20210117182959-8c00a2b96f1c
Repository: https://github.com/becauseofprog/becauseofprog_bot.git
Documentation: pkg.go.dev

# README

BecauseOfProg_Bot

Telegram bot to interact with the BecauseOfProg API

t.me/BecauseOfProg_Bot

🌈 Features

A simple goal: search for publications using an inline query.

πŸ’» Development

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.

πŸ“œ Credits

πŸ” License

This code is protected under the GNU GPL v3 license.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
HandleInlineQuery handles an inline query from a user (here: suggest publications to send into the channel).