This commit is contained in:
shoopea 2019-10-12 17:29:19 +08:00
parent 34948714cb
commit 154715b9b7

14
bot.go
View File

@ -99,6 +99,20 @@ func botQuery(q *tb.Query) {
func botText(m *tb.Message) {
fmt.Println("botText :", m.Text)
PrintText(m)
b, _ := json.Marshal(p)
log.Printf("botText : %s\n", string(b))
/*
if (m.Chat.ID == cfg.Bot.Depositchat && int64(m.OriginalSender) == 408101137) {
cwm := ChatWarsMessage{
TGUserID64: int64(m.Sender.ID),
TGSenderUserID64: int64(m.OriginalSender),
ID64: int64(m.ID),
ChatID64: updateMsg.Message.ChatID,
Text: txt,
}
}
*/
// all the text messages that weren't
// captured by existing handlers
}