Commit 9ea2814f authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

update log

parent bcb09546
...@@ -29,7 +29,7 @@ func (m *Messenger) Start() { ...@@ -29,7 +29,7 @@ func (m *Messenger) Start() {
u.Timeout = 60 u.Timeout = 60
updates := m.bot.GetUpdatesChan(u) updates := m.bot.GetUpdatesChan(u)
log.WithField("updates", len(updates)).Debug("updates")
for update := range updates { for update := range updates {
if update.Message == nil || if update.Message == nil ||
update.Message.IsCommand() { update.Message.IsCommand() {
...@@ -42,6 +42,7 @@ func (m *Messenger) Start() { ...@@ -42,6 +42,7 @@ func (m *Messenger) Start() {
continue continue
} }
if !supported { if !supported {
log.WithField("chat_id", update.Message.Chat.ID).Debug("not supported chat")
continue continue
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment