From e3e72ba3d084071fb3aa890d7a97f85f0b1bfd62 Mon Sep 17 00:00:00 2001 From: Yakov Litvin Date: Wed, 4 Sep 2024 12:59:38 +0300 Subject: [PATCH] docs: fix and lint @example of getEntity (#687) --- gramjs/client/TelegramClient.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramjs/client/TelegramClient.ts b/gramjs/client/TelegramClient.ts index ca8cff73..ecea5e7f 100644 --- a/gramjs/client/TelegramClient.ts +++ b/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