From 6f0c96d3f869a60767a37e33bee82bbfe29a8449 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 13 Apr 2023 18:32:32 +0000 Subject: [PATCH] Update content of files --- data/web/corefork.telegram.org.html | 2 + data/web/corefork.telegram.org/api.html | 2 + .../corefork.telegram.org/api/antispam.html | 37 ++++++++++++++----- .../web/corefork.telegram.org/api/config.html | 3 ++ .../web/corefork.telegram.org/api/layers.html | 2 +- .../corefork.telegram.org/bots/features.html | 4 +- ...nnelAdminLogEventActionToggleAntiSpam.html | 5 ++- .../constructor/channelFull.html | 2 + .../channels.reportAntiSpamFalsePositive | 2 + .../method/channels.toggleAntiSpam | 9 ++++- data/web/corefork.telegram.org/mtproto.html | 2 +- .../type/messages.BotApp | 4 +- 12 files changed, 56 insertions(+), 18 deletions(-) diff --git a/data/web/corefork.telegram.org.html b/data/web/corefork.telegram.org.html index 23ef85899a..d67bcea4bf 100644 --- a/data/web/corefork.telegram.org.html +++ b/data/web/corefork.telegram.org.html @@ -203,6 +203,8 @@ This allows the server to filter messages based on a text query, and even on the

How to transcribe voice messages.

Message translation

Telegram allows translating chat messages, and Telegram Premium users may even enable real-time chat translation.

+

Native antispam system

+

Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.

Web events

When interacting with HTML5 games and the websites of payment gateways, Telegram apps should expose the following JS APIs.

diff --git a/data/web/corefork.telegram.org/api.html b/data/web/corefork.telegram.org/api.html index 23ef85899a..d67bcea4bf 100644 --- a/data/web/corefork.telegram.org/api.html +++ b/data/web/corefork.telegram.org/api.html @@ -203,6 +203,8 @@ This allows the server to filter messages based on a text query, and even on the

How to transcribe voice messages.

Message translation

Telegram allows translating chat messages, and Telegram Premium users may even enable real-time chat translation.

+

Native antispam system

+

Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.

Web events

When interacting with HTML5 games and the websites of payment gateways, Telegram apps should expose the following JS APIs.

diff --git a/data/web/corefork.telegram.org/api/antispam.html b/data/web/corefork.telegram.org/api/antispam.html index 3c174d560a..3ceb8875dc 100644 --- a/data/web/corefork.telegram.org/api/antispam.html +++ b/data/web/corefork.telegram.org/api/antispam.html @@ -2,12 +2,12 @@ - Page not found + Native antispam system - - + + - + @@ -39,10 +39,26 @@
- -

Page not found

+ +

Native antispam system

-
The page has not been saved
+
+ +

Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.

+

Schema:

+
channelFull#f2355507 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true flags2:# can_delete_channel:flags2.0?true antispam:flags2.1?true participants_hidden:flags2.2?true translations_disabled:flags2.3?true id:long about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer available_reactions:flags.30?ChatReactions = ChatFull;
+
+channelAdminLogEventActionToggleAntiSpam#64f36dfc new_value:Bool = ChannelAdminLogEventAction;
+channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction;
+
+---functions---
+
+channels.toggleAntiSpam#68f3e4eb channel:InputChannel enabled:Bool = Updates;
+channels.reportAntiSpamFalsePositive#a850a693 channel:InputChannel msg_id:int = Bool;
+

Native antispam functionality can be enabled for supergroups using channels.toggleAntiSpam, if the supergroup has at least telegram_antispam_group_size_min members, as specified by the client configuration parameters.

+

Once enabled, Telegram's native antispam system will start monitoring the supergrup, automatically deleting spam messages using the official Telegram Antispam bot, with ID equal to telegram_antispam_user_id, as specified by the client configuration parameters.
+Note that this bot does not have to be added as participant or admin to the supergroup for the native antispam system to work, just invoking channels.toggleAntiSpam is enough; however, it should still be locally shown as a group admin when displaying the admin list to the user (clients should simply append it to the admin list without invoking channels.editAdmin).

+

False positive message deletions can be reported by admins by navigating through the admin log, and invoking channels.reportAntiSpamFalsePositive for mistaken channelAdminLogEventActionDeleteMessage events made by the telegram_antispam_user_id bot.

@@ -109,8 +125,11 @@
- - + + + diff --git a/data/web/corefork.telegram.org/api/config.html b/data/web/corefork.telegram.org/api/config.html index f58581f84a..30cd03beb3 100644 --- a/data/web/corefork.telegram.org/api/config.html +++ b/data/web/corefork.telegram.org/api/config.html @@ -315,7 +315,10 @@ While help.getConfig returns MTProto-specif

forum_upgrade_participants_min

topics_pinned_limit

telegram_antispam_user_id

+

The ID of the official native antispam bot, that will automatically delete spam messages if enabled as specified in the native antispam documentation ».
+When fetching the admin list of a supergroup using channels.getParticipants, if native antispam functionality in the specified supergroup, the bot should be manually added to the admin list displayed to the user.

telegram_antispam_group_size_min

+

Minimum number of members required to enable native antispam functionality.

fragment_prefixes

hidden_members_group_size_min

ios_disable_parallel_channel_reset

