go-telegram-networkcalculator-bot

command module
v0.0.0-...-6064506 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

README

Network Calculator Telegram Bot

Requirements

  • A Go compiler
  • A Telegram bot token

Installation

Install the Go-Telegram-Bot-Api library

go get -u github.com/go-telegram-bot-api/telegram-bot-api

Clone the bot repository

git clone https://github.com/Knocks83/go-Telegram-NetworkCalculator-Bot.git

Configuration

To start using the bot you have to configure it by editing the config/config.go file. In that file you have to set:

  • Token to your bot token.
  • RolesFile (optional) if you want to change the path of the JSON file that'll contain the admins and banned people.
  • LogChat (optional) to the ChatID of the chat you'll use as log.

You also have to add your UserID to the roles.json file, so you'll be able to use admin-only commands and add other people to the admin list directly from Telegram.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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