irazasyed / telegram-bot-sdk

🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
https://telegram-bot-sdk.com
BSD 3-Clause "New" or "Revised" License
3k stars 662 forks source link

The "getStatus" method always returns "false". #1136

Open dmigum opened 1 month ago

dmigum commented 1 month ago

PHP version

8.3

irazasyed/telegram-bot-sdk version

versions : * v3.14.0

Laravel version (if any)

No response

Code To Reproduce the bug

$message = $this->telegram->sendMessage(['text' => 'Hello, world!.']);

/*
* Always returns "false", because in the "Telegram\Bot\Objects\BaseObject" constructor called "getRawResult", which extracts from
* Telegram response only "result" and "ok" is discarded.
*/
var_dump($message->getStatus());

Error stacktrace (if any)

No response