update
This commit is contained in:
parent
34948714cb
commit
154715b9b7
14
bot.go
14
bot.go
@ -99,6 +99,20 @@ func botQuery(q *tb.Query) {
|
|||||||
func botText(m *tb.Message) {
|
func botText(m *tb.Message) {
|
||||||
fmt.Println("botText :", m.Text)
|
fmt.Println("botText :", m.Text)
|
||||||
PrintText(m)
|
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
|
// all the text messages that weren't
|
||||||
// captured by existing handlers
|
// captured by existing handlers
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user