Skip to content

RPC error classes, default cancellations, IPC fixes

Compare
Choose a tag to compare
@danog danog released this 02 Jul 15:09
· 62 commits to v8 since this release

Features:

  • Add \danog\MadelineProto\RPCError\RateLimitError - Represents a generic rate limiting RPC (FLOOD_WAIT_, FLOOD_PREMIUM_WAIT_, etc) error returned by telegram, extends RPCErrorException.
  • 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\RPCError namespace that extend RPCErrorException, to allow usage of specialized catch blocks for the most common RPC errors, instead of just catching RPCErrorException and checking $e->rpc.
  • Improve docker image defaults.
  • Add support for invokeWithBusinessConnection via the businessConnectionId parameter 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.