diff --git a/src/Abstracts/TelegramMethods.php b/src/Abstracts/TelegramMethods.php index 7669f5e..a7c0ca8 100644 --- a/src/Abstracts/TelegramMethods.php +++ b/src/Abstracts/TelegramMethods.php @@ -46,7 +46,7 @@ public static function bindToObject(TelegramRawData $data, LoggerInterface $logg */ public function performSpecialConditions(): TelegramMethods { - if ($this->reply_markup !== null) { + if (!empty($this->reply_markup)) { $this->reply_markup = json_encode($this->formatReplyMarkup($this->reply_markup)); }