Commit dc455054 authored by Jack'lul's avatar Jack'lul

Updated table structure - 'inline_message_id' must be a string

updated InlinequeryCommand
parent 6b07ca55
...@@ -39,9 +39,9 @@ class InlinequeryCommand extends SystemCommand ...@@ -39,9 +39,9 @@ class InlinequeryCommand extends SystemCommand
$data = ['inline_query_id' => $inline_query->getId()]; $data = ['inline_query_id' => $inline_query->getId()];
$articles = [ $articles = [
['id' => '001', 'title' => 'https://core.telegram.org/bots/api#answerinlinequery', 'message_text' => 'you enter: ' . $query], ['id' => '001', 'title' => 'https://core.telegram.org/bots/api#answerinlinequery', 'message_text' => 'you enter: ' . $query , 'input_message_content' => [ 'message_text' => $query ] ],
['id' => '002', 'title' => 'https://core.telegram.org/bots/api#answerinlinequery', 'message_text' => 'you enter: ' . $query], ['id' => '002', 'title' => 'https://core.telegram.org/bots/api#answerinlinequery', 'message_text' => 'you enter: ' . $query , 'input_message_content' => [ 'message_text' => $query ] ],
['id' => '003', 'title' => 'https://core.telegram.org/bots/api#answerinlinequery', 'message_text' => 'you enter: ' . $query], ['id' => '003', 'title' => 'https://core.telegram.org/bots/api#answerinlinequery', 'message_text' => 'you enter: ' . $query , 'input_message_content' => [ 'message_text' => $query ] ],
]; ];
$array_article = []; $array_article = [];
......
...@@ -50,7 +50,7 @@ CREATE TABLE IF NOT EXISTS `chosen_inline_query` ( ...@@ -50,7 +50,7 @@ CREATE TABLE IF NOT EXISTS `chosen_inline_query` (
`result_id` CHAR(255) NOT NULL DEFAULT '' COMMENT 'Id of the chosen result', `result_id` CHAR(255) NOT NULL DEFAULT '' COMMENT 'Id of the chosen result',
`user_id` bigint NULL COMMENT 'Sender', `user_id` bigint NULL COMMENT 'Sender',
`location` CHAR(255) NULL DEFAULT NULL COMMENT 'Location object, senders\'s location.', `location` CHAR(255) NULL DEFAULT NULL COMMENT 'Location object, senders\'s location.',
`inline_message_id` bigint NULL DEFAULT NULL COMMENT 'Identifier of the message sent via the bot in inline mode, that originated the query', `inline_message_id` CHAR(255) NULL DEFAULT NULL COMMENT 'Identifier of the message sent via the bot in inline mode, that originated the query',
`query` CHAR(255) NOT NULL DEFAULT '' COMMENT 'Text of the query', `query` CHAR(255) NOT NULL DEFAULT '' COMMENT 'Text of the query',
`created_at` timestamp NULL DEFAULT NULL COMMENT 'Entry date creation', `created_at` timestamp NULL DEFAULT NULL COMMENT 'Entry date creation',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
...@@ -64,8 +64,8 @@ CREATE TABLE IF NOT EXISTS `chosen_inline_query` ( ...@@ -64,8 +64,8 @@ CREATE TABLE IF NOT EXISTS `chosen_inline_query` (
CREATE TABLE IF NOT EXISTS `callback_query` ( CREATE TABLE IF NOT EXISTS `callback_query` (
`id` bigint UNSIGNED COMMENT 'Unique identifier for this query.', `id` bigint UNSIGNED COMMENT 'Unique identifier for this query.',
`user_id` bigint NULL COMMENT 'Sender', `user_id` bigint NULL COMMENT 'Sender',
`message` TEXT NULL DEFAULT NULL COMMENT 'Message', `message` text NULL DEFAULT NULL COMMENT 'Message',
`inline_message_id` bigint NULL DEFAULT NULL COMMENT 'Identifier of the message sent via the bot in inline mode, that originated the query', `inline_message_id` CHAR(255) NULL DEFAULT NULL COMMENT 'Identifier of the message sent via the bot in inline mode, that originated the query',
`data` CHAR(255) NOT NULL DEFAULT '' COMMENT 'Data associated with the callback button.', `data` CHAR(255) NOT NULL DEFAULT '' COMMENT 'Data associated with the callback button.',
`created_at` timestamp NULL DEFAULT NULL COMMENT 'Entry date creation', `created_at` timestamp NULL DEFAULT NULL COMMENT 'Entry date creation',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
......
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