We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ce83b commit fd7085fCopy full SHA for fd7085f
src/Telegram/Bot.php
@@ -64,7 +64,7 @@ public function isValidToken(bool $thoroughCheck): bool
64
}
65
66
try {
67
- return $this->getMe()->getBody()->ok;
+ return $this->getMe()->body->ok;
68
} catch (TelegramException $e) {
69
return false;
70
@@ -141,7 +141,7 @@ public function updates(?int $offset = null): ?Update
141
if ($this->updatesMethod === Update::UPDATES_FROM_GET_UPDATES) {
142
return new Update($this->getUpdates([
143
"offset" => isset($offset) ? $offset + 1 : null
144
- ])->getBody(), $this->updatesMethod);
+ ])->body, $this->updatesMethod);
145
146
147
if ($this->updatesMethod === Update::UPDATES_FROM_WEBHOOK) {
0 commit comments