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
e68b85a1
Commit
e68b85a1
authored
Jun 30, 2015
by
LONGMAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
b86734b3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
33 deletions
+33
-33
Command.php
src/Command.php
+3
-3
DateCommand.php
src/Commands/DateCommand.php
+5
-5
EchoCommand.php
src/Commands/EchoCommand.php
+5
-5
HelpCommand.php
src/Commands/HelpCommand.php
+5
-5
WeatherCommand.php
src/Commands/WeatherCommand.php
+5
-5
Request.php
src/Request.php
+2
-2
Telegram.php
src/Telegram.php
+8
-8
No files found.
src/Command.php
View file @
e68b85a1
<?php
/*
* This file is part of the Telegram
Api
package.
* This file is part of the Telegram
Bot
package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
Longman\Telegram
Api
;
namespace
Longman\Telegram
Bot
;
use
Longman\Telegram
Api
\Entities\Update
;
use
Longman\Telegram
Bot
\Entities\Update
;
abstract
class
Command
{
...
...
src/Commands/DateCommand.php
View file @
e68b85a1
<?php
/*
* This file is part of the Telegram
Api
package.
* This file is part of the Telegram
Bot
package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
Longman\Telegram
Api
\Commands
;
namespace
Longman\Telegram
Bot
\Commands
;
use
Longman\Telegram
Api
\Request
;
use
Longman\Telegram
Api
\Command
;
use
Longman\Telegram
Api
\Entities\Update
;
use
Longman\Telegram
Bot
\Request
;
use
Longman\Telegram
Bot
\Command
;
use
Longman\Telegram
Bot
\Entities\Update
;
class
DateCommand
extends
Command
{
...
...
src/Commands/EchoCommand.php
View file @
e68b85a1
<?php
/*
* This file is part of the Telegram
Api
package.
* This file is part of the Telegram
Bot
package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
Longman\Telegram
Api
\Commands
;
namespace
Longman\Telegram
Bot
\Commands
;
use
Longman\Telegram
Api
\Request
;
use
Longman\Telegram
Api
\Command
;
use
Longman\Telegram
Api
\Entities\Update
;
use
Longman\Telegram
Bot
\Request
;
use
Longman\Telegram
Bot
\Command
;
use
Longman\Telegram
Bot
\Entities\Update
;
class
EchoCommand
extends
Command
{
...
...
src/Commands/HelpCommand.php
View file @
e68b85a1
<?php
/*
* This file is part of the Telegram
Api
package.
* This file is part of the Telegram
Bot
package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
Longman\Telegram
Api
\Commands
;
namespace
Longman\Telegram
Bot
\Commands
;
use
Longman\Telegram
Api
\Request
;
use
Longman\Telegram
Api
\Command
;
use
Longman\Telegram
Api
\Entities\Update
;
use
Longman\Telegram
Bot
\Request
;
use
Longman\Telegram
Bot
\Command
;
use
Longman\Telegram
Bot
\Entities\Update
;
class
HelpCommand
extends
Command
{
...
...
src/Commands/WeatherCommand.php
View file @
e68b85a1
<?php
/*
* This file is part of the Telegram
Api
package.
* This file is part of the Telegram
Bot
package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
Longman\Telegram
Api
\Commands
;
namespace
Longman\Telegram
Bot
\Commands
;
use
Longman\Telegram
Api
\Request
;
use
Longman\Telegram
Api
\Command
;
use
Longman\Telegram
Api
\Entities\Update
;
use
Longman\Telegram
Bot
\Request
;
use
Longman\Telegram
Bot
\Command
;
use
Longman\Telegram
Bot
\Entities\Update
;
class
WeatherCommand
extends
Command
{
...
...
src/Request.php
View file @
e68b85a1
<?php
/*
* This file is part of the Telegram
Api
package.
* This file is part of the Telegram
Bot
package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
Longman\Telegram
Api
;
namespace
Longman\Telegram
Bot
;
class
Request
...
...
src/Telegram.php
View file @
e68b85a1
<?php
/*
* This file is part of the Telegram
Api
package.
* This file is part of the Telegram
Bot
package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
Longman\Telegram
Api
;
namespace
Longman\Telegram
Bot
;
ini_set
(
'max_execution_time'
,
0
);
...
...
@@ -19,7 +19,7 @@ date_default_timezone_set('UTC');
define
(
'VERSION'
,
'0.0.1'
);
use
Longman\Telegram
Api
\Entities\Update
;
use
Longman\Telegram
Bot
\Entities\Update
;
/**
* @package Telegram
...
...
@@ -54,7 +54,7 @@ class Telegram
/**
* Update object
*
* @var \Longman\Telegram
Api
\Entities\Update
* @var \Longman\Telegram
Bot
\Entities\Update
*/
protected
$update
;
...
...
@@ -89,7 +89,7 @@ class Telegram
*
* @param string $update
*
* @return \Longman\Telegram
Api
\Telegram
* @return \Longman\Telegram
Bot
\Telegram
*/
public
function
setCustomUpdate
(
$update
)
{
$this
->
update
=
$update
;
...
...
@@ -110,7 +110,7 @@ class Telegram
*
* @param bool $log_requests
*
* @return \Longman\Telegram
Api
\Telegram
* @return \Longman\Telegram
Bot
\Telegram
*/
public
function
setLogRequests
(
$log_requests
)
{
$this
->
log_requests
=
$log_requests
;
...
...
@@ -133,7 +133,7 @@ class Telegram
*
* @param string $log_path
*
* @return \Longman\Telegram
Api
\Telegram
* @return \Longman\Telegram
Bot
\Telegram
*/
public
function
setLogPath
(
$log_path
)
{
$this
->
log_path
=
$log_path
;
...
...
@@ -154,7 +154,7 @@ class Telegram
/**
* Handle bot request
*
* @return \Longman\Telegram
Api
\Telegram
* @return \Longman\Telegram
Bot
\Telegram
*/
public
function
handle
()
{
...
...
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