diff --git a/src/sdk/client.ts b/src/sdk/client.ts index 499c44f..e0307cd 100644 --- a/src/sdk/client.ts +++ b/src/sdk/client.ts @@ -1504,7 +1504,11 @@ export class MTPClient { ): Unsubscribe; subscribe( type: MTPCommunicationType, - handler: (message: MTPFrame) => void | Promise, + handler: (message: ParsedFrame) => void | Promise, + ): Unsubscribe; + subscribe( + type: MTPCommunicationType, + handler: (message: any) => void | Promise, ): Unsubscribe { if (typeof type !== "string" || !type) { throw new TypeError("subscription type must be a non-empty string");