telegram

package
v0.0.0-...-52bf530 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionTag      = "action"
	NoOperationTag = "nop"
)
View Source
const LONG_POLLER_TIMEOUT = 10 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	*telebot.Bot
	// contains filtered or unexported fields
}

func NewBot

func NewBot(app *app.App, token string) (*Bot, error)

func (*Bot) ConstructMarkup

func (b *Bot) ConstructMarkup(instanceId string, markupStr string) (string, *telebot.ReplyMarkup, error)

func (*Bot) HandleAction

func (b *Bot) HandleAction(c telebot.Context) error

func (*Bot) HandleCallback

func (b *Bot) HandleCallback(c telebot.Context) error

func (*Bot) HandleCreate

func (b *Bot) HandleCreate(c telebot.Context) error

func (*Bot) HandleDeepLinkedStart

func (b *Bot) HandleDeepLinkedStart(c telebot.Context) error

func (*Bot) HandleNormalStart

func (b *Bot) HandleNormalStart(c telebot.Context) error

func (*Bot) HandleStart

func (b *Bot) HandleStart(c telebot.Context) error

type XMLBody

type XMLBody struct {
	XMLName xml.Name `xml:"Body"`
	Label   XMLLabel `xml:"Label"`
	Grid    XMLGrid  `xml:"Grid"`
}

type XMLButton

type XMLButton struct {
	XMLName xml.Name `xml:"Button"`
	Action  string   `xml:"action,attr"`
	Content string   `xml:",chardata"`
}

type XMLCell

type XMLCell struct {
	XMLName xml.Name  `xml:"Cell"`
	Button  XMLButton `xml:"Button"`
	Label   XMLLabel  `xml:"Label"`
}

type XMLGrid

type XMLGrid struct {
	XMLName xml.Name `xml:"Grid"`
	Rows    []XMLRow `xml:"Row"`
}

type XMLLabel

type XMLLabel struct {
	XMLName xml.Name `xml:"Label"`
	Content string   `xml:",chardata"`
}

type XMLRow

type XMLRow struct {
	XMLName xml.Name  `xml:"Row"`
	Cells   []XMLCell `xml:"Cell"`
}

Jump to

Keyboard shortcuts

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