Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
TelegramBot
Commits
dc455054
Commit
dc455054
authored
Apr 15, 2016
by
Jack'lul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated table structure - 'inline_message_id' must be a string
updated InlinequeryCommand
parent
6b07ca55
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
InlinequeryCommand.php
src/Commands/SystemCommands/InlinequeryCommand.php
+3
-3
structure.sql
structure.sql
+3
-3
No files found.
src/Commands/SystemCommands/InlinequeryCommand.php
View file @
dc455054
...
...
@@ -39,9 +39,9 @@ class InlinequeryCommand extends SystemCommand
$data
=
[
'inline_query_id'
=>
$inline_query
->
getId
()];
$articles
=
[
[
'id'
=>
'001'
,
'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
],
[
'id'
=>
'003'
,
'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
,
'input_message_content'
=>
[
'message_text'
=>
$query
]
],
[
'id'
=>
'003'
,
'title'
=>
'https://core.telegram.org/bots/api#answerinlinequery'
,
'message_text'
=>
'you enter: '
.
$query
,
'input_message_content'
=>
[
'message_text'
=>
$query
]
],
];
$array_article
=
[];
...
...
structure.sql
View file @
dc455054
...
...
@@ -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'
,
`user_id`
bigint
NULL
COMMENT
'Sender'
,
`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'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'Entry date creation'
,
PRIMARY
KEY
(
`id`
),
...
...
@@ -64,8 +64,8 @@ CREATE TABLE IF NOT EXISTS `chosen_inline_query` (
CREATE
TABLE
IF
NOT
EXISTS
`callback_query`
(
`id`
bigint
UNSIGNED
COMMENT
'Unique identifier for this query.'
,
`user_id`
bigint
NULL
COMMENT
'Sender'
,
`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'
,
`message`
text
NULL
DEFAULT
NULL
COMMENT
'Message'
,
`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.'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'Entry date creation'
,
PRIMARY
KEY
(
`id`
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment