This commit is contained in:
shoopea 2020-01-26 19:09:27 +08:00
parent d9831c360f
commit e055e7f752

11
bot.go
View File

@ -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