add warning if owner's chat is not configured

This commit is contained in:
c9s 2021-10-15 11:56:17 +08:00
parent 0fe11438bd
commit 08c300fbad

View File

@ -82,6 +82,7 @@ func (it *Interaction) HandleInfo(m *telebot.Message) {
func (it *Interaction) SendToOwner(message string) {
if it.session.OwnerChat == nil {
log.Warnf("owner's chat is not configured, you need to auth first")
return
}