service

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(api *tgbotapi.BotAPI) *Service

func (*Service) DeleteMessage

func (s *Service) DeleteMessage(message *tgbotapi.Message) error

func (*Service) DeleteMessageById added in v1.5.0

func (s *Service) DeleteMessageById(chatId int64, messageId int) error

func (*Service) DownloadFile added in v1.3.0

func (s *Service) DownloadFile(fileId string) ([]byte, error)

func (*Service) GetFileDirectUrl

func (s *Service) GetFileDirectUrl(fileId string) (string, error)

func (*Service) Send

func (s *Service) Send(chattable tgbotapi.Chattable) error

func (*Service) SendDocument added in v1.3.0

func (s *Service) SendDocument(chat *tgbotapi.Chat, bytes []byte, name string) error

func (*Service) SendMessage

func (s *Service) SendMessage(chat *tgbotapi.Chat, text string) error

func (*Service) SendMessageCustom

func (s *Service) SendMessageCustom(chat *tgbotapi.Chat, text string, messageAdjuster func(reply *tgbotapi.MessageConfig)) (*tgbotapi.Message, error)

Jump to

Keyboard shortcuts

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