RPC error classes, default cancellations, IPC fixes
Features:
- Add
\danog\MadelineProto\RPCError\RateLimitError- Represents a generic rate limiting RPC (FLOOD_WAIT_, FLOOD_PREMIUM_WAIT_, etc) error returned by telegram, extendsRPCErrorException. - Add
\danog\MadelineProto\RPCError\TimeoutError- Represents a request timeout RPC error returned by telegram (as opposed to one returned by MadelineProto, which will be an\Amp\TimeoutException). - Add over 65 more RPC errors in the
danog\MadelineProto\RPCErrornamespace that extendRPCErrorException, to allow usage of specialized catch blocks for the most common RPC errors, instead of just catchingRPCErrorExceptionand checking$e->rpc. - Improve docker image defaults.
- Add support for invokeWithBusinessConnection via the
businessConnectionIdparameter on supported methods.
Fixes:
- Handle
FLOOD_PREMIUM_WAIT_errors during file operations. - Automatically refresh peer info on bot_info_version changes and updatePeerBlocked updates.
- Fix issues with reverse IPC method calls.
- Multiple other bugfixes.