- Laravel 8.x only
- Bugfix InputFile::open().
- Support Laravel 8.*
- Support for PHP 8.0
- More Cause functions
- Stop supporting PHP 7.1, 7.0 and 5.*
- Stop supporting Laravel 5.7
- Support Laravel 6 and 7
- Support for Bot API 4.3
- Partial support for Bot API 4.1 (Passport not implemented yet).
- Support for Bot API 3.6.
- Support for multipart attachments.
- Add methods
Message::getCaptionHtml()
andMessage::hasHtmlCaption()
. - Add method
TelegramResponseException::retryAfter()
.
- Move some logic from
Api
toTelegramRequest
, so thatTelegramRequest::params
represents the params passed toApi
methods. - Support for Bot Api 3.4.
- Add Message::getCaptionEntityText() method.
- The API functions now accept alternative bot access token via
$params['_AccessToken_']
:
$api = new \Telegram\Bot\Api();
$api->sendMessage([
'_AccessToken_' => '123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11',
'chat_id' => 12341234,
'text' => 'test',
]);
- A new
Api::onSending
event handler is introduced.
- Add
Closure $parser = null
parameter toApi::uploadFile()
protected function. - Add
$token
parameter toApi::sendRequest()
andApi::request
protected functions. - Changes interaction between
Api::uploadFile()
andApi::post()
protected functions.
- Fix
setChatPhoto()
,createNewStickerSet()
,addStickerToSet()
, anduploadStickerFile()
.
- The deprecated
Telegram\Keyboard
classes and keyboard related functions inTelegram\Api
class are removed.