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
b4f77bd4
Commit
b4f77bd4
authored
Apr 14, 2016
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prettify $data array and correct small typo.
Up version.
parent
b5b7c694
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
HidekeyboardCommand.php
examples/Commands/HidekeyboardCommand.php
+6
-5
No files found.
examples/Commands/HidekeyboardCommand.php
View file @
b4f77bd4
...
...
@@ -26,7 +26,7 @@ class HidekeyboardCommand extends UserCommand
protected
$name
=
'hidekeyboard'
;
protected
$description
=
'Hide the custom keyboard'
;
protected
$usage
=
'/hidekeyboard'
;
protected
$version
=
'0.0.
5
'
;
protected
$version
=
'0.0.
6
'
;
/**#@-*/
/**
...
...
@@ -37,10 +37,11 @@ class HidekeyboardCommand extends UserCommand
$message
=
$this
->
getMessage
();
$chat_id
=
$message
->
getChat
()
->
getId
();
$data
=
[];
$data
[
'chat_id'
]
=
$chat_id
;
$data
[
'text'
]
=
'Keyboard Hided'
;
$data
[
'reply_markup'
]
=
new
ReplyKeyboardHide
([
'selective'
=>
false
]);
$data
=
[
'chat_id'
=>
$chat_id
,
'text'
=>
'Keyboard Hidden'
,
'reply_markup'
=>
new
ReplyKeyboardHide
([
'selective'
=>
false
]),
];
return
Request
::
sendMessage
(
$data
);
}
...
...
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