Page MenuHomePhabricator (Chris)

SystemCommand.php
No OneTemporary

Authored By
Unknown
Size
883 B
Referenced Files
None
Subscribers
None

SystemCommand.php

<?php
/**
* This file is part of the TelegramBot 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\TelegramBot\Commands;
use Longman\TelegramBot\Http\Client;
use Longman\TelegramBot\Http\Response;
abstract class SystemCommand extends Command
{
/**
* A system command just executes
*
* Although system commands should just work and return a successful ServerResponse,
* each system command can override this method to add custom functionality.
*
* @return \Longman\TelegramBot\Http\Response
*/
public function execute()
{
//System command, return empty ServerResponse by default
return new Response(['ok' => true, 'result' => true]);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 15, 2:48 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
141377
Default Alt Text
SystemCommand.php (883 B)

Event Timeline