Tidy up insertEditedMessageRequest method.

parent da0dd39c
...@@ -887,13 +887,12 @@ class DB ...@@ -887,13 +887,12 @@ class DB
self::insertUser($from, $edit_date, $chat); self::insertUser($from, $edit_date, $chat);
try { try {
$sth = self::$pdo->prepare('INSERT INTO `' . TB_EDITED_MESSAGE . '` $sth = self::$pdo->prepare('
( INSERT INTO `' . TB_EDITED_MESSAGE . '`
`chat_id`, `message_id`, `user_id`, `edit_date`, `text`, `entities`, `caption` (`chat_id`, `message_id`, `user_id`, `edit_date`, `text`, `entities`, `caption`)
) VALUES
VALUES ( (:chat_id, :message_id, :user_id, :date, :text, :entities, :caption)
:chat_id, :message_id, :user_id, :date, :text, :entities, :caption ');
)');
$message_id = $edited_message->getMessageId(); $message_id = $edited_message->getMessageId();
$from_id = $from->getId(); $from_id = $from->getId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment