for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LeoCarmo\TelegramBot;
use LeoCarmo\TelegramBot\Model\ChatAction;
use LeoCarmo\TelegramBot\Model\Me;
use LeoCarmo\TelegramBot\Model\Message;
use LeoCarmo\TelegramBot\Model\Photo;
class TelegramBot
{
/**
* @var string
*/
protected static $telegram_endpoint = 'https://api.telegram.org/bot';
protected static $bot_token;
public static function token(string $bot_token)
self::$bot_token = $bot_token;
}
public static function getToken()
return self::$bot_token;
public static function getEndpoint()
return self::$telegram_endpoint;