Skip to content

Commit

Permalink
More general check but no notice anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
unreal4u committed Feb 22, 2017
1 parent 3b7f27a commit fe93f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Abstracts/TelegramMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit fe93f5c

Please sign in to comment.