LoadAsyncGraphRequest

Only users can use this request. See code examples.

---functions---
stats.loadAsyncGraph#621d5fa0 flags:# token:string x:flags.0?long = StatsGraph

Returns

StatsGraph

This type can be an instance of either:

StatsGraphStatsGraphAsync
StatsGraphError

Parameters

tokenstring
xlongThis argument defaults to None and can be omitted.

Known RPC errors

This request can cause 2 known errors:

GraphInvalidReloadErrorInvalid graph token provided, please reload the stats and provide the updated token.
GraphOutdatedReloadErrorData can't be used for the channel statistics, graphs outdated.

You can import these from telethon.errors.

Example

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

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.stats.LoadAsyncGraphRequest(
        token='some string here',
        x=-12398745604826
    ))
    print(result.stringify())