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
f7b4ab67
Commit
f7b4ab67
authored
Feb 16, 2016
by
MBoretto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increased version to all commads
parent
086f4859
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
21 additions
and
28 deletions
+21
-28
ChatsCommand.php
src/Admin/ChatsCommand.php
+1
-1
SendtoallCommand.php
src/Admin/SendtoallCommand.php
+1
-1
SendtochannelCommand.php
src/Admin/SendtochannelCommand.php
+1
-1
ChannelchatcreatedCommand.php
src/Commands/ChannelchatcreatedCommand.php
+1
-1
ChoseninlineresultCommand.php
src/Commands/ChoseninlineresultCommand.php
+1
-1
DateCommand.php
src/Commands/DateCommand.php
+1
-1
DeletechatphotoCommand.php
src/Commands/DeletechatphotoCommand.php
+1
-1
EchoCommand.php
src/Commands/EchoCommand.php
+1
-1
GenericCommand.php
src/Commands/GenericCommand.php
+1
-1
GenericmessageCommand.php
src/Commands/GenericmessageCommand.php
+1
-1
GroupchatcreatedCommand.php
src/Commands/GroupchatcreatedCommand.php
+1
-1
HelpCommand.php
src/Commands/HelpCommand.php
+1
-1
InlinequeryCommand.php
src/Commands/InlinequeryCommand.php
+1
-1
LeftchatparticipantCommand.php
src/Commands/LeftchatparticipantCommand.php
+1
-1
NewchatparticipantCommand.php
src/Commands/NewchatparticipantCommand.php
+1
-1
NewchattitleCommand.php
src/Commands/NewchattitleCommand.php
+1
-1
SlapCommand.php
src/Commands/SlapCommand.php
+1
-1
StartCommand.php
src/Commands/StartCommand.php
+1
-1
SupergroupchatcreatedCommand.php
src/Commands/SupergroupchatcreatedCommand.php
+1
-1
WeatherCommand.php
src/Commands/WeatherCommand.php
+1
-8
WhoamiCommand.php
src/Commands/WhoamiCommand.php
+1
-1
No files found.
src/Admin/ChatsCommand.php
View file @
f7b4ab67
...
...
@@ -26,7 +26,7 @@ class ChatsCommand extends Command
protected
$name
=
'chats'
;
protected
$description
=
'List all chats stored by the bot'
;
protected
$usage
=
'/chats'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
protected
$public
=
true
;
protected
$need_mysql
=
false
;
/**#@-*/
...
...
src/Admin/SendtoallCommand.php
View file @
f7b4ab67
...
...
@@ -24,7 +24,7 @@ class SendtoallCommand extends Command
protected
$name
=
'sendtoall'
;
protected
$description
=
'Send the message to all the user\'s bot'
;
protected
$usage
=
'/sendall <message to send>'
;
protected
$version
=
'1.2.
0
'
;
protected
$version
=
'1.2.
1
'
;
protected
$public
=
true
;
protected
$need_mysql
=
true
;
/**#@-*/
...
...
src/Admin/SendtochannelCommand.php
View file @
f7b4ab67
...
...
@@ -24,7 +24,7 @@ class SendtochannelCommand extends Command
protected
$name
=
'sendtochannel'
;
protected
$description
=
'Send message to a channel'
;
protected
$usage
=
'/sendchannel <message to send>'
;
protected
$version
=
'0.1.
0
'
;
protected
$version
=
'0.1.
1
'
;
protected
$public
=
true
;
protected
$need_mysql
=
false
;
/**#@-*/
...
...
src/Commands/ChannelchatcreatedCommand.php
View file @
f7b4ab67
...
...
@@ -22,7 +22,7 @@ class ChannelchatcreatedCommand extends Command
*/
protected
$name
=
'Channelchatcreated'
;
protected
$description
=
'Channel chat created'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
/**#@-*/
/**
...
...
src/Commands/ChoseninlineresultCommand.php
View file @
f7b4ab67
...
...
@@ -22,7 +22,7 @@ class ChoseninlineresultCommand extends Command
*/
protected
$name
=
'choseninlineresult'
;
protected
$description
=
'Chosen result query'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
/**#@-*/
/**
...
...
src/Commands/DateCommand.php
View file @
f7b4ab67
...
...
@@ -25,7 +25,7 @@ class DateCommand extends Command
protected
$name
=
'date'
;
protected
$description
=
'Show date/time by location'
;
protected
$usage
=
'/date <location>'
;
protected
$version
=
'1.2.
0
'
;
protected
$version
=
'1.2.
1
'
;
protected
$public
=
true
;
/**#@-*/
...
...
src/Commands/DeletechatphotoCommand.php
View file @
f7b4ab67
...
...
@@ -22,7 +22,7 @@ class DeletechatphotoCommand extends Command
*/
protected
$name
=
'Deletechatphoto'
;
protected
$description
=
'Delete chat photo'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
/**#@-*/
/**
...
...
src/Commands/EchoCommand.php
View file @
f7b4ab67
...
...
@@ -24,7 +24,7 @@ class EchoCommand extends Command
protected
$name
=
'echo'
;
protected
$description
=
'Show text'
;
protected
$usage
=
'/echo <text>'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
protected
$public
=
true
;
/**#@-*/
...
...
src/Commands/GenericCommand.php
View file @
f7b4ab67
...
...
@@ -23,7 +23,7 @@ class GenericCommand extends Command
*/
protected
$name
=
'Generic'
;
protected
$description
=
'Handles generic commands or is executed by default when a command is not found'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
/**#@-*/
/**
...
...
src/Commands/GenericmessageCommand.php
View file @
f7b4ab67
...
...
@@ -22,7 +22,7 @@ class GenericmessageCommand extends Command
*/
protected
$name
=
'Genericmessage'
;
protected
$description
=
'Handle generic message'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
/**#@-*/
/**
...
...
src/Commands/GroupchatcreatedCommand.php
View file @
f7b4ab67
...
...
@@ -22,7 +22,7 @@ class GroupchatcreatedCommand extends Command
*/
protected
$name
=
'Groupchatcreated'
;
protected
$description
=
'Group chat created'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
/**#@-*/
/**
...
...
src/Commands/HelpCommand.php
View file @
f7b4ab67
...
...
@@ -24,7 +24,7 @@ class HelpCommand extends Command
protected
$name
=
'help'
;
protected
$description
=
'Show bot commands help'
;
protected
$usage
=
'/help or /help <command>'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
protected
$public
=
true
;
/**#@-*/
...
...
src/Commands/InlinequeryCommand.php
View file @
f7b4ab67
...
...
@@ -24,7 +24,7 @@ class InlinequeryCommand extends Command
*/
protected
$name
=
'inlinequery'
;
protected
$description
=
'Reply to inline query'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
/**#@-*/
/**
...
...
src/Commands/LeftchatparticipantCommand.php
View file @
f7b4ab67
...
...
@@ -22,7 +22,7 @@ class LeftchatparticipantCommand extends Command
*/
protected
$name
=
'leftchatparticipant'
;
protected
$description
=
'Left Chat Participant'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
/**#@-*/
/**
...
...
src/Commands/NewchatparticipantCommand.php
View file @
f7b4ab67
...
...
@@ -23,7 +23,7 @@ class NewchatparticipantCommand extends Command
*/
protected
$name
=
'Newchatparticipant'
;
protected
$description
=
'New Chat Participant'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
/**#@-*/
/**
...
...
src/Commands/NewchattitleCommand.php
View file @
f7b4ab67
...
...
@@ -22,7 +22,7 @@ class NewchattitleCommand extends Command
*/
protected
$name
=
'Newchattitle'
;
protected
$description
=
'New chat Title'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
/**#@-*/
/**
...
...
src/Commands/SlapCommand.php
View file @
f7b4ab67
...
...
@@ -24,7 +24,7 @@ class SlapCommand extends Command
protected
$name
=
'slap'
;
protected
$description
=
'Slap someone with their username'
;
protected
$usage
=
'/slap <@user>'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
/**#@-*/
/**
...
...
src/Commands/StartCommand.php
View file @
f7b4ab67
...
...
@@ -24,7 +24,7 @@ class StartCommand extends Command
protected
$name
=
'start'
;
protected
$description
=
'Start command'
;
protected
$usage
=
'/'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
/**#@-*/
/**
...
...
src/Commands/SupergroupchatcreatedCommand.php
View file @
f7b4ab67
...
...
@@ -23,7 +23,7 @@ class SupergroupchatcreatedCommand extends Command
*/
protected
$name
=
'Supergroupchatcreated'
;
protected
$description
=
'Super group chat created'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
/**#@-*/
/**
...
...
src/Commands/WeatherCommand.php
View file @
f7b4ab67
...
...
@@ -24,7 +24,7 @@ class WeatherCommand extends Command
protected
$name
=
'weather'
;
protected
$description
=
'Show weather by location'
;
protected
$usage
=
'/weather <location>'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
protected
$public
=
true
;
/**#@-*/
...
...
@@ -42,14 +42,7 @@ class WeatherCommand extends Command
$ch
=
curl_init
();
$curlConfig
=
[
CURLOPT_URL
=>
$url
,
//CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER
=>
true
,
//CURLOPT_HTTPHEADER => ['Content-Type: text/plain'],
//CURLOPT_POSTFIELDS => $data
//CURLOPT_VERBOSE => true,
//CURLOPT_HEADER => true,
];
curl_setopt_array
(
$ch
,
$curlConfig
);
...
...
src/Commands/WhoamiCommand.php
View file @
f7b4ab67
...
...
@@ -27,7 +27,7 @@ class WhoamiCommand extends Command
protected
$name
=
'whoami'
;
protected
$description
=
'Show your id, name and username'
;
protected
$usage
=
'/whoami'
;
protected
$version
=
'1.0.
0
'
;
protected
$version
=
'1.0.
1
'
;
protected
$public
=
true
;
/**#@-*/
...
...
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