mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-01 09:06:24 +01:00
Update content of files
This commit is contained in:
parent
c7ab4a5b87
commit
6f941cbfa1
3 changed files with 31 additions and 33 deletions
|
@ -53,6 +53,8 @@ Technically, they are represented by <a href="/constructor/channel">channel</a>
|
|||
Technically, supergroups are actually channels: they are represented by <a href="/constructor/channel">channel</a> constructors, with the <code>megagroup</code> flag set to true. </p>
|
||||
<p>Channels can be created using the <a href="/method/channels.createChannel">channels.createChannel</a> method, by setting the <code>megagroup</code> flag.<br>
|
||||
Supergroups can also be assigned a <code>geo_point</code> to become <a href="https://telegram.org/blog/contacts-local-groups">geochats</a>. </p>
|
||||
<h4><a class="anchor" href="#forums" id="forums" name="forums"><i class="anchor-icon"></i></a>Forums</h4>
|
||||
<p>Supergroups can be converted into <a href="/api/forum">forums</a>, splitting conversion into distinct <a href="/api/forum#forum-topics">forum topics</a>, see the <a href="/api/forum">forum documentation for more info »</a>. </p>
|
||||
<h3><a class="anchor" href="#gigagroups" id="gigagroups" name="gigagroups"><i class="anchor-icon"></i></a>Gigagroups</h3>
|
||||
<p>Gigagroups are something between a channel and a supergroup.<br>
|
||||
An admin, <a href="/api/config#channel-suggestions">when prompted by the API using suggestions »</a>, can convert a megagroup into a gigagroup using <a href="/method/channels.convertToGigagroup">channels.convertToGigagroup</a> (one way only).<br>
|
||||
|
|
|
@ -53,7 +53,8 @@
|
|||
<a href='/method/channels.createChannel'>channels.createChannel</a>#91006707 flags:<a href='/type/%23'>#</a> broadcast:flags.0?<a href='/constructor/true'>true</a> megagroup:flags.1?<a href='/constructor/true'>true</a> for_import:flags.3?<a href='/constructor/true'>true</a> forum:flags.5?<a href='/constructor/true'>true</a> title:<a href='/type/string'>string</a> about:<a href='/type/string'>string</a> geo_point:flags.2?<a href='/type/InputGeoPoint'>InputGeoPoint</a> address:flags.2?<a href='/type/string'>string</a> ttl_period:flags.4?<a href='/type/int'>int</a> = <a href='/type/Updates'>Updates</a>;
|
||||
|
||||
<a href='/method/channels.toggleForum'>channels.toggleForum</a>#a4298b29 channel:<a href='/type/InputChannel'>InputChannel</a> enabled:<a href='/type/Bool'>Bool</a> = <a href='/type/Updates'>Updates</a>;</code></pre>
|
||||
<p>Forums may be created either by invoking <a href="/method/channels.createChannel">channels.createChannel</a> with the <code>forum</code> flag set, or by converting an existing <a href="/api/channel">supergroup</a> into a forum using <a href="/method/channels.toggleForum">channels.toggleForum</a> with <code>enabled=true</code>. </p>
|
||||
<p>Forums may be created either by invoking <a href="/method/channels.createChannel">channels.createChannel</a> with the <code>forum</code> flag set, or by converting an existing <a href="/api/channel">supergroup</a> into a forum using <a href="/method/channels.toggleForum">channels.toggleForum</a> with <code>enabled=true</code>.<br>
|
||||
If the group is a <a href="/api/channel#basic-groups">basic group</a>, it should be <a href="/api/channel#migration">upgraded to a supergroup</a> before converting it into a forum. </p>
|
||||
<p>Forums can also be converted back to <a href="/api/channel">supergroups</a> using <a href="/method/channels.toggleForum">channels.toggleForum</a> with <code>enabled=false</code>. </p>
|
||||
<p>Note that the <a href="/method/channels.toggleForum">channels.toggleForum</a> method can only be invoked by admins with owner rights.</p>
|
||||
<p>Forums have the <a href="/constructor/channel">channel</a>.<code>forum</code> flag set, and conversation happens in distinct <a href="#forum-topics">forum topics</a>.</p>
|
||||
|
@ -88,9 +89,9 @@
|
|||
To fetch information about one or more topics by their ID, use <a href="/method/channels.getForumTopicsByID">channels.getForumTopicsByID</a>. </p>
|
||||
<p>Every forum has a non-deletable "General" topic, with <code>id=1</code>; other topics will have other IDs, equal to the <a href="/method/messageActionTopicCreate">messageActionTopicCreate</a> service message that created the topic. </p>
|
||||
<p>To send messages to the "General" topic, just use <a href="/method/messages.sendMessage">messages.sendMessage</a> as usual, as if you were writing to a normal supergroup.<br>
|
||||
On the other hands, topics with <code>id != 1</code> are just the <a href="/api/threads">message thread</a> of the <a href="/method/messageActionTopicCreate">messageActionTopicCreate</a> service message that created that topic.<br>
|
||||
On the other hand, topics with <code>id != 1</code> are just the <a href="/api/threads">message thread</a> of the <a href="/method/messageActionTopicCreate">messageActionTopicCreate</a> service message that created that topic.<br>
|
||||
This means that topics should be treated similarly to <a href="/api/threads">message threads</a> by the client.<br>
|
||||
To send messages to these topics, pass the topic ID to the <code>reply_msg_id</code> parameter of <a href="/method/messages.sendMessage">messages.sendMessage</a>, sendMedia et cetera.<br>
|
||||
To send messages to these topics, pass the topic ID to the <code>reply_msg_id</code> parameter of <a href="/method/messages.sendMessage">messages.sendMessage</a>, <a href="/method/messages.sendMedia">messages.sendMedia</a> et cetera.<br>
|
||||
Replies to messages within a topic work as usual, however, since <a href="/api/threads">message threads</a> can't have nested message threads, topics (except for the "General" topic) also can't have message threads (so replies to messages within topics won't generate further message threads). </p>
|
||||
<p>Topics have a name (<code>title</code>) and an icon: the icon can be a <a href="/api/custom-emoji">custom emoji</a> specified by the <code>icon_emoji_id</code>, or a default chat icon if <code>icon_emoji_id</code> is not set, filled with the color specified in <code>icon_color</code>.<br>
|
||||
Topics can be temporarily <code>closed</code>, preventing further messages from being sent to the topic.<br>
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
<meta charset="utf-8">
|
||||
<title>forumTopic</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Parameters
|
||||
<meta property="description" content="Represents a forum topic.
|
||||
Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
|
@ -13,14 +14,11 @@ flags
|
|||
Flags, see TL conditional fields
|
||||
my
|
||||
flags.1?true
|
||||
|
||||
closed
|
||||
flags.2?true
|
||||
|
||||
pinned…">
|
||||
Whether…">
|
||||
<meta property="og:title" content="forumTopic">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Parameters
|
||||
<meta property="og:description" content="Represents a forum topic.
|
||||
Parameters
|
||||
Name
|
||||
Type
|
||||
Description
|
||||
|
@ -29,11 +27,7 @@ flags
|
|||
Flags, see TL conditional fields
|
||||
my
|
||||
flags.1?true
|
||||
|
||||
closed
|
||||
flags.2?true
|
||||
|
||||
pinned…">
|
||||
Whether…">
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -68,7 +62,8 @@ pinned…">
|
|||
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/forumTopic" >forumTopic</a></li></ul></div>
|
||||
<h1 id="dev_page_title">forumTopic</h1>
|
||||
|
||||
<div id="dev_page_content"><p><div class="clearfix">
|
||||
<div id="dev_page_content"><p>Represents a <a href="/api/forum#forum-topics">forum topic</a>.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 155 <b class="caret"></b></a>
|
||||
|
@ -99,17 +94,17 @@ pinned…">
|
|||
<tr>
|
||||
<td><strong>my</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
<td>Whether the topic was created by the current user</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>closed</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.2?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
<td>Whether the topic is closed (no messages can be sent to it)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>pinned</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.3?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
<td>Whether the topic is pinned</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>short</strong></td>
|
||||
|
@ -119,22 +114,22 @@ pinned…">
|
|||
<tr>
|
||||
<td><strong>hidden</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.6?<a href="/constructor/true">true</a></td>
|
||||
<td> </td>
|
||||
<td>Whether the topic is hidden (only valid for the "General" topic, <code>id=1</code>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
<td><a href="/api/forum#forum-topics">Topic ID</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>date</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
<td>Topic creation date</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>title</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td> </td>
|
||||
<td>Topic title</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>icon_color</strong></td>
|
||||
|
@ -149,47 +144,47 @@ pinned…">
|
|||
<tr>
|
||||
<td><strong>top_message</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
<td>ID of the last message that was sent to this topic</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>read_inbox_max_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
<td>Position up to which all incoming messages are read.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>read_outbox_max_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
<td>Position up to which all outgoing messages are read.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>unread_count</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
<td>Number of unread messages</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>unread_mentions_count</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
<td>Number of <a href="/api/mentions">unread mentions</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>unread_reactions_count</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/int">int</a></td>
|
||||
<td> </td>
|
||||
<td>Number of unread reactions to messages you sent</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>from_id</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/Peer">Peer</a></td>
|
||||
<td> </td>
|
||||
<td>ID of the peer that created the topic</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>notify_settings</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/PeerNotifySettings">PeerNotifySettings</a></td>
|
||||
<td> </td>
|
||||
<td>Notification settings</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>draft</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.4?<a href="/type/DraftMessage">DraftMessage</a></td>
|
||||
<td> </td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.1?<a href="/type/DraftMessage">DraftMessage</a></td>
|
||||
<td>Message <a href="/api/drafts">draft</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue