Procházet zdrojové kódy

docs: fix and lint @example of getEntity (#687)

Yakov Litvin před 8 měsíci
rodič
revize
e3e72ba3d0
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      gramjs/client/TelegramClient.ts

+ 3 - 3
gramjs/client/TelegramClient.ts

@@ -1298,11 +1298,11 @@ export class TelegramClient extends TelegramBaseClient {
      * @example
      * ```ts
      * const me = await client.getEntity("me");
-     * console.log("My name is",utils.getDisplayName(me));
+     * console.log("My name is", utils.getDisplayName(me));
      *
      * const chat = await client.getInputEntity("username");
-     * for await (const message of client.iterMessages(chat){
-     *     console.log("Message text is",message.text);
+     * for await (const message of client.iterMessages(chat)) {
+     *     console.log("Message text is", message.text);
      * }
      *
      * // Note that you could have used the username directly, but it's