Documentation
¶
Index ¶
- type Service
- func (s *Service) DeleteMessages(chatId int64, messageIds []int64) error
- func (s *Service) ForwardMessage(chatId int64, messageId int64) error
- func (s *Service) GetChatHistory(chatId int64, fromMessageId int64, offset int32, limit int32) ([]*dto.Message, error)
- func (s *Service) GetMessage(chatId int64, messageId int64) (*dto.Message, error)
- func (s *Service) GetMessageLink(chatId int64, messageId int64) (string, error)
- func (s *Service) GetMessageLinkInfo(link string) (*dto.Message, error)
- func (s *Service) GetMessages(chatId int64, messageIds []int64) ([]*dto.Message, error)
- func (s *Service) SendMessage(newMessage *dto.NewMessage) error
- func (s *Service) SendMessageAlbum(newMessages []*dto.NewMessage) error
- func (s *Service) UpdateMessage(message *dto.Message) error
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 (*Service) ForwardMessage ¶
func (*Service) GetChatHistory ¶
func (*Service) GetMessage ¶
func (*Service) GetMessageLink ¶
GetMessageLink возвращает ссылку на сообщение
func (*Service) GetMessageLinkInfo ¶
func (*Service) GetMessages ¶
func (*Service) SendMessage ¶
func (s *Service) SendMessage(newMessage *dto.NewMessage) error
func (*Service) SendMessageAlbum ¶
func (s *Service) SendMessageAlbum(newMessages []*dto.NewMessage) error
Click to show internal directories.
Click to hide internal directories.