

This method will connect to the telegram servers and check if the user is already logged in. Used to handle all aspects of connecting to telegram.

Inherited from TelegramBaseClient.disconnected Defined in gramjs/client/telegramBaseClient.ts:350.get connected ( ) : undefined | boolean.Defined in gramjs/client/telegramBaseClient.ts:331.Inherited from TelegramBaseClient.maxConcurrentDownloads set maxConcurrentDownloads (value : number ) : void.Defined in gramjs/client/telegramBaseClient.ts:327.Defined in gramjs/client/telegramBaseClient.ts:323.Inherited from TelegramBaseClient.floodSleepThreshold set floodSleepThreshold (value : number ) : void.parseMode ) Returns undefined | ParseInterface See Api.TypeMessageEntity for allowed message entities.Įxample // gets the current parse mode. The unparse method should be the inverse of parse such that text = unparse(parse(text)). The parse method should be a function accepting a single parameter, the text to parse, and returning a tuple consisting of (parsed message str, ). For Markdown 'md' or 'markdown' may be used. When setting a different value it should be one of: It will always be either undefined or an object with parse and unparse methods.

This property is the default parse mode used when sending messages. Defined in gramjs/client/TelegramClient.ts:1539.Import telegramBotApi from "././telegram_bot_api.app.
