test
This commit is contained in:
parent
fdc13e4ac3
commit
f547da7e3e
2
bot.go
2
bot.go
@ -104,7 +104,7 @@ func botText(m *tb.Message) {
|
||||
b, _ := json.Marshal(m)
|
||||
log.Printf("botText : %s\n", string(b))
|
||||
|
||||
if (m.Chat.ID == cfg.Bot.Depositchat || m.Chat.ID == cfg.Bot.Mainchat) && int64(m.OriginalSender.ID) == chtwrsbotID64 {
|
||||
if (m.Chat.ID == cfg.Bot.Depositchat || m.Chat.ID == cfg.Bot.Mainchat) && m.IsForwarded() && int64(m.OriginalSender.ID) == chtwrsbotID64 {
|
||||
log.Printf("botText : forwarding message.\n")
|
||||
cwm := ChatWarsMessage{
|
||||
TGUserID64: int64(m.Sender.ID),
|
||||
|
Loading…
Reference in New Issue
Block a user