mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-09-04 16:10:39 +00:00
Update documentation
This commit is contained in:
26
methods/stats/get_broadcast_stats.html
Normal file
26
methods/stats/get_broadcast_stats.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>GetBroadcastStatsRequest</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link id="style" href="../../css/docs.dark.css" rel="stylesheet">
|
||||
<script>
|
||||
document.getElementById("style").href = "../../css/docs."
|
||||
+ (localStorage.getItem("theme") || "light")
|
||||
+ ".css";
|
||||
</script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito|Source+Code+Pro"
|
||||
rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="main_div"><ul class="horizontal"><li><a href="../../index.html">API</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="../index.html">Methods</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="index.html">Stats</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="get_broadcast_stats.html">GetBroadcastStatsRequest</a></li></ul><h1>GetBroadcastStatsRequest</h1><p><strong>Only users</strong> can use this request. <a href="#examples">See code examples.</a></p><pre>---functions---
|
||||
stats.getBroadcastStats#ab42441a flags:# dark:flags.0?<a href="../../index.html#true">true</a> channel:<a href="../../types/input_channel.html">InputChannel</a> = <a href="../../types/stats/broadcast_stats.html">stats.BroadcastStats</a></pre><button onclick="cp('from telethon.tl.functions.stats import GetBroadcastStatsRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/stats/broadcast_stats.html">stats.BroadcastStats</a></td></tr></table><p>This type can only be an instance of:</p><table><tr><td><a href="../../constructors/stats/broadcast_stats.html">BroadcastStats</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>channel</b></td><td style="text-align:center"><a href="../../types/input_channel.html">InputChannel</a></td><td>Anything entity-like will work if the library can find its <code>Input</code> version (e.g., usernames, <code>Peer</code>, <code>User</code> or <code>Channel</code> objects, etc.).</td></tr><tr><td><b>dark</b></td><td style="text-align:center"><a href="../../index.html#true">flag</a></td><td>This argument defaults to <code>None</code> and can be omitted.</td></tr></table><h1>Known RPC errors</h1><p>This request can cause 4 known errors:</p><table><tr><td><code>BroadcastRequiredError</code></td><td>The request can only be used with a broadcast channel.</td></tr><tr><td><code>ChatAdminRequiredError</code></td><td>Chat admin privileges are required to do that in the specified chat (for example, to send a message in a channel which is not yours), or invalid permissions used for the channel or group.</td></tr><tr><td><code>ChpCallFailError</code></td><td>The statistics cannot be retrieved at this time.</td></tr><tr><td><code>StatsMigrateError</code></td><td>The channel statistics must be fetched from DC {dc}.</td></tr></table><p>You can import these from <code>telethon.errors</code>.</p><h1 id="examples">Example</h1><pre><strong>from</strong> telethon.sync <strong>import</strong> TelegramClient
|
||||
<strong>from</strong> telethon <strong>import</strong> functions, types
|
||||
|
||||
<strong>with</strong> TelegramClient(name, api_id, api_hash) <strong>as</strong> client:
|
||||
result = client(functions.stats.GetBroadcastStatsRequest(
|
||||
channel=<em>'username'</em>,
|
||||
dark=<strong>True</strong>
|
||||
))
|
||||
print(result.stringify())</pre><textarea id="c" class="invisible"></textarea><script>function cp(t){var c=document.getElementById("c");c.value=t;c.select();try{document.execCommand("copy")}catch(e){}}</script></div><script>prependPath = "../../";</script><script src="../../js/search.js"></script></body></html>
|
||||
26
methods/stats/get_megagroup_stats.html
Normal file
26
methods/stats/get_megagroup_stats.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>GetMegagroupStatsRequest</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link id="style" href="../../css/docs.dark.css" rel="stylesheet">
|
||||
<script>
|
||||
document.getElementById("style").href = "../../css/docs."
|
||||
+ (localStorage.getItem("theme") || "light")
|
||||
+ ".css";
|
||||
</script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito|Source+Code+Pro"
|
||||
rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="main_div"><ul class="horizontal"><li><a href="../../index.html">API</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="../index.html">Methods</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="index.html">Stats</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="get_megagroup_stats.html">GetMegagroupStatsRequest</a></li></ul><h1>GetMegagroupStatsRequest</h1><p><strong>Only users</strong> can use this request. <a href="#examples">See code examples.</a></p><pre>---functions---
|
||||
stats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?<a href="../../index.html#true">true</a> channel:<a href="../../types/input_channel.html">InputChannel</a> = <a href="../../types/stats/megagroup_stats.html">stats.MegagroupStats</a></pre><button onclick="cp('from telethon.tl.functions.stats import GetMegagroupStatsRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/stats/megagroup_stats.html">stats.MegagroupStats</a></td></tr></table><p>This type can only be an instance of:</p><table><tr><td><a href="../../constructors/stats/megagroup_stats.html">MegagroupStats</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>channel</b></td><td style="text-align:center"><a href="../../types/input_channel.html">InputChannel</a></td><td>Anything entity-like will work if the library can find its <code>Input</code> version (e.g., usernames, <code>Peer</code>, <code>User</code> or <code>Channel</code> objects, etc.).</td></tr><tr><td><b>dark</b></td><td style="text-align:center"><a href="../../index.html#true">flag</a></td><td>This argument defaults to <code>None</code> and can be omitted.</td></tr></table><h1>Known RPC errors</h1><p>This request can cause 3 known errors:</p><table><tr><td><code>ChatAdminRequiredError</code></td><td>Chat admin privileges are required to do that in the specified chat (for example, to send a message in a channel which is not yours), or invalid permissions used for the channel or group.</td></tr><tr><td><code>MegagroupRequiredError</code></td><td>The request can only be used with a megagroup channel.</td></tr><tr><td><code>StatsMigrateError</code></td><td>The channel statistics must be fetched from DC {dc}.</td></tr></table><p>You can import these from <code>telethon.errors</code>.</p><h1 id="examples">Example</h1><pre><strong>from</strong> telethon.sync <strong>import</strong> TelegramClient
|
||||
<strong>from</strong> telethon <strong>import</strong> functions, types
|
||||
|
||||
<strong>with</strong> TelegramClient(name, api_id, api_hash) <strong>as</strong> client:
|
||||
result = client(functions.stats.GetMegagroupStatsRequest(
|
||||
channel=<em>'username'</em>,
|
||||
dark=<strong>True</strong>
|
||||
))
|
||||
print(result.stringify())</pre><textarea id="c" class="invisible"></textarea><script>function cp(t){var c=document.getElementById("c");c.value=t;c.select();try{document.execCommand("copy")}catch(e){}}</script></div><script>prependPath = "../../";</script><script src="../../js/search.js"></script></body></html>
|
||||
28
methods/stats/get_message_public_forwards.html
Normal file
28
methods/stats/get_message_public_forwards.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>GetMessagePublicForwardsRequest</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link id="style" href="../../css/docs.dark.css" rel="stylesheet">
|
||||
<script>
|
||||
document.getElementById("style").href = "../../css/docs."
|
||||
+ (localStorage.getItem("theme") || "light")
|
||||
+ ".css";
|
||||
</script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito|Source+Code+Pro"
|
||||
rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="main_div"><ul class="horizontal"><li><a href="../../index.html">API</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="../index.html">Methods</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="index.html">Stats</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="get_message_public_forwards.html">GetMessagePublicForwardsRequest</a></li></ul><h1>GetMessagePublicForwardsRequest</h1><p>Both users and bots <strong>may</strong> be able to use this request. <a href="#examples">See code examples.</a></p><pre>---functions---
|
||||
stats.getMessagePublicForwards#5f150144 channel:<a href="../../types/input_channel.html">InputChannel</a> msg_id:<a href="../../index.html#int">int</a> offset:<a href="../../index.html#string">string</a> limit:<a href="../../index.html#int">int</a> = <a href="../../types/stats/public_forwards.html">stats.PublicForwards</a></pre><button onclick="cp('from telethon.tl.functions.stats import GetMessagePublicForwardsRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/stats/public_forwards.html">stats.PublicForwards</a></td></tr></table><p>This type can only be an instance of:</p><table><tr><td><a href="../../constructors/stats/public_forwards.html">PublicForwards</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>channel</b></td><td style="text-align:center"><a href="../../types/input_channel.html">InputChannel</a></td><td>Anything entity-like will work if the library can find its <code>Input</code> version (e.g., usernames, <code>Peer</code>, <code>User</code> or <code>Channel</code> objects, etc.).</td></tr><tr><td><b>msg_id</b></td><td style="text-align:center"><a href="../../index.html#int">int</a></td><td></td></tr><tr><td><b>offset</b></td><td style="text-align:center"><a href="../../index.html#string">string</a></td><td></td></tr><tr><td><b>limit</b></td><td style="text-align:center"><a href="../../index.html#int">int</a></td><td></td></tr></table><h1>Known RPC errors</h1><p>This request can't cause any RPC error as far as we know.</p><h1 id="examples">Example</h1><pre><strong>from</strong> telethon.sync <strong>import</strong> TelegramClient
|
||||
<strong>from</strong> telethon <strong>import</strong> functions, types
|
||||
|
||||
<strong>with</strong> TelegramClient(name, api_id, api_hash) <strong>as</strong> client:
|
||||
result = client(functions.stats.GetMessagePublicForwardsRequest(
|
||||
channel=<em>'username'</em>,
|
||||
msg_id=42,
|
||||
offset=<em>'some string here'</em>,
|
||||
limit=100
|
||||
))
|
||||
print(result.stringify())</pre><textarea id="c" class="invisible"></textarea><script>function cp(t){var c=document.getElementById("c");c.value=t;c.select();try{document.execCommand("copy")}catch(e){}}</script></div><script>prependPath = "../../";</script><script src="../../js/search.js"></script></body></html>
|
||||
27
methods/stats/get_message_stats.html
Normal file
27
methods/stats/get_message_stats.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>GetMessageStatsRequest</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link id="style" href="../../css/docs.dark.css" rel="stylesheet">
|
||||
<script>
|
||||
document.getElementById("style").href = "../../css/docs."
|
||||
+ (localStorage.getItem("theme") || "light")
|
||||
+ ".css";
|
||||
</script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito|Source+Code+Pro"
|
||||
rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="main_div"><ul class="horizontal"><li><a href="../../index.html">API</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="../index.html">Methods</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="index.html">Stats</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="get_message_stats.html">GetMessageStatsRequest</a></li></ul><h1>GetMessageStatsRequest</h1><p>Both users and bots <strong>may</strong> be able to use this request. <a href="#examples">See code examples.</a></p><pre>---functions---
|
||||
stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?<a href="../../index.html#true">true</a> channel:<a href="../../types/input_channel.html">InputChannel</a> msg_id:<a href="../../index.html#int">int</a> = <a href="../../types/stats/message_stats.html">stats.MessageStats</a></pre><button onclick="cp('from telethon.tl.functions.stats import GetMessageStatsRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/stats/message_stats.html">stats.MessageStats</a></td></tr></table><p>This type can only be an instance of:</p><table><tr><td><a href="../../constructors/stats/message_stats.html">MessageStats</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>channel</b></td><td style="text-align:center"><a href="../../types/input_channel.html">InputChannel</a></td><td>Anything entity-like will work if the library can find its <code>Input</code> version (e.g., usernames, <code>Peer</code>, <code>User</code> or <code>Channel</code> objects, etc.).</td></tr><tr><td><b>msg_id</b></td><td style="text-align:center"><a href="../../index.html#int">int</a></td><td></td></tr><tr><td><b>dark</b></td><td style="text-align:center"><a href="../../index.html#true">flag</a></td><td>This argument defaults to <code>None</code> and can be omitted.</td></tr></table><h1>Known RPC errors</h1><p>This request can't cause any RPC error as far as we know.</p><h1 id="examples">Example</h1><pre><strong>from</strong> telethon.sync <strong>import</strong> TelegramClient
|
||||
<strong>from</strong> telethon <strong>import</strong> functions, types
|
||||
|
||||
<strong>with</strong> TelegramClient(name, api_id, api_hash) <strong>as</strong> client:
|
||||
result = client(functions.stats.GetMessageStatsRequest(
|
||||
channel=<em>'username'</em>,
|
||||
msg_id=42,
|
||||
dark=<strong>True</strong>
|
||||
))
|
||||
print(result.stringify())</pre><textarea id="c" class="invisible"></textarea><script>function cp(t){var c=document.getElementById("c");c.value=t;c.select();try{document.execCommand("copy")}catch(e){}}</script></div><script>prependPath = "../../";</script><script src="../../js/search.js"></script></body></html>
|
||||
28
methods/stats/get_story_public_forwards.html
Normal file
28
methods/stats/get_story_public_forwards.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>GetStoryPublicForwardsRequest</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link id="style" href="../../css/docs.dark.css" rel="stylesheet">
|
||||
<script>
|
||||
document.getElementById("style").href = "../../css/docs."
|
||||
+ (localStorage.getItem("theme") || "light")
|
||||
+ ".css";
|
||||
</script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito|Source+Code+Pro"
|
||||
rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="main_div"><ul class="horizontal"><li><a href="../../index.html">API</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="../index.html">Methods</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="index.html">Stats</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="get_story_public_forwards.html">GetStoryPublicForwardsRequest</a></li></ul><h1>GetStoryPublicForwardsRequest</h1><p>Both users and bots <strong>may</strong> be able to use this request. <a href="#examples">See code examples.</a></p><pre>---functions---
|
||||
stats.getStoryPublicForwards#a6437ef6 peer:<a href="../../types/input_peer.html">InputPeer</a> id:<a href="../../index.html#int">int</a> offset:<a href="../../index.html#string">string</a> limit:<a href="../../index.html#int">int</a> = <a href="../../types/stats/public_forwards.html">stats.PublicForwards</a></pre><button onclick="cp('from telethon.tl.functions.stats import GetStoryPublicForwardsRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/stats/public_forwards.html">stats.PublicForwards</a></td></tr></table><p>This type can only be an instance of:</p><table><tr><td><a href="../../constructors/stats/public_forwards.html">PublicForwards</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>peer</b></td><td style="text-align:center"><a href="../../types/input_peer.html">InputPeer</a></td><td>Anything entity-like will work if the library can find its <code>Input</code> version (e.g., usernames, <code>Peer</code>, <code>User</code> or <code>Channel</code> objects, etc.).</td></tr><tr><td><b>id</b></td><td style="text-align:center"><a href="../../index.html#int">int</a></td><td></td></tr><tr><td><b>offset</b></td><td style="text-align:center"><a href="../../index.html#string">string</a></td><td></td></tr><tr><td><b>limit</b></td><td style="text-align:center"><a href="../../index.html#int">int</a></td><td></td></tr></table><h1>Known RPC errors</h1><p>This request can't cause any RPC error as far as we know.</p><h1 id="examples">Example</h1><pre><strong>from</strong> telethon.sync <strong>import</strong> TelegramClient
|
||||
<strong>from</strong> telethon <strong>import</strong> functions, types
|
||||
|
||||
<strong>with</strong> TelegramClient(name, api_id, api_hash) <strong>as</strong> client:
|
||||
result = client(functions.stats.GetStoryPublicForwardsRequest(
|
||||
peer=<em>'username'</em>,
|
||||
id=42,
|
||||
offset=<em>'some string here'</em>,
|
||||
limit=100
|
||||
))
|
||||
print(result.stringify())</pre><textarea id="c" class="invisible"></textarea><script>function cp(t){var c=document.getElementById("c");c.value=t;c.select();try{document.execCommand("copy")}catch(e){}}</script></div><script>prependPath = "../../";</script><script src="../../js/search.js"></script></body></html>
|
||||
27
methods/stats/get_story_stats.html
Normal file
27
methods/stats/get_story_stats.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>GetStoryStatsRequest</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link id="style" href="../../css/docs.dark.css" rel="stylesheet">
|
||||
<script>
|
||||
document.getElementById("style").href = "../../css/docs."
|
||||
+ (localStorage.getItem("theme") || "light")
|
||||
+ ".css";
|
||||
</script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito|Source+Code+Pro"
|
||||
rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="main_div"><ul class="horizontal"><li><a href="../../index.html">API</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="../index.html">Methods</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="index.html">Stats</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="get_story_stats.html">GetStoryStatsRequest</a></li></ul><h1>GetStoryStatsRequest</h1><p>Both users and bots <strong>may</strong> be able to use this request. <a href="#examples">See code examples.</a></p><pre>---functions---
|
||||
stats.getStoryStats#374fef40 flags:# dark:flags.0?<a href="../../index.html#true">true</a> peer:<a href="../../types/input_peer.html">InputPeer</a> id:<a href="../../index.html#int">int</a> = <a href="../../types/stats/story_stats.html">stats.StoryStats</a></pre><button onclick="cp('from telethon.tl.functions.stats import GetStoryStatsRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/stats/story_stats.html">stats.StoryStats</a></td></tr></table><p>This type can only be an instance of:</p><table><tr><td><a href="../../constructors/stats/story_stats.html">StoryStats</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>peer</b></td><td style="text-align:center"><a href="../../types/input_peer.html">InputPeer</a></td><td>Anything entity-like will work if the library can find its <code>Input</code> version (e.g., usernames, <code>Peer</code>, <code>User</code> or <code>Channel</code> objects, etc.).</td></tr><tr><td><b>id</b></td><td style="text-align:center"><a href="../../index.html#int">int</a></td><td></td></tr><tr><td><b>dark</b></td><td style="text-align:center"><a href="../../index.html#true">flag</a></td><td>This argument defaults to <code>None</code> and can be omitted.</td></tr></table><h1>Known RPC errors</h1><p>This request can't cause any RPC error as far as we know.</p><h1 id="examples">Example</h1><pre><strong>from</strong> telethon.sync <strong>import</strong> TelegramClient
|
||||
<strong>from</strong> telethon <strong>import</strong> functions, types
|
||||
|
||||
<strong>with</strong> TelegramClient(name, api_id, api_hash) <strong>as</strong> client:
|
||||
result = client(functions.stats.GetStoryStatsRequest(
|
||||
peer=<em>'username'</em>,
|
||||
id=42,
|
||||
dark=<strong>True</strong>
|
||||
))
|
||||
print(result.stringify())</pre><textarea id="c" class="invisible"></textarea><script>function cp(t){var c=document.getElementById("c");c.value=t;c.select();try{document.execCommand("copy")}catch(e){}}</script></div><script>prependPath = "../../";</script><script src="../../js/search.js"></script></body></html>
|
||||
17
methods/stats/index.html
Normal file
17
methods/stats/index.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Methods/Stats</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link id="style" href="../../css/docs.dark.css" rel="stylesheet">
|
||||
<script>
|
||||
document.getElementById("style").href = "../../css/docs."
|
||||
+ (localStorage.getItem("theme") || "light")
|
||||
+ ".css";
|
||||
</script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito|Source+Code+Pro"
|
||||
rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="main_div"><ul class="horizontal"><li><a href="../../index.html">API</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="../index.html">Methods</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="index.html">Stats</a></li></ul><h1>Methods/Stats</h1><p>Click <a href="botindex.html">here</a> to view the requests that you can use as a bot.</p><h1>Available items</h1><table><tr><td><a href="get_broadcast_stats.html">GetBroadcastStatsRequest</a></td><td><a href="get_megagroup_stats.html">GetMegagroupStatsRequest</a></td></tr><tr><td><a href="get_message_public_forwards.html">GetMessagePublicForwardsRequest</a></td><td><a href="get_message_stats.html">GetMessageStatsRequest</a></td></tr><tr><td><a href="get_story_public_forwards.html">GetStoryPublicForwardsRequest</a></td><td><a href="get_story_stats.html">GetStoryStatsRequest</a></td></tr><tr><td><a href="load_async_graph.html">LoadAsyncGraphRequest</a></td></tr></table></div></body></html>
|
||||
26
methods/stats/load_async_graph.html
Normal file
26
methods/stats/load_async_graph.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>LoadAsyncGraphRequest</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link id="style" href="../../css/docs.dark.css" rel="stylesheet">
|
||||
<script>
|
||||
document.getElementById("style").href = "../../css/docs."
|
||||
+ (localStorage.getItem("theme") || "light")
|
||||
+ ".css";
|
||||
</script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito|Source+Code+Pro"
|
||||
rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="main_div"><ul class="horizontal"><li><a href="../../index.html">API</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="../index.html">Methods</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="index.html">Stats</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="load_async_graph.html">LoadAsyncGraphRequest</a></li></ul><h1>LoadAsyncGraphRequest</h1><p><strong>Only users</strong> can use this request. <a href="#examples">See code examples.</a></p><pre>---functions---
|
||||
stats.loadAsyncGraph#621d5fa0 flags:# token:<a href="../../index.html#string">string</a> x:flags.0?<a href="../../index.html#long">long</a> = <a href="../../types/stats_graph.html">StatsGraph</a></pre><button onclick="cp('from telethon.tl.functions.stats import LoadAsyncGraphRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/stats_graph.html">StatsGraph</a></td></tr></table><p>This type can be an instance of either:</p><table><tr><td><a href="../../constructors/stats_graph.html">StatsGraph</a></td><td><a href="../../constructors/stats_graph_async.html">StatsGraphAsync</a></td></tr><tr><td><a href="../../constructors/stats_graph_error.html">StatsGraphError</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>token</b></td><td style="text-align:center"><a href="../../index.html#string">string</a></td><td></td></tr><tr><td><b>x</b></td><td style="text-align:center"><a href="../../index.html#long">long</a></td><td>This argument defaults to <code>None</code> and can be omitted.</td></tr></table><h1>Known RPC errors</h1><p>This request can cause 2 known errors:</p><table><tr><td><code>GraphInvalidReloadError</code></td><td>Invalid graph token provided, please reload the stats and provide the updated token.</td></tr><tr><td><code>GraphOutdatedReloadError</code></td><td>Data can't be used for the channel statistics, graphs outdated.</td></tr></table><p>You can import these from <code>telethon.errors</code>.</p><h1 id="examples">Example</h1><pre><strong>from</strong> telethon.sync <strong>import</strong> TelegramClient
|
||||
<strong>from</strong> telethon <strong>import</strong> functions, types
|
||||
|
||||
<strong>with</strong> TelegramClient(name, api_id, api_hash) <strong>as</strong> client:
|
||||
result = client(functions.stats.LoadAsyncGraphRequest(
|
||||
token=<em>'some string here'</em>,
|
||||
x=-12398745604826
|
||||
))
|
||||
print(result.stringify())</pre><textarea id="c" class="invisible"></textarea><script>function cp(t){var c=document.getElementById("c");c.value=t;c.select();try{document.execCommand("copy")}catch(e){}}</script></div><script>prependPath = "../../";</script><script src="../../js/search.js"></script></body></html>
|
||||
Reference in New Issue
Block a user