for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LeoCarmo\TelegramBot\Model;
class Webhook extends Model
{
/**
* @var string
*/
protected $method;
protected $url;
* @var
protected $certificate;
* @var integer
protected $max_connections;
* @var array
protected $allowed_updates;
* HTTPS url to send updates to.
* Use an empty string to remove webhook integration
*
* @param string $url
* @return array
* @throws \LeoCarmo\TelegramBot\Exceptions\RequiredParameterException
public function set(string $url)
$this->url = $url;
$this->method = 'setWebhook';
return $this->send();
}
* Use this method to remove webhook integration if you decide to switch back to getUpdates
public function delete()
$this->method = 'deleteWebhook';
* Use this method to get current webhook status
public function get()
$this->method = 'getWebhookInfo';