Archived
1

Add private/group request debug messages

This commit is contained in:
Vladimir Hodakov 2018-03-31 17:34:24 +04:00
parent c4d146ba20
commit 06173451f6

View File

@ -4,6 +4,8 @@
package router package router
import ( import (
"strconv"
"github.com/go-telegram-bot-api/telegram-bot-api" "github.com/go-telegram-bot-api/telegram-bot-api"
) )
@ -25,8 +27,10 @@ func (r *Router) RouteRequest(update tgbotapi.Update) string {
} }
if update.Message.Chat.IsGroup() || update.Message.Chat.IsSuperGroup() { if update.Message.Chat.IsGroup() || update.Message.Chat.IsSuperGroup() {
c.Log.Debug("Routing group request in group with ID = " + strconv.Itoa(int(chatRaw.TelegramID)))
return r.routeGroupRequest(update, playerRaw, chatRaw) return r.routeGroupRequest(update, playerRaw, chatRaw)
} else if update.Message.Chat.IsPrivate() { } else if update.Message.Chat.IsPrivate() {
c.Log.Debug("Routing private request for user with ID = " + strconv.Itoa(int(chatRaw.TelegramID)))
return r.routePrivateRequest(update, playerRaw, chatRaw) return r.routePrivateRequest(update, playerRaw, chatRaw)
} }