Skip to content

Commit 4e59a8b

Browse files
committed
Improve error message
1 parent f3ab2bf commit 4e59a8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Wrappers/DialogHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private function cacheFullDialogs(): bool
181181
private function getFullDialogsInternal(bool $force): array
182182
{
183183
if ($this->authorization['user']['bot']) {
184-
throw new Exception("You're logged in as a bot: please use getDialogs or getDialogsIds, instead.");
184+
throw new Exception("You're logged in as a bot: please use getDialogsIds, instead.");
185185
}
186186
if ($force || !isset($this->dialog_params['offset_date']) || \is_null($this->dialog_params['offset_date']) || !isset($this->dialog_params['offset_id']) || \is_null($this->dialog_params['offset_id']) || !isset($this->dialog_params['offset_peer']) || \is_null($this->dialog_params['offset_peer']) || !isset($this->dialog_params['count']) || \is_null($this->dialog_params['count'])) {
187187
$this->dialog_params = ['limit' => 100, 'offset_date' => 0, 'offset_id' => 0, 'offset_peer' => ['_' => 'inputPeerEmpty'], 'count' => 0, 'hash' => 0];

0 commit comments

Comments
 (0)