This commit is contained in:
shoopea 2019-10-12 13:30:36 +08:00
parent a87baa28d3
commit 80078948cb

2
td.go
View File

@ -42,7 +42,7 @@ func ListenTG(c *tdlib.Client) {
chatID := int64(updateMsg.Message.ChatID) chatID := int64(updateMsg.Message.ChatID)
userID := int64(updateMsg.Message.SenderUserID) userID := int64(updateMsg.Message.SenderUserID)
forwardInfo := updateMsg.Message.ForwardInfo forwardInfo := updateMsg.Message.ForwardInfo
for k, v := range cfg.Listen { for _, v := range cfg.Listen {
if (v.Chat == chatID || v.Chat == 0) && if (v.Chat == chatID || v.Chat == 0) &&
(v.User == userID || v.User == 0) && (v.User == userID || v.User == 0) &&
forwardInfo == nil { forwardInfo == nil {