Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMonitor ¶
func AddMonitor(handler *ServerHandler, mon *MsgMonitor) int64
func ListenMessages ¶
func ListenMessages(handler *ServerHandler, messageType tdlib.TdMessage)
func RemoveMonitor ¶
func RemoveMonitor(handler *ServerHandler, index int64)
Types ¶
type MsgMonitor ¶
type MsgMonitor struct { ChatId int64 SenderId int32 ReplyToMsgId int64 OldMsgId int64 CallbackData chan *tdlib.Message }
func (MsgMonitor) Match ¶
func (mon MsgMonitor) Match(message *tdlib.Message, oldMsgId int64) bool
func (MsgMonitor) Process ¶
func (mon MsgMonitor) Process(message *tdlib.Message)
type ServerHandler ¶
type ServerHandler struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.