facade_grpc

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 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 New

func New(
	telegramRepo telegramRepo,
	messageService messageService,
	mediaAlbumService mediaAlbumService,
) *Service

func (*Service) DeleteMessages

func (s *Service) DeleteMessages(chatId int64, messageIds []int64) error

func (*Service) ForwardMessage

func (s *Service) ForwardMessage(chatId int64, messageId int64) error

func (*Service) GetChatHistory

func (s *Service) GetChatHistory(
	chatId int64,
	fromMessageId int64,
	offset int32,
	limit int32,
) ([]*dto.Message, error)

func (*Service) GetMessage

func (s *Service) GetMessage(chatId int64, messageId int64) (*dto.Message, error)
func (s *Service) GetMessageLink(chatId int64, messageId int64) (string, error)

GetMessageLink возвращает ссылку на сообщение

func (*Service) GetMessageLinkInfo

func (s *Service) GetMessageLinkInfo(link string) (*dto.Message, error)

func (*Service) GetMessages

func (s *Service) GetMessages(chatId int64, messageIds []int64) ([]*dto.Message, error)

func (*Service) SendMessage

func (s *Service) SendMessage(newMessage *dto.NewMessage) error

func (*Service) SendMessageAlbum

func (s *Service) SendMessageAlbum(newMessages []*dto.NewMessage) error

func (*Service) UpdateMessage

func (s *Service) UpdateMessage(message *dto.Message) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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