tgbotlib/src/TgBotLib/Bot.php

48 lines
880 B
PHP
Raw Normal View History

2023-02-12 13:43:38 -05:00
<?php
namespace TgBotLib;
class Bot
{
/**
* The bot's username
*
* @var string
*/
private $username;
/**
* The bot's token
*
* @var string
*/
private $token;
/**
* Public Constructor
*
* @param string $username
* @param string $token
*/
public function __construct(string $username, string $token)
{
$this->username = $username;
$this->token = $token;
}
/**
* @return string
*/
public function getUsername(): string
{
return $this->username;
}
/**
* @return string
*/
public function getToken(): string
{
return $this->token;
}
}