hdkv
/
i2_bot
Archived
1
Fork 0

Add debug message for new update

master
Vladimir Hodakov 2018-05-19 09:30:36 +04:00
parent b52a0c34b8
commit ea2a6e1e9c
Signed by: Vladimir Hodakov
GPG Key ID: 673980B6882F82C6
1 changed files with 1 additions and 0 deletions

View File

@ -231,6 +231,7 @@ func (c *Context) StartBot() {
c.Log.Info("Webhook URL: " + c.Cfg.Telegram.WebHookDomain + c.Bot.Token)
for update := range updates {
c.Log.Info("Got new update...")
if update.Message != nil {
if update.Message.From != nil {
if update.Message.Date > (int(time.Now().Unix()) - 5) {