go-telegram-bot-template

module
v0.0.0-...-9bdd6bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2022 License: GPL-3.0

README

Golang Telegram bot template

This project serves as a template for quickly creating chatbots in telegram based go-telegram-bot-api/telegram-bot-api.

Installation

  1. Install go mods
  2. Create config.ini file in folder ./configs
  3. Set your Telegram API KEY in telegramkey
  4. Build and run cmd/main.go

Usage

The template out of the box allows you to implement the following tasks:

  • Create commands handles for telegram bot
  • Create inline command handler
  • Repository structure (ChatRepository implemented) base on boltdb
  • Notification by CRON
  • Http server for your API
  • JWT authorization for api

Change log

Please see the changelog for more information on what has changed recently.

Contributing

ToDo:

  • Tests coverage for repositories
  • Tests coverage for handles
  • Add new telegram-bot api functions

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL