Documentation
¶
Index ¶
- Constants
- type Chats
- type Monitor
- func (m Monitor) RecoverSync() error
- func (m Monitor) ReplyMessageRating(e tg.Entities, u *tg.UpdateNewChannelMessage, replyID int, chat *tg.Channel) error
- func (m Monitor) UpdateMessage(chat tg.InputChannel, msg db.Message) (db.Message, error)
- func (m Monitor) WatchSync(ctx context.Context, delay time.Duration, ageLimit time.Duration)
- type Options
- type Thresholds
Constants ¶
View Source
const MsgReqDelay = 30 * time.Second
View Source
const RecoveringDelay = 5 * time.Minute
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chats ¶
type Chats struct {
Sources []tg.InputPeerChannel
Destinations []tg.InputPeerClass
}
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func (Monitor) RecoverSync ¶
func (Monitor) ReplyMessageRating ¶
func (Monitor) UpdateMessage ¶
type Options ¶
type Options struct {
Thresholds Thresholds
Chats Chats
NoQuoteWhitelist []int64
}
type Thresholds ¶
Click to show internal directories.
Click to hide internal directories.