Przeglądaj źródła

fix: return type hint of client.unpinMessage

Man Nguyen 3 lat temu
rodzic
commit
d23a7feeb6
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      gramjs/client/TelegramClient.ts

+ 1 - 1
gramjs/client/TelegramClient.ts

@@ -859,7 +859,7 @@ export class TelegramClient extends TelegramBaseClient {
             entity,
             message,
             unpinMessageParams
-        );
+        ) as Promise<Api.messages.AffectedHistory | undefined>;
     }
 
     /**