Commit cc66da85 authored by MBoretto's avatar MBoretto

reply to message column changed

parent 68a8418b
......@@ -319,7 +319,7 @@ class DB
$update_id = $update->getUpdateId();
$message_id = $message->getMessageId();
$from_id = $from->getId();
$reply_to_message = $message->getReplyToMessage();
$reply_to_message = $message->getReplyToMessage()->getMessageId();
$text = $message->getText();
$audio = $message->getAudio();
$document = $message->getDocument();
......
......@@ -6,7 +6,7 @@ CREATE TABLE `messages` (
`chat_id` bigint NOT NULL DEFAULT '0' COMMENT 'Chat identifier.',
`forward_from` bigint NOT NULL DEFAULT '0' COMMENT 'User id. For forwarded messages, sender of the original message',
`forward_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'For forwarded messages, date the original message was sent in Unix time',
`reply_to_message` LONGTEXT COMMENT 'Message object. For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.',
`reply_to_message` bigint COMMENT 'Message is a reply to another message already stored.',
`text` LONGTEXT COMMENT 'For text messages, the actual UTF-8 text of the message',
`audio` TEXT DEFAULT '' COMMENT 'Audio object. Message is an audio file, information about the file',
`document` TEXT DEFAULT '' COMMENT 'Document object. Message is a general file, information about the file',
......
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