ImportWebTokenAuthorizationRequest

Both users and bots may be able to use this request. See code examples.

---functions---
auth.importWebTokenAuthorization#2db873a9 api_id:int api_hash:string web_auth_token:string = auth.Authorization

Returns

auth.Authorization

This type can be an instance of either:

AuthorizationAuthorizationSignUpRequired

Parameters

api_idint
api_hashstring
web_auth_tokenstring

Known RPC errors

This request can't cause any RPC error as far as we know.

Example

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.auth.ImportWebTokenAuthorizationRequest(
        api_id=42,
        api_hash='some string here',
        web_auth_token='some string here'
    ))
    print(result.stringify())