ImportWebTokenAuthorization

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

Returns

auth.Authorization

Parameters

api_idintrequired
api_hashstringrequired
web_auth_tokenstringrequired

Example

The examples below use placeholder values. Replace them with real data before running the code.

Example
import asyncio
from ferogram import Client

app = Client("my_session", api_id=12345, api_hash="0123456789abcdef0123456789abcdef")

async def main():
    await app.start()
    result = await app.raw.auth.ImportWebTokenAuthorization(
        api_id=42,
        api_hash='some string here',
        web_auth_token='some string here'
    )
    print(result)

asyncio.run(main())