test
This commit is contained in:
parent
d9831c360f
commit
e055e7f752
11
bot.go
11
bot.go
@ -128,6 +128,17 @@ func botText(m *tb.Message) {
|
||||
IsForwarded: false,
|
||||
}
|
||||
MQCWMsgQueue <- cwm
|
||||
} else if m.Private() {
|
||||
cwm := ChatWarsMessage{
|
||||
TGUserID64: int64(m.Sender.ID),
|
||||
TGSenderUserID64: int64(m.Sender.ID),
|
||||
ID64: int64(m.ID),
|
||||
ChatID64: int64(m.Chat.ID),
|
||||
Text: m.Text,
|
||||
Date: m.Time().UTC(),
|
||||
IsForwarded: false,
|
||||
}
|
||||
MQCWMsgQueue <- cwm
|
||||
}
|
||||
// all the text messages that weren't
|
||||
// captured by existing handlers
|
||||
|
Loading…
Reference in New Issue
Block a user