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 0a30395 commit 9f87430Copy full SHA for 9f87430
1 file changed
src/BroadcastManager.php
@@ -218,6 +218,16 @@ public function broadcastWithProgress(
218
219
} catch (\danog\MadelineProto\RPCErrorException $e) {
220
unset($state['inFlight'][$peer]);
221
+
222
+ if ($e->rpc === 'INPUT_USER_DEACTIVATED' ||
223
+ $e->rpc === 'USER_IS_BOT' ||
224
+ $e->rpc === 'CHAT_WRITE_FORBIDDEN' ||
225
+ $e->rpc === 'USER_IS_BLOCKED' ||
226
+ $e->rpc === 'PEER_ID_INVALID') {
227
+ $state['failed']++;
228
+ continue;
229
+ }
230
231
if (preg_match('/FLOOD_WAIT_(\d+)/',$e->getMessage(),$m)) {
232
$job['attempts']++;
233
$job['availableAt']=microtime(true)+(int)$m[1];
0 commit comments