mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Generate simple examples for the docs
This commit is contained in:
@@ -59,8 +59,8 @@ users.getUsers#0d91a548 id:Vector<InputUser> = Vector<User></pre>
|
||||
<p>This is <b>not</b> Python code. It's the "TL definition". It's
|
||||
an easy-to-read line that gives a quick overview on the parameters
|
||||
and its result. You don't need to worry about this. See
|
||||
<a href="http://telethon.readthedocs.io/en/latest/extra/developing/understanding-the-type-language.html">here</a>
|
||||
for more details on it.</p>
|
||||
<a href="https://telethon.readthedocs.io/en/latest/extra/developing/understanding-the-type-language.html">Understanding
|
||||
the Type Language</a> for more details on it.</p>
|
||||
|
||||
<h3>Index</h3>
|
||||
<ul>
|
||||
@@ -82,7 +82,7 @@ users.getUsers#0d91a548 id:Vector<InputUser> = Vector<User></pre>
|
||||
|
||||
<h3 id="methods">Methods</h3>
|
||||
<p>Currently there are <b>{method_count} methods</b> available for the layer
|
||||
{layer}. The complete list can be seen <a href="methods/index.html">here</a>.
|
||||
{layer}. <a href="methods/index.html">See the complete method list</a>.
|
||||
<br /><br />
|
||||
Methods, also known as <i>requests</i>, are used to interact with the
|
||||
Telegram API itself and are invoked through <code>client(Request(...))</code>.
|
||||
@@ -92,8 +92,8 @@ users.getUsers#0d91a548 id:Vector<InputUser> = Vector<User></pre>
|
||||
some dialogs, users, etc.</p>
|
||||
|
||||
<h3 id="types">Types</h3>
|
||||
<p>Currently there are <b>{type_count} types</b>. You can see the full
|
||||
list <a href="types/index.html">here</a>.</p>
|
||||
<p>Currently there are <b>{type_count} types</b>.
|
||||
<a href="types/index.html">See the complete list of types</a>.</p>
|
||||
|
||||
<p>The Telegram types are the <i>abstract</i> results that you receive
|
||||
after invoking a request. They are "abstract" because they can have
|
||||
@@ -106,8 +106,8 @@ users.getUsers#0d91a548 id:Vector<InputUser> = Vector<User></pre>
|
||||
an instance of it by using one of its, possibly multiple, constructors.</p>
|
||||
|
||||
<h3 id="constructors">Constructors</h3>
|
||||
<p>Currently there are <b>{constructor_count} constructors</b>. You can see
|
||||
the full list <a href="constructors/index.html">here</a>.</p>
|
||||
<p>Currently there are <b>{constructor_count} constructors</b>.
|
||||
<a href="constructors/index.html">See the list of all constructors</a>.</p>
|
||||
|
||||
<p>Constructors are the way you can create instances of the abstract types
|
||||
described above, and also the instances which are actually returned from
|
||||
@@ -170,8 +170,13 @@ users.getUsers#0d91a548 id:Vector<InputUser> = Vector<User></pre>
|
||||
</ul>
|
||||
|
||||
<h3 id="example">Full example</h3>
|
||||
<p>Documentation for this is now
|
||||
<a href="http://telethon.readthedocs.io/en/latest/extra/advanced-usage/accessing-the-full-api.html">here</a>.
|
||||
<p>All methods shown here have dummy examples on how to write them,
|
||||
so you don't get confused with their TL definition. However, this may
|
||||
not always run. They are just there to show the right syntax.</p>
|
||||
|
||||
<p>You should check out
|
||||
<a href="http://telethon.readthedocs.io/en/latest/extra/advanced-usage/accessing-the-full-api.html">how
|
||||
to access the full API</a> in ReadTheDocs.
|
||||
</p>
|
||||
</div>
|
||||
<script src="js/search.js"></script>
|
||||
|
Reference in New Issue
Block a user