瀏覽代碼

fixed a typo in checkAuthorization (#297)

DadiT 3 年之前
父節點
當前提交
17b8d6b23e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gramjs/client/TelegramClient.ts

+ 1 - 1
gramjs/client/TelegramClient.ts

@@ -109,7 +109,7 @@ export class TelegramClient extends TelegramBaseClient {
      * @example
      * ```ts
      * await client.connect();
-     * if (await client.checkAuthorization(){
+     * if (await client.checkAuthorization()){
      *     console.log("I am logged in!");
      * }else{
      *     console.log("I am connected to telegram servers but not logged in with any account/bot");