Documentation
¶
Index ¶
- func Part[T any](slice []T, length int) (new []T, modified []T)
- type Bot
- func (b Bot) ForwardMessages(source db.Chat, destination tg.InputPeerClass, messages []db.Message, ...) error
- func (b Bot) GetHistory(chatId int64, accessHash int64, limit int, offsetId int) ([]tg.MessageClass, error)
- func (b Bot) GetMessageText(chat tg.InputChannel, msgID int) (string, error)
- func (b Bot) GetMessagesReactions(chat db.Chat, messages []db.Message, delay time.Duration, ...) (reactions []*tg.UpdateMessageReactions, err error)
- func (b Bot) GetReactions(chatId int64, accessHash int64, messages []int) ([]*tg.UpdateMessageReactions, error)
- func (b Bot) GetReactionsList(msg db.Message, accessHash int64) (*tg.MessagesMessageReactionsList, error)
- func (b Bot) Reply(e tg.Entities, u *tg.UpdateNewChannelMessage, text string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func (Bot) ForwardMessages ¶
func (Bot) GetHistory ¶
func (Bot) GetMessageText ¶
func (Bot) GetMessagesReactions ¶
func (Bot) GetReactions ¶
func (Bot) GetReactionsList ¶
func (b Bot) GetReactionsList(msg db.Message, accessHash int64) (*tg.MessagesMessageReactionsList, error)
GetReactionsList returns reactions list for specified message This functions requests only 100 reactions
Click to show internal directories.
Click to hide internal directories.