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
9c9ab651
Commit
9c9ab651
authored
Feb 11, 2016
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just inherit repeating documentation blocks for Admin commands as well.
parent
5e923725
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
120 deletions
+9
-120
ChatsCommand.php
src/Admin/ChatsCommand.php
+3
-40
SendtoallCommand.php
src/Admin/SendtoallCommand.php
+3
-40
SendtochannelCommand.php
src/Admin/SendtochannelCommand.php
+3
-40
No files found.
src/Admin/ChatsCommand.php
View file @
9c9ab651
...
...
@@ -22,54 +22,17 @@ use Longman\TelegramBot\Request;
*/
class
ChatsCommand
extends
Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected
$name
=
'chats'
;
/**
* Description
*
* @var string
*/
protected
$description
=
'List all chats stored by the bot'
;
/**
* Usage
*
* @var string
*/
protected
$usage
=
'/chats'
;
/**
* Version
*
* @var string
*/
protected
$version
=
'1.0.0'
;
/**
* If this command is enabled
*
* @var boolean
*/
protected
$enabled
=
true
;
/**
* If this command is public
*
* @var boolean
*/
protected
$public
=
true
;
/**
* If this command needs mysql
*
* @var boolean
*/
protected
$need_mysql
=
false
;
/**#@-*/
/**
* Execution if MySQL is required but not available
...
...
src/Admin/SendtoallCommand.php
View file @
9c9ab651
...
...
@@ -21,54 +21,17 @@ use Longman\TelegramBot\Request;
*/
class
SendtoallCommand
extends
Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected
$name
=
'sendtoall'
;
/**
* Description
*
* @var string
*/
protected
$description
=
'Send the message to all the user\'s bot'
;
/**
* Usage
*
* @var string
*/
protected
$usage
=
'/sendall <message to send>'
;
/**
* Version
*
* @var string
*/
protected
$version
=
'1.2.0'
;
/**
* If this command is enabled
*
* @var boolean
*/
protected
$enabled
=
true
;
/**
* If this command is public
*
* @var boolean
*/
protected
$public
=
true
;
/**
* If this command needs mysql
*
* @var boolean
*/
protected
$need_mysql
=
true
;
/**#@-*/
/**
* Execution if MySQL is required but not available
...
...
src/Admin/SendtochannelCommand.php
View file @
9c9ab651
...
...
@@ -21,54 +21,17 @@ use Longman\TelegramBot\Request;
*/
class
SendtochannelCommand
extends
Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected
$name
=
'sendtochannel'
;
/**
* Description
*
* @var string
*/
protected
$description
=
'Send message to a channel'
;
/**
* Usage
*
* @var string
*/
protected
$usage
=
'/sendchannel <message to send>'
;
/**
* Version
*
* @var string
*/
protected
$version
=
'0.1.0'
;
/**
* If this command is enabled
*
* @var boolean
*/
protected
$enabled
=
true
;
/**
* If this command is public
*
* @var boolean
*/
protected
$public
=
true
;
/**
* If this command needs mysql
*
* @var boolean
*/
protected
$need_mysql
=
false
;
/**#@-*/
/**
* Execute command
...
...
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