Telegram

Send Login Request

Authenticates session in Telegram.

You may have to call this method 2 times if 2fa is enabled in telegram app.

For auth_type=code: First, only with session_id & code. Second, with session_id, code, password.

For auth_type=qr: First, only with session_id. Second, with session_id, password.

post/companies/{company_id}/telegram/login

Request

  • Base URL: https://api.radist.online/v2
  • URL: https://api.radist.online/v2/companies/{company_id}/telegram/login
  • Auth: one of:
    • API key in header X-Api-Key
    • OAuth 2 (password, token URL https://auth.radist.online/auth/realms/radist/protocol/openid-connect/token)

Path parameters

company_idinteger required

Request body

session_idstring uuid required
codeinteger nullable
passwordstring nullable

Response

Successful Response

session_idstring required
status'authenticated' | 'waiting_for_qr' | 'waiting_for_code' | 'waiting_for_password' required

Changes

No recorded changes to this operation across all 1 revision of this API.