telegram-bot-sdk icon indicating copy to clipboard operation
telegram-bot-sdk copied to clipboard

The "getStatus" method always returns "false".

Open dmigum opened this issue 1 year ago • 0 comments

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

dmigum avatar Aug 10 '24 04:08 dmigum