telegram

package
v0.0.0-...-fc364c1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BYTE = 1 << (10 * iota)
	KILOBYTE
	MEGABYTE
	GIGABYTE
	TERABYTE
)

Variables

View Source
var (
	BotName            string
	RedirectBotAddress = "https://t.me/"
)

Functions

This section is empty.

Types

type Bot

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

func NewBot

func NewBot(
	token string,
	debug bool,
	tokenStore storage.AccessTokenStorage,
	stateStore *storage.StateStore,
	oAuth *github.OAuth) (*Bot, error)

func (*Bot) InformAuth

func (b *Bot) InformAuth(chatId int64, result bool)

func (*Bot) ReadUpdates

func (b *Bot) ReadUpdates()

Jump to

Keyboard shortcuts

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