diff --git a/data/web/corefork.telegram.org/api/layers.html b/data/web/corefork.telegram.org/api/layers.html index d6accb6e78..6501f9a3f6 100644 --- a/data/web/corefork.telegram.org/api/layers.html +++ b/data/web/corefork.telegram.org/api/layers.html @@ -76,7 +76,7 @@
  • Added inputBotAppShortName - Used to fetch information about a bot web app by its short name
  • Added botAppNotModified - Bot app info hasn't changed.
  • Added botApp - Contains information about a bot web app.
  • -
  • Added messages.botApp - Contains information about a bot web app
  • +
  • Added messages.botApp - Contains information about a bot web app
  • Added appWebViewResultUrl - Contains the link that must be used to open a bot web app.
  • Added inlineBotWebView - Specifies a bot web app button, shown on top of the inline query results list.
  • Added readParticipantDate - Contains info about when a certain participant has read a message
  • diff --git a/data/web/corefork.telegram.org/bots/features.html b/data/web/corefork.telegram.org/bots/features.html index 49e88b95cf..98e3bdf77d 100644 --- a/data/web/corefork.telegram.org/bots/features.html +++ b/data/web/corefork.telegram.org/bots/features.html @@ -334,7 +334,7 @@ Note that these methods will only work on packs created by the bot that
    @@ -529,7 +529,7 @@ You can only transfer a bot to users who have interacted with it at least once.<
  • /setabouttext – change the bot's about info, a shorter text up to 120 characters. Users will see this text on the bot's profile page. When they share your bot with someone, this text is sent together with the link.
  • /setuserpic – change the bot's profile picture.
  • /setcommands – change the list of commands supported by your bot. Users will see these commands as suggestions when they type / in the chat with your bot. See commands for more info.
  • -
  • /setdomain – link a website domain to your bot. See the login widget section.
  • +
  • /setdomain – link a website domain to your bot. See the login widget section.
  • /deletebot – delete your bot and free its username. Cannot be undone.
  • Or you can use the /mybots command, tap on your bot and use the modern inline interface to edit it.

    diff --git a/data/web/corefork.telegram.org/constructor/channelAdminLogEventActionToggleAntiSpam.html b/data/web/corefork.telegram.org/constructor/channelAdminLogEventActionToggleAntiSpam.html index ba210a096e..540631f0e1 100644 --- a/data/web/corefork.telegram.org/constructor/channelAdminLogEventActionToggleAntiSpam.html +++ b/data/web/corefork.telegram.org/constructor/channelAdminLogEventActionToggleAntiSpam.html @@ -74,7 +74,10 @@

    Type

    -

    ChannelAdminLogEventAction

    +

    ChannelAdminLogEventAction

    +

    Related pages

    +

    Native antispam system

    +

    Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.

    diff --git a/data/web/corefork.telegram.org/constructor/channelFull.html b/data/web/corefork.telegram.org/constructor/channelFull.html index fa671c425c..dff149a540 100644 --- a/data/web/corefork.telegram.org/constructor/channelFull.html +++ b/data/web/corefork.telegram.org/constructor/channelFull.html @@ -322,6 +322,8 @@

    Telegram offers detailed channel statistics for channels and supergroups.

    Discussion groups

    Groups can be associated to a channel as a discussion group, to allow users to discuss about posts.

    +

    Native antispam system

    +

    Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.

    Translation

    Telegram allows translating chat messages: Telegram Premium users may even enable real-time chat translation.

    Admin, banned, default rights

    diff --git a/data/web/corefork.telegram.org/method/channels.reportAntiSpamFalsePositive b/data/web/corefork.telegram.org/method/channels.reportAntiSpamFalsePositive index 4cc0eac24e..b096b44b36 100644 --- a/data/web/corefork.telegram.org/method/channels.reportAntiSpamFalsePositive +++ b/data/web/corefork.telegram.org/method/channels.reportAntiSpamFalsePositive @@ -85,6 +85,8 @@

    Bool

    Bots can use this method

    Related pages

    +

    Native antispam system

    +

    Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.

    Admin log

    Both supergroups and channels offer a so-called admin log, a log of recent relevant supergroup and channel actions, like the modification of group/channel settings or information on behalf of an admin, user kicks and bans, and more.

    diff --git a/data/web/corefork.telegram.org/method/channels.toggleAntiSpam b/data/web/corefork.telegram.org/method/channels.toggleAntiSpam index d0081fc340..242018afee 100644 --- a/data/web/corefork.telegram.org/method/channels.toggleAntiSpam +++ b/data/web/corefork.telegram.org/method/channels.toggleAntiSpam @@ -77,7 +77,7 @@ channel InputChannel -Supergroup ID +Supergroup ID. The specified supergroup must have at least telegram_antispam_group_size_min members to enable antispam functionality, as specified by the client configuration parameters. enabled @@ -88,7 +88,12 @@

    Result

    Updates

    -

    Bots can use this method

    +

    Bots can use this method

    +

    Related pages

    +

    Client configuration

    +

    The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.

    +

    Native antispam system

    +

    Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.

    diff --git a/data/web/corefork.telegram.org/mtproto.html b/data/web/corefork.telegram.org/mtproto.html index 63515d5cf3..457109e5ba 100644 --- a/data/web/corefork.telegram.org/mtproto.html +++ b/data/web/corefork.telegram.org/mtproto.html @@ -164,7 +164,7 @@ Multiple transport protocols are defined:

    Recap

    To recap, using the ISO/OSI stack as comparison: