Skip to content

Commit 9e42e86

Browse files
committed
Fix pinned message PDO data type
1 parent 027bf0e commit 9e42e86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DB.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ public static function insertMessageRequest(Message &$message)
811811
$sth->bindParam(':channel_chat_created', $channel_chat_created, \PDO::PARAM_INT);
812812
$sth->bindParam(':migrate_from_chat_id', $migrate_from_chat_id, \PDO::PARAM_INT);
813813
$sth->bindParam(':migrate_to_chat_id', $migrate_to_chat_id, \PDO::PARAM_INT);
814-
$sth->bindParam(':pinned_message', $pinned_message, \PDO::PARAM_INT);
814+
$sth->bindParam(':pinned_message', $pinned_message, \PDO::PARAM_STR);
815815

816816
return $sth->execute();
817817
} catch (\PDOException $e) {

0 commit comments

Comments
 (0)