| Type | Details |
|---|---|
| API Key |
API ID (text)
Log in at https://my.telegram.org, open API development tools, create an application and copy its numeric App api_id.
API Hash (password)
The App api_hash shown next to the API ID on my.telegram.org.
Session String (password)
A pre-generated user session for the API ID above. Create it once on your own machine by logging in with the teleproto library (npm install teleproto, then client.start() and client.session.save()), which asks for your phone number, the login code and your 2FA password. The Telegram User page of the connector configuration guide has a ready-made script. The string grants full access to the Telegram account, so treat it as a password. Generate a session just for this connection and do not use the same string in another application at the same time - Telegram revokes a session that is used from two places at once. Use a dedicated account if possible.
|
/sendMessage is enough - the bot token is added automatically. Use this to reach methods this connector does not expose as their own component.