From 6ee697385f586c75246132943136c23232b4ea97 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 22 Oct 2023 19:21:38 +0000 Subject: [PATCH] Update content of files --- data/web/corefork.telegram.org.html | 12 +++++++++++- data/web/corefork.telegram.org/api.html | 12 +++++++++++- data/web/corefork.telegram.org/api/action-bar.html | 1 + data/web/corefork.telegram.org/api/contacts.html | 12 +++++++++--- 4 files changed, 32 insertions(+), 5 deletions(-) diff --git a/data/web/corefork.telegram.org.html b/data/web/corefork.telegram.org.html index f216c6b5e0..a8d25105f2 100644 --- a/data/web/corefork.telegram.org.html +++ b/data/web/corefork.telegram.org.html @@ -140,6 +140,10 @@

Bots can offer users interactive HTML5 web apps to completely replace any website.

Attachment menu

Bots can install attachment menu entries, offering conveniently accessible, versatile web apps.

+

Stories

+

Telegram users and channels can easily post and view stories through the API.

+

Privacy settings

+

Telegram allows users to specify granular privacy settings, choosing which users can or can't interact with them in certain ways.

Search & filters

Telegram allows applying detailed message filters while looking for messages in chats. This allows the server to filter messages based on a text query, and even on their type, and this feature is often used by graphical clients to implement features like the chat gallery, chat profile pictures and more.

@@ -209,8 +213,14 @@ This allows the server to filter messages based on a text query, and even on the

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.

Collectible usernames

Telegram users can make it easy for others to contact them or find their public groups and channels via usernames: clients can also assign multiple collectible usernames to accounts, supergroups and channels they own.

+

Action bar

+

Sometimes, when interacting with Telegram users via private or secret chats, an action bar must be shown on top of the chat, offering convenient action buttons or notices regarding the user.

+

Contacts

+

Working with contacts in the API.

Web events

-

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

+

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

+

Takeout

+

Telegram's API allows users to export all of their information through the takeout API.

diff --git a/data/web/corefork.telegram.org/api.html b/data/web/corefork.telegram.org/api.html index f216c6b5e0..a8d25105f2 100644 --- a/data/web/corefork.telegram.org/api.html +++ b/data/web/corefork.telegram.org/api.html @@ -140,6 +140,10 @@

Bots can offer users interactive HTML5 web apps to completely replace any website.

Attachment menu

Bots can install attachment menu entries, offering conveniently accessible, versatile web apps.

+

Stories

+

Telegram users and channels can easily post and view stories through the API.

+

Privacy settings

+

Telegram allows users to specify granular privacy settings, choosing which users can or can't interact with them in certain ways.

Search & filters

Telegram allows applying detailed message filters while looking for messages in chats. This allows the server to filter messages based on a text query, and even on their type, and this feature is often used by graphical clients to implement features like the chat gallery, chat profile pictures and more.

@@ -209,8 +213,14 @@ This allows the server to filter messages based on a text query, and even on the

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.

Collectible usernames

Telegram users can make it easy for others to contact them or find their public groups and channels via usernames: clients can also assign multiple collectible usernames to accounts, supergroups and channels they own.

+

Action bar

+

Sometimes, when interacting with Telegram users via private or secret chats, an action bar must be shown on top of the chat, offering convenient action buttons or notices regarding the user.

+

Contacts

+

Working with contacts in the API.

Web events

-

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

+

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

+

Takeout

+

Telegram's API allows users to export all of their information through the takeout API.

diff --git a/data/web/corefork.telegram.org/api/action-bar.html b/data/web/corefork.telegram.org/api/action-bar.html index 4f43b3797c..b347c98fe0 100644 --- a/data/web/corefork.telegram.org/api/action-bar.html +++ b/data/web/corefork.telegram.org/api/action-bar.html @@ -110,6 +110,7 @@ Optionally, the peerSettings.need_ contacts.acceptContact#f831a20f id:InputUser = Updates;

This action bar, associated to a private or secret chat, offers the user a button to share their phone number with the other user using contacts.acceptContact.

Condition: the peerSettings.share_contact flag must be set.

+

This flag is set and the bar is activated only if the other user has added us as a contact using contacts.addContact, without using a phone number, and none of the add_contact, report_spam, block_contact flags are set.

Report irrelevant geolocation

inputReportReasonGeoIrrelevant#dbd4feed = ReportReason;
 
diff --git a/data/web/corefork.telegram.org/api/contacts.html b/data/web/corefork.telegram.org/api/contacts.html
index ce9176d598..07cd9d0831 100644
--- a/data/web/corefork.telegram.org/api/contacts.html
+++ b/data/web/corefork.telegram.org/api/contacts.html
@@ -97,10 +97,15 @@ Note that according to the user's privacy settings, n
 
 users.getFullUser#b60f5918 id:InputUser = users.UserFull;
 
-contacts.addContact#e8f463d0 flags:# add_phone_privacy_exception:flags.0?true id:InputUser first_name:string last_name:string phone:string = Updates;
-contacts.acceptContact#f831a20f id:InputUser = Updates;
+contacts.addContact#e8f463d0 flags:# add_phone_privacy_exception:flags.0?true id:InputUser first_name:string last_name:string phone:string = Updates;

Telegram users may also be added to the contact list (even if we do not have access to their phone number!) using contacts.addContact.

-

Set the add_phone_privacy_exception flag if we wish to allow the other user to see our phone number: this flag must be set if the need_contacts_exception flag of [peerSettings] is set (see the action bar documentation »).

+

Set the add_phone_privacy_exception flag if we wish to allow the other user to see our phone number: this flag must be set if the need_contacts_exception flag of [peerSettings] is set (see the action bar documentation for more info »).

+

Share our phone number

+
---functions---
+
+contacts.acceptContact#f831a20f id:InputUser = Updates;
+

This method is invoked if the user clicks on the add contact button in the add contact chat bar.

+

The bar is activated only if the other user has added us as a contact using contacts.addContact without using a phone number, and none of the add_contact, report_spam, block_contact bar flags are set, the share_contact flag are be set, indicating we can invoke contacts.acceptContact to share our phone number with the other user.

Fetching the contact list

Schema:

contact#145ade0b user_id:long mutual:Bool = Contact;
@@ -141,6 +146,7 @@ Note that according to the user's privacy settings, n
 ---functions---
 
 contacts.search#11f812d8 q:string limit:int = contacts.Found;
+

Use contacts.search to search within the contact list.

Deleting contacts

Schema:

---functions---