Skip to content

Commit

Permalink
docs: fix and lint @example of getEntity (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
YakovL authored Sep 4, 2024
1 parent 16af73d commit e3e72ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gramjs/client/TelegramClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3e72ba

Please sign in to comment.