Skip to content

Commit 3da71cd

Browse files
committed
in case message entities are empty set them to null
1 parent b7fbaac commit 3da71cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DB.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ public static function insertMessageRequest(Message &$message)
699699

700700
$entities = json_encode($var);
701701
} else {
702-
$entities = '';
702+
$entities = null;
703703
}
704704

705705
$sth->bindParam(':reply_to_chat', $reply_chat_id, \PDO::PARAM_INT);

0 commit comments

Comments
 (0)