Minor Changes
This commit is contained in:
parent
11e60c56c4
commit
e3ed0529b9
4 changed files with 34 additions and 21 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
use CURLFile;
|
||||
use CurlHandle;
|
||||
use Exception;
|
||||
use InvalidArgumentException;
|
||||
use TgBotLib\Abstracts\ChatMemberStatus;
|
||||
use TgBotLib\Abstracts\EventType;
|
||||
|
@ -129,6 +130,7 @@
|
|||
* Sets whether the library will use SSL to send requests
|
||||
*
|
||||
* @param bool $ssl
|
||||
* @noinspection PhpUnused
|
||||
*/
|
||||
public function setSsl(bool $ssl): void
|
||||
{
|
||||
|
@ -405,6 +407,13 @@
|
|||
$handler->handle($this, $update);
|
||||
}
|
||||
break;
|
||||
|
||||
case EventType::CallbackQuery:
|
||||
if(($update->getCallbackQuery() ?? null) !== null)
|
||||
{
|
||||
$handler->handle($this, $update);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2165,4 +2174,19 @@
|
|||
]);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Public Destructor
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
try
|
||||
{
|
||||
$this->close();
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
unset($e);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue