tgcommons

package
v0.0.0-...-ef5b5f7 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

func NewBot

func NewBot(token string, callbackMode bool) (*Bot, error)

func (*Bot) EditMarkdownMessage

func (bot *Bot) EditMarkdownMessage(chatID int64, messageID int, messageText string) error

func (*Bot) GetUpdatesChan

func (bot *Bot) GetUpdatesChan() tgbotapi.UpdatesChannel

func (*Bot) SendCallbackResponse

func (bot *Bot) SendCallbackResponse(update tgbotapi.Update) error

func (*Bot) SendMarkdownMessage

func (bot *Bot) SendMarkdownMessage(chatID int64, messageText string) error

func (*Bot) SendMarkdownMessageWithKeyboard

func (bot *Bot) SendMarkdownMessageWithKeyboard(chatID int64, messageText string, keyboard tgbotapi.InlineKeyboardMarkup) error

func (*Bot) SendMessage

func (bot *Bot) SendMessage(chatID int64, messageText string) error

func (*Bot) SendMessageWithReturningID

func (bot *Bot) SendMessageWithReturningID(chatID int64, messageText string) (int, error)

func (*Bot) StopReceivingUpdates

func (bot *Bot) StopReceivingUpdates()

Jump to

Keyboard shortcuts

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