Add private/group request debug messages
This commit is contained in:
parent
c4d146ba20
commit
06173451f6
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user