mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-09-06 00:42:02 +00:00
Update documentation
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>CheckChatlistInviteRequest</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">Chatlists</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="check_chatlist_invite.html">CheckChatlistInviteRequest</a></li></ul><h1>CheckChatlistInviteRequest</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---
|
||||
chatlists.checkChatlistInvite#41c10fff slug:<a href="../../index.html#string">string</a> = <a href="../../types/chatlists/chatlist_invite.html">chatlists.ChatlistInvite</a></pre><button onclick="cp('from telethon.tl.functions.chatlists import CheckChatlistInviteRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/chatlists/chatlist_invite.html">chatlists.ChatlistInvite</a></td></tr></table><p>This type can be an instance of either:</p><table><tr><td><a href="../../constructors/chatlists/chatlist_invite.html">ChatlistInvite</a></td><td><a href="../../constructors/chatlists/chatlist_invite_already.html">ChatlistInviteAlready</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>slug</b></td><td style="text-align:center"><a href="../../index.html#string">string</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.chatlists.CheckChatlistInviteRequest(
|
||||
slug=<em>'some string here'</em>
|
||||
))
|
||||
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>
|
||||
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>DeleteExportedInviteRequest</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">Chatlists</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="delete_exported_invite.html">DeleteExportedInviteRequest</a></li></ul><h1>DeleteExportedInviteRequest</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---
|
||||
chatlists.deleteExportedInvite#719c5c5e chatlist:<a href="../../types/input_chatlist.html">InputChatlist</a> slug:<a href="../../index.html#string">string</a> = <a href="../../index.html#bool">Bool</a></pre><button onclick="cp('from telethon.tl.functions.chatlists import DeleteExportedInviteRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../index.html#bool">Bool</a></td></tr></table><p>This type has no instances available.</p><table></table><h3>Parameters</h3><table><tr><td><b>chatlist</b></td><td style="text-align:center"><a href="../../types/input_chatlist.html">InputChatlist</a></td><td></td></tr><tr><td><b>slug</b></td><td style="text-align:center"><a href="../../index.html#string">string</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.chatlists.DeleteExportedInviteRequest(
|
||||
chatlist=types.InputChatlistDialogFilter(
|
||||
filter_id=42
|
||||
),
|
||||
slug=<em>'some string here'</em>
|
||||
))
|
||||
print(result)</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>
|
||||
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>EditExportedInviteRequest</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">Chatlists</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="edit_exported_invite.html">EditExportedInviteRequest</a></li></ul><h1>EditExportedInviteRequest</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---
|
||||
chatlists.editExportedInvite#653db63d flags:# chatlist:<a href="../../types/input_chatlist.html">InputChatlist</a> slug:<a href="../../index.html#string">string</a> title:flags.1?<a href="../../index.html#string">string</a> peers:flags.2?<a href="../../index.html#vector">Vector</a><<a href="../../types/input_peer.html">InputPeer</a>> = <a href="../../types/exported_chatlist_invite.html">ExportedChatlistInvite</a></pre><button onclick="cp('from telethon.tl.functions.chatlists import EditExportedInviteRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/exported_chatlist_invite.html">ExportedChatlistInvite</a></td></tr></table><p>This type can only be an instance of:</p><table><tr><td><a href="../../constructors/exported_chatlist_invite.html">ExportedChatlistInvite</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>chatlist</b></td><td style="text-align:center"><a href="../../types/input_chatlist.html">InputChatlist</a></td><td></td></tr><tr><td><b>slug</b></td><td style="text-align:center"><a href="../../index.html#string">string</a></td><td></td></tr><tr><td><b>title</b></td><td style="text-align:center"><a href="../../index.html#string">string</a></td><td>This argument defaults to <code>None</code> and can be omitted.</td></tr><tr><td><b>peers</b></td><td style="text-align:center"><a href="../../types/input_peer.html">InputPeer</a></td><td>This argument defaults to <code>None</code> and can be omitted. Otherwise, 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.). a <span class="tooltip" title="Any iterable that supports len() will work too">list</span> must be supplied.</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.chatlists.EditExportedInviteRequest(
|
||||
chatlist=types.InputChatlistDialogFilter(
|
||||
filter_id=42
|
||||
),
|
||||
slug=<em>'some string here'</em>,
|
||||
title=<em>'My awesome title'</em>,
|
||||
peers=[<em>'username'</em>]
|
||||
))
|
||||
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>
|
||||
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>ExportChatlistInviteRequest</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">Chatlists</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="export_chatlist_invite.html">ExportChatlistInviteRequest</a></li></ul><h1>ExportChatlistInviteRequest</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---
|
||||
chatlists.exportChatlistInvite#8472478e chatlist:<a href="../../types/input_chatlist.html">InputChatlist</a> title:<a href="../../index.html#string">string</a> peers:<a href="../../index.html#vector">Vector</a><<a href="../../types/input_peer.html">InputPeer</a>> = <a href="../../types/chatlists/exported_chatlist_invite.html">chatlists.ExportedChatlistInvite</a></pre><button onclick="cp('from telethon.tl.functions.chatlists import ExportChatlistInviteRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/chatlists/exported_chatlist_invite.html">chatlists.ExportedChatlistInvite</a></td></tr></table><p>This type can only be an instance of:</p><table><tr><td><a href="../../constructors/chatlists/exported_chatlist_invite.html">ExportedChatlistInvite</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>chatlist</b></td><td style="text-align:center"><a href="../../types/input_chatlist.html">InputChatlist</a></td><td></td></tr><tr><td><b>title</b></td><td style="text-align:center"><a href="../../index.html#string">string</a></td><td></td></tr><tr><td><b>peers</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.). A <span class="tooltip" title="Any iterable that supports len() will work too">list</span> must be supplied.</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.chatlists.ExportChatlistInviteRequest(
|
||||
chatlist=types.InputChatlistDialogFilter(
|
||||
filter_id=42
|
||||
),
|
||||
title=<em>'My awesome title'</em>,
|
||||
peers=[<em>'username'</em>]
|
||||
))
|
||||
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>
|
||||
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>GetChatlistUpdatesRequest</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">Chatlists</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="get_chatlist_updates.html">GetChatlistUpdatesRequest</a></li></ul><h1>GetChatlistUpdatesRequest</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---
|
||||
chatlists.getChatlistUpdates#89419521 chatlist:<a href="../../types/input_chatlist.html">InputChatlist</a> = <a href="../../types/chatlists/chatlist_updates.html">chatlists.ChatlistUpdates</a></pre><button onclick="cp('from telethon.tl.functions.chatlists import GetChatlistUpdatesRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/chatlists/chatlist_updates.html">chatlists.ChatlistUpdates</a></td></tr></table><p>This type can only be an instance of:</p><table><tr><td><a href="../../constructors/chatlists/chatlist_updates.html">ChatlistUpdates</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>chatlist</b></td><td style="text-align:center"><a href="../../types/input_chatlist.html">InputChatlist</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.chatlists.GetChatlistUpdatesRequest(
|
||||
chatlist=types.InputChatlistDialogFilter(
|
||||
filter_id=42
|
||||
)
|
||||
))
|
||||
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>
|
||||
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>GetExportedInvitesRequest</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">Chatlists</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="get_exported_invites.html">GetExportedInvitesRequest</a></li></ul><h1>GetExportedInvitesRequest</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---
|
||||
chatlists.getExportedInvites#ce03da83 chatlist:<a href="../../types/input_chatlist.html">InputChatlist</a> = <a href="../../types/chatlists/exported_invites.html">chatlists.ExportedInvites</a></pre><button onclick="cp('from telethon.tl.functions.chatlists import GetExportedInvitesRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/chatlists/exported_invites.html">chatlists.ExportedInvites</a></td></tr></table><p>This type can only be an instance of:</p><table><tr><td><a href="../../constructors/chatlists/exported_invites.html">ExportedInvites</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>chatlist</b></td><td style="text-align:center"><a href="../../types/input_chatlist.html">InputChatlist</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.chatlists.GetExportedInvitesRequest(
|
||||
chatlist=types.InputChatlistDialogFilter(
|
||||
filter_id=42
|
||||
)
|
||||
))
|
||||
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>
|
||||
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>GetLeaveChatlistSuggestionsRequest</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">Chatlists</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="get_leave_chatlist_suggestions.html">GetLeaveChatlistSuggestionsRequest</a></li></ul><h1>GetLeaveChatlistSuggestionsRequest</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---
|
||||
chatlists.getLeaveChatlistSuggestions#fdbcd714 chatlist:<a href="../../types/input_chatlist.html">InputChatlist</a> = <a href="../../index.html#vector">Vector</a><<a href="../../types/peer.html">Peer</a>></pre><button onclick="cp('from telethon.tl.functions.chatlists import GetLeaveChatlistSuggestionsRequest');">Copy import to the clipboard</button><h3>Returns</h3><p>A list of the following type is returned.</p><table><tr><td><a href="../../types/peer.html">Peer</a></td></tr></table><p>This type can be an instance of either:</p><table><tr><td><a href="../../constructors/peer_channel.html">PeerChannel</a></td><td><a href="../../constructors/peer_chat.html">PeerChat</a></td></tr><tr><td><a href="../../constructors/peer_user.html">PeerUser</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>chatlist</b></td><td style="text-align:center"><a href="../../types/input_chatlist.html">InputChatlist</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.chatlists.GetLeaveChatlistSuggestionsRequest(
|
||||
chatlist=types.InputChatlistDialogFilter(
|
||||
filter_id=42
|
||||
)
|
||||
))
|
||||
<strong>for</strong> x <strong>in</strong> result:
|
||||
print(x)</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>
|
||||
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>HideChatlistUpdatesRequest</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">Chatlists</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="hide_chatlist_updates.html">HideChatlistUpdatesRequest</a></li></ul><h1>HideChatlistUpdatesRequest</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---
|
||||
chatlists.hideChatlistUpdates#66e486fb chatlist:<a href="../../types/input_chatlist.html">InputChatlist</a> = <a href="../../index.html#bool">Bool</a></pre><button onclick="cp('from telethon.tl.functions.chatlists import HideChatlistUpdatesRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../index.html#bool">Bool</a></td></tr></table><p>This type has no instances available.</p><table></table><h3>Parameters</h3><table><tr><td><b>chatlist</b></td><td style="text-align:center"><a href="../../types/input_chatlist.html">InputChatlist</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.chatlists.HideChatlistUpdatesRequest(
|
||||
chatlist=types.InputChatlistDialogFilter(
|
||||
filter_id=42
|
||||
)
|
||||
))
|
||||
print(result)</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>
|
||||
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Methods/Chatlists</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">Chatlists</a></li></ul><h1>Methods/Chatlists</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="check_chatlist_invite.html">CheckChatlistInviteRequest</a></td><td><a href="delete_exported_invite.html">DeleteExportedInviteRequest</a></td></tr><tr><td><a href="edit_exported_invite.html">EditExportedInviteRequest</a></td><td><a href="export_chatlist_invite.html">ExportChatlistInviteRequest</a></td></tr><tr><td><a href="get_chatlist_updates.html">GetChatlistUpdatesRequest</a></td><td><a href="get_exported_invites.html">GetExportedInvitesRequest</a></td></tr><tr><td><a href="get_leave_chatlist_suggestions.html">GetLeaveChatlistSuggestionsRequest</a></td><td><a href="hide_chatlist_updates.html">HideChatlistUpdatesRequest</a></td></tr><tr><td><a href="join_chatlist_invite.html">JoinChatlistInviteRequest</a></td><td><a href="join_chatlist_updates.html">JoinChatlistUpdatesRequest</a></td></tr><tr><td><a href="leave_chatlist.html">LeaveChatlistRequest</a></td></tr></table></div></body></html>
|
||||
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>JoinChatlistInviteRequest</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">Chatlists</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="join_chatlist_invite.html">JoinChatlistInviteRequest</a></li></ul><h1>JoinChatlistInviteRequest</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---
|
||||
chatlists.joinChatlistInvite#a6b1e39a slug:<a href="../../index.html#string">string</a> peers:<a href="../../index.html#vector">Vector</a><<a href="../../types/input_peer.html">InputPeer</a>> = <a href="../../types/updates.html">Updates</a></pre><button onclick="cp('from telethon.tl.functions.chatlists import JoinChatlistInviteRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/updates.html">Updates</a></td></tr></table><p>This type can be an instance of either:</p><table><tr><td><a href="../../constructors/update_short.html">UpdateShort</a></td><td><a href="../../constructors/update_short_chat_message.html">UpdateShortChatMessage</a></td></tr><tr><td><a href="../../constructors/update_short_message.html">UpdateShortMessage</a></td><td><a href="../../constructors/update_short_sent_message.html">UpdateShortSentMessage</a></td></tr><tr><td><a href="../../constructors/updates.html">Updates</a></td><td><a href="../../constructors/updates_combined.html">UpdatesCombined</a></td></tr><tr><td><a href="../../constructors/updates_too_long.html">UpdatesTooLong</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>slug</b></td><td style="text-align:center"><a href="../../index.html#string">string</a></td><td></td></tr><tr><td><b>peers</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.). A <span class="tooltip" title="Any iterable that supports len() will work too">list</span> must be supplied.</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.chatlists.JoinChatlistInviteRequest(
|
||||
slug=<em>'some string here'</em>,
|
||||
peers=[<em>'username'</em>]
|
||||
))
|
||||
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>
|
||||
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>JoinChatlistUpdatesRequest</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">Chatlists</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="join_chatlist_updates.html">JoinChatlistUpdatesRequest</a></li></ul><h1>JoinChatlistUpdatesRequest</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---
|
||||
chatlists.joinChatlistUpdates#e089f8f5 chatlist:<a href="../../types/input_chatlist.html">InputChatlist</a> peers:<a href="../../index.html#vector">Vector</a><<a href="../../types/input_peer.html">InputPeer</a>> = <a href="../../types/updates.html">Updates</a></pre><button onclick="cp('from telethon.tl.functions.chatlists import JoinChatlistUpdatesRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/updates.html">Updates</a></td></tr></table><p>This type can be an instance of either:</p><table><tr><td><a href="../../constructors/update_short.html">UpdateShort</a></td><td><a href="../../constructors/update_short_chat_message.html">UpdateShortChatMessage</a></td></tr><tr><td><a href="../../constructors/update_short_message.html">UpdateShortMessage</a></td><td><a href="../../constructors/update_short_sent_message.html">UpdateShortSentMessage</a></td></tr><tr><td><a href="../../constructors/updates.html">Updates</a></td><td><a href="../../constructors/updates_combined.html">UpdatesCombined</a></td></tr><tr><td><a href="../../constructors/updates_too_long.html">UpdatesTooLong</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>chatlist</b></td><td style="text-align:center"><a href="../../types/input_chatlist.html">InputChatlist</a></td><td></td></tr><tr><td><b>peers</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.). A <span class="tooltip" title="Any iterable that supports len() will work too">list</span> must be supplied.</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.chatlists.JoinChatlistUpdatesRequest(
|
||||
chatlist=types.InputChatlistDialogFilter(
|
||||
filter_id=42
|
||||
),
|
||||
peers=[<em>'username'</em>]
|
||||
))
|
||||
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>
|
||||
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>LeaveChatlistRequest</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">Chatlists</a></li><img src="../../img/arrow.svg" alt="/" /><li><a href="leave_chatlist.html">LeaveChatlistRequest</a></li></ul><h1>LeaveChatlistRequest</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---
|
||||
chatlists.leaveChatlist#74fae13a chatlist:<a href="../../types/input_chatlist.html">InputChatlist</a> peers:<a href="../../index.html#vector">Vector</a><<a href="../../types/input_peer.html">InputPeer</a>> = <a href="../../types/updates.html">Updates</a></pre><button onclick="cp('from telethon.tl.functions.chatlists import LeaveChatlistRequest');">Copy import to the clipboard</button><h3>Returns</h3><table><tr><td><a href="../../types/updates.html">Updates</a></td></tr></table><p>This type can be an instance of either:</p><table><tr><td><a href="../../constructors/update_short.html">UpdateShort</a></td><td><a href="../../constructors/update_short_chat_message.html">UpdateShortChatMessage</a></td></tr><tr><td><a href="../../constructors/update_short_message.html">UpdateShortMessage</a></td><td><a href="../../constructors/update_short_sent_message.html">UpdateShortSentMessage</a></td></tr><tr><td><a href="../../constructors/updates.html">Updates</a></td><td><a href="../../constructors/updates_combined.html">UpdatesCombined</a></td></tr><tr><td><a href="../../constructors/updates_too_long.html">UpdatesTooLong</a></td></tr></table><h3>Parameters</h3><table><tr><td><b>chatlist</b></td><td style="text-align:center"><a href="../../types/input_chatlist.html">InputChatlist</a></td><td></td></tr><tr><td><b>peers</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.). A <span class="tooltip" title="Any iterable that supports len() will work too">list</span> must be supplied.</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.chatlists.LeaveChatlistRequest(
|
||||
chatlist=types.InputChatlistDialogFilter(
|
||||
filter_id=42
|
||||
),
|
||||
peers=[<em>'username'</em>]
|
||||
))
|
||||
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