bots

package
v0.0.0-...-b7decda Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2020 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const PARSEMODE = "html"

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Command string
	Params  []string
}

type Session

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

func CommandParser

func CommandParser(s *Session) *Session

func NewSession

func NewSession(u *tgbotapi.Update, b *tgbotapi.BotAPI) (s *Session, err error)

func (*Session) Handle

func (s *Session) Handle()

Handle runs known commands for the user session

type TelegramBot

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

func NewTelegramBot

func NewTelegramBot(api string) *TelegramBot

func (TelegramBot) Update

func (telegram TelegramBot) Update()

Jump to

Keyboard shortcuts

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