for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Chrl\AppBundle;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use TelegramBot\Api\BotApi;
class BuktopuhaBotApi extends BotApi
{
public $token;
public function __construct($config)
$this->token = $config['token'];
parent::__construct($this->token);
}
/**
* @param string $token
*/
public function setToken($token)
$this->token = $token;