message

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 2 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
}

Service предоставляет методы для обработки и преобразования сообщений

func New

func New() *Service

New создает новый экземпляр сервиса для работы с сообщениями

func (*Service) GetFormattedText

func (s *Service) GetFormattedText(message *client.Message) *client.FormattedText

GetFormattedText извлекает содержимое сообщения для поддерживаемых типов

func (*Service) GetInputMessageContent

func (s *Service) GetInputMessageContent(message *client.Message, formattedText *client.FormattedText) client.InputMessageContent

GetInputMessageContent преобразует содержимое сообщения во входной контент

func (*Service) GetReplyMarkupData

func (s *Service) GetReplyMarkupData(message *client.Message) []byte

GetReplyMarkupData извлекает данные из replyMarkup

func (*Service) IsSystemMessage

func (s *Service) IsSystemMessage(message *client.Message) bool

IsSystemMessage проверяет, является ли сообщение системным

Jump to

Keyboard shortcuts

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