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:
StatsGraph | StatsGraphAsync |
StatsGraphError |
Parameters
token | string | |
x | long | This argument defaults to None and can be omitted. |
Known RPC errors
This request can cause 2 known errors:
GraphInvalidReloadError | Invalid graph token provided, please reload the stats and provide the updated token. |
GraphOutdatedReloadError | Data 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())