From 4dbfb9248b994a0f100ddff105efb3dc46e99285 Mon Sep 17 00:00:00 2001 From: Daniele Date: Thu, 23 Mar 2023 14:43:46 +0100 Subject: [PATCH] fix test --- src/telebot/private/utils.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telebot/private/utils.nim b/src/telebot/private/utils.nim index cf9ab70..895075c 100644 --- a/src/telebot/private/utils.nim +++ b/src/telebot/private/utils.nim @@ -36,7 +36,7 @@ template hasCommand*(update: Update, username: string): bool = else: result = false - if hasMessage and message.entities.isSome: + if hasMessage and message.entities.isSome and message.entities.get.len > 0: let entities = message.entities.get() messageText = message.text.get()