Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dmigum opened this issue Aug 10, 2024 · 0 comments
Open

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

dmigum opened this issue Aug 10, 2024 · 0 comments
Labels

Comments

@dmigum
Copy link

dmigum commented Aug 10, 2024

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 dmigum added the bug label Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant