Commit e68b85a1 authored by LONGMAN's avatar LONGMAN

init

parent b86734b3
<?php <?php
/* /*
* This file is part of the TelegramApi package. * This file is part of the TelegramBot package.
* *
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com> * (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Longman\TelegramApi; namespace Longman\TelegramBot;
use Longman\TelegramApi\Entities\Update; use Longman\TelegramBot\Entities\Update;
abstract class Command abstract class Command
{ {
......
<?php <?php
/* /*
* This file is part of the TelegramApi package. * This file is part of the TelegramBot package.
* *
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com> * (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Longman\TelegramApi\Commands; namespace Longman\TelegramBot\Commands;
use Longman\TelegramApi\Request; use Longman\TelegramBot\Request;
use Longman\TelegramApi\Command; use Longman\TelegramBot\Command;
use Longman\TelegramApi\Entities\Update; use Longman\TelegramBot\Entities\Update;
class DateCommand extends Command class DateCommand extends Command
{ {
......
<?php <?php
/* /*
* This file is part of the TelegramApi package. * This file is part of the TelegramBot package.
* *
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com> * (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Longman\TelegramApi\Commands; namespace Longman\TelegramBot\Commands;
use Longman\TelegramApi\Request; use Longman\TelegramBot\Request;
use Longman\TelegramApi\Command; use Longman\TelegramBot\Command;
use Longman\TelegramApi\Entities\Update; use Longman\TelegramBot\Entities\Update;
class EchoCommand extends Command class EchoCommand extends Command
{ {
......
<?php <?php
/* /*
* This file is part of the TelegramApi package. * This file is part of the TelegramBot package.
* *
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com> * (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Longman\TelegramApi\Commands; namespace Longman\TelegramBot\Commands;
use Longman\TelegramApi\Request; use Longman\TelegramBot\Request;
use Longman\TelegramApi\Command; use Longman\TelegramBot\Command;
use Longman\TelegramApi\Entities\Update; use Longman\TelegramBot\Entities\Update;
class HelpCommand extends Command class HelpCommand extends Command
{ {
......
<?php <?php
/* /*
* This file is part of the TelegramApi package. * This file is part of the TelegramBot package.
* *
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com> * (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Longman\TelegramApi\Commands; namespace Longman\TelegramBot\Commands;
use Longman\TelegramApi\Request; use Longman\TelegramBot\Request;
use Longman\TelegramApi\Command; use Longman\TelegramBot\Command;
use Longman\TelegramApi\Entities\Update; use Longman\TelegramBot\Entities\Update;
class WeatherCommand extends Command class WeatherCommand extends Command
{ {
......
<?php <?php
/* /*
* This file is part of the TelegramApi package. * This file is part of the TelegramBot package.
* *
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com> * (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Longman\TelegramApi; namespace Longman\TelegramBot;
class Request class Request
......
<?php <?php
/* /*
* This file is part of the TelegramApi package. * This file is part of the TelegramBot package.
* *
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com> * (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Longman\TelegramApi; namespace Longman\TelegramBot;
ini_set('max_execution_time', 0); ini_set('max_execution_time', 0);
...@@ -19,7 +19,7 @@ date_default_timezone_set('UTC'); ...@@ -19,7 +19,7 @@ date_default_timezone_set('UTC');
define('VERSION', '0.0.1'); define('VERSION', '0.0.1');
use Longman\TelegramApi\Entities\Update; use Longman\TelegramBot\Entities\Update;
/** /**
* @package Telegram * @package Telegram
...@@ -54,7 +54,7 @@ class Telegram ...@@ -54,7 +54,7 @@ class Telegram
/** /**
* Update object * Update object
* *
* @var \Longman\TelegramApi\Entities\Update * @var \Longman\TelegramBot\Entities\Update
*/ */
protected $update; protected $update;
...@@ -89,7 +89,7 @@ class Telegram ...@@ -89,7 +89,7 @@ class Telegram
* *
* @param string $update * @param string $update
* *
* @return \Longman\TelegramApi\Telegram * @return \Longman\TelegramBot\Telegram
*/ */
public function setCustomUpdate($update) { public function setCustomUpdate($update) {
$this->update = $update; $this->update = $update;
...@@ -110,7 +110,7 @@ class Telegram ...@@ -110,7 +110,7 @@ class Telegram
* *
* @param bool $log_requests * @param bool $log_requests
* *
* @return \Longman\TelegramApi\Telegram * @return \Longman\TelegramBot\Telegram
*/ */
public function setLogRequests($log_requests) { public function setLogRequests($log_requests) {
$this->log_requests = $log_requests; $this->log_requests = $log_requests;
...@@ -133,7 +133,7 @@ class Telegram ...@@ -133,7 +133,7 @@ class Telegram
* *
* @param string $log_path * @param string $log_path
* *
* @return \Longman\TelegramApi\Telegram * @return \Longman\TelegramBot\Telegram
*/ */
public function setLogPath($log_path) { public function setLogPath($log_path) {
$this->log_path = $log_path; $this->log_path = $log_path;
...@@ -154,7 +154,7 @@ class Telegram ...@@ -154,7 +154,7 @@ class Telegram
/** /**
* Handle bot request * Handle bot request
* *
* @return \Longman\TelegramApi\Telegram * @return \Longman\TelegramBot\Telegram
*/ */
public function handle() { public function handle() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment