LoadAsyncGraphRequest

Only users can use this method. 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:

GraphInvalidReloadError.
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())