bot

package
v0.0.0-...-351a7ce Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCorrectIDS

func ParseCorrectIDS(path string) error

ParseCorrectIDS парсит json-файл, в котором содержится список корректных id

Types

type Bot

type Bot struct {
	// contains filtered or unexported fields
}

Bot надстрройка над tgbotapi.BotAPI

func NewBot

func NewBot() (*Bot, error)

NewBot инициализирует бота

func (*Bot) StartPooling

func (bot *Bot) StartPooling(stopChan chan struct{})

StartPooling начинает перехватывать сообщения

Jump to

Keyboard shortcuts

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