fix
This commit is contained in:
parent
a87baa28d3
commit
80078948cb
2
td.go
2
td.go
@ -42,7 +42,7 @@ func ListenTG(c *tdlib.Client) {
|
||||
chatID := int64(updateMsg.Message.ChatID)
|
||||
userID := int64(updateMsg.Message.SenderUserID)
|
||||
forwardInfo := updateMsg.Message.ForwardInfo
|
||||
for k, v := range cfg.Listen {
|
||||
for _, v := range cfg.Listen {
|
||||
if (v.Chat == chatID || v.Chat == 0) &&
|
||||
(v.User == userID || v.User == 0) &&
|
||||
forwardInfo == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user