telegram

package
v0.0.0-...-4d74943 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TelegramBot

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

func NewTelegramBot

func NewTelegramBot(botToken string) *TelegramBot

func (*TelegramBot) Answer

func (bot *TelegramBot) Answer(chatID int, text string) (string, error)

func (*TelegramBot) AnswerCallbackQuery

func (bot *TelegramBot) AnswerCallbackQuery(callbackQueryId string, text string) (string, error)

func (*TelegramBot) AnswerWithRemoveKeyboard

func (bot *TelegramBot) AnswerWithRemoveKeyboard(chatID int, text string) (string, error)

func (*TelegramBot) RequestLocation

func (bot *TelegramBot) RequestLocation(chatID int, text string) (string, error)

func (*TelegramBot) SendStationDetails

func (bot *TelegramBot) SendStationDetails(chatID int, station *model.Station) (string, error)

func (*TelegramBot) SendStationSelectionButtons

func (bot *TelegramBot) SendStationSelectionButtons(chatID int, text string, stations []*model.Station) (string, error)

Jump to

Keyboard shortcuts

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