From 9d2727071ad0c470a9722ff825193a234b668f6d Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 18 Nov 2021 02:44:16 +0000 Subject: [PATCH] Update content of files --- data/core.telegram.org/api/top-rating.html | 145 ------- .../method/channels.toggleSignatures | 187 --------- .../method/messages.getPinnedDialogs | 169 -------- .../constructor/updatePtsChanged.html | 135 ------ .../method/messages.deleteHistory | 206 --------- .../method/messages.getPeerDialogs | 181 -------- ...{export-and-more.html => coronavirus.html} | 90 ++-- .../blog/verifiable-apps-and-more.html | 392 ------------------ data/telegram.org/verify.html | 151 +++++++ 9 files changed, 204 insertions(+), 1452 deletions(-) delete mode 100644 data/core.telegram.org/api/top-rating.html delete mode 100644 data/core.telegram.org/method/channels.toggleSignatures delete mode 100644 data/core.telegram.org/method/messages.getPinnedDialogs delete mode 100644 data/corefork.telegram.org/constructor/updatePtsChanged.html delete mode 100644 data/corefork.telegram.org/method/messages.deleteHistory delete mode 100644 data/corefork.telegram.org/method/messages.getPeerDialogs rename data/telegram.org/blog/{export-and-more.html => coronavirus.html} (56%) delete mode 100644 data/telegram.org/blog/verifiable-apps-and-more.html create mode 100644 data/telegram.org/verify.html diff --git a/data/core.telegram.org/api/top-rating.html b/data/core.telegram.org/api/top-rating.html deleted file mode 100644 index 2d1a8a5e30..0000000000 --- a/data/core.telegram.org/api/top-rating.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - Top peer rating - - - - - - - - - - - - - -
- -
-
-
- -

Top peer rating

- -

If enabled, the rating of top peers indicates the relevance of a frequently used peer in a certain category (frequently messaged users, frequently used bots, inline bots, frequently visited channels and so on).

-

Schema:

-
topPeer#edcdc05b peer:Peer rating:double = TopPeer;
-
-topPeerCategoryBotsPM#ab661b5b = TopPeerCategory;
-topPeerCategoryBotsInline#148677e2 = TopPeerCategory;
-topPeerCategoryCorrespondents#637b7ed = TopPeerCategory;
-topPeerCategoryGroups#bd17a14a = TopPeerCategory;
-topPeerCategoryChannels#161d9628 = TopPeerCategory;
-topPeerCategoryPhoneCalls#1e76a78c = TopPeerCategory;
-topPeerCategoryForwardUsers#a8406ca9 = TopPeerCategory;
-topPeerCategoryForwardChats#fbeec0f0 = TopPeerCategory;
-
-topPeerCategoryPeers#fb834291 category:TopPeerCategory count:int peers:Vector<TopPeer> = TopPeerCategoryPeers;
-
-contacts.topPeersNotModified#de266ef5 = contacts.TopPeers;
-contacts.topPeers#70b772a8 categories:Vector<TopPeerCategoryPeers> chats:Vector<Chat> users:Vector<User> = contacts.TopPeers;
-contacts.topPeersDisabled#b52c939d = contacts.TopPeers;
-
----functions---
-
-contacts.getTopPeers#973478b6 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true forward_users:flags.4?true forward_chats:flags.5?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:long = contacts.TopPeers;
-

The rate delta is computed by taking the time delta between the last time the user used a certain peer and the last time the rating for that peer was received and dividing it by the exponential decay from config.

-

Example: -Client-side, every time a user opens chat 123456789 the following operation must be done on the cached top peer info.

-
    -
  • dateOpened indicates when was the peer used
  • -
  • normalizeRate is an arbitrary time in the recent past. -When ratings are received from the server using contacts.getTopPeers and the schema described above, it is the time when they were received.
  • -
-
topPeer.rating += e^((dateOpened - normalizeRate) / config.rating_e_decay)
- -
- -
-
- -
- - - - - - diff --git a/data/core.telegram.org/method/channels.toggleSignatures b/data/core.telegram.org/method/channels.toggleSignatures deleted file mode 100644 index d54f1d544c..0000000000 --- a/data/core.telegram.org/method/channels.toggleSignatures +++ /dev/null @@ -1,187 +0,0 @@ - - - - - channels.toggleSignatures - - - - - - - - - - - - - -
- -
-
-
- -

channels.toggleSignatures

- -

Enable/disable message signatures in channels

-

- -
-
updatesTooLong#e317af7e = Updates;
-updateShortMessage#313bc7f8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
-updateShortChatMessage#4d6deea5 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:long chat_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
-updateShort#78d4dec1 update:Update date:int = Updates;
-updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
-updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
-updateShortSentMessage#9015e101 flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
----functions---
-channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates;

-

Parameters

- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
channelInputChannelChannel
enabledBoolValue
-

Result

-

Updates

-

Possible errors

- - - - - - - - - - - - - - - - - - - - - - - - - -
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400CHAT_ID_INVALIDThe provided chat id is invalid.
- -
- -
-
- -
- - - - - - diff --git a/data/core.telegram.org/method/messages.getPinnedDialogs b/data/core.telegram.org/method/messages.getPinnedDialogs deleted file mode 100644 index 420b224eaf..0000000000 --- a/data/core.telegram.org/method/messages.getPinnedDialogs +++ /dev/null @@ -1,169 +0,0 @@ - - - - - messages.getPinnedDialogs - - - - - - - - - - - - - -
- -
-
-
- -

messages.getPinnedDialogs

- -

Get pinned dialogs

-

- -
-
messages.peerDialogs#3371c354 dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> state:updates.State = messages.PeerDialogs;
----functions---
-messages.getPinnedDialogs#d6b94df2 folder_id:int = messages.PeerDialogs;

-

Parameters

- - - - - - - - - - - - - - - -
NameTypeDescription
folder_idintPeer folder ID, for more info click here
-

Result

-

messages.PeerDialogs

-

Possible errors

- - - - - - - - - - - - - - - -
CodeTypeDescription
400FOLDER_ID_INVALIDInvalid folder ID.
-

Related pages

-

Folders

-

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

- -
- -
-
- -
- - - - - - diff --git a/data/corefork.telegram.org/constructor/updatePtsChanged.html b/data/corefork.telegram.org/constructor/updatePtsChanged.html deleted file mode 100644 index 4be6443c9d..0000000000 --- a/data/corefork.telegram.org/constructor/updatePtsChanged.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - updatePtsChanged - - - - - - - - - - - - - -
- -
-
-
- -

updatePtsChanged

- -

Common message box sequence PTS has changed, state has to be refetched using updates.getState

-

- -
-
updatePtsChanged#3354678f = Update;

-

Parameters

-

This constructor does not require any parameters.

-

Type

-

Update

-

Related pages

-

Working with Updates

-

How to subscribe to updates and handle them properly.

- -
- -
-
- -
- - - - - - diff --git a/data/corefork.telegram.org/method/messages.deleteHistory b/data/corefork.telegram.org/method/messages.deleteHistory deleted file mode 100644 index 6909114f0d..0000000000 --- a/data/corefork.telegram.org/method/messages.deleteHistory +++ /dev/null @@ -1,206 +0,0 @@ - - - - - messages.deleteHistory - - - - - - - - - - - - - -
- -
-
-
- -

messages.deleteHistory

- -

Deletes communication history.

-

- -
-
messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;
----functions---
-messages.deleteHistory#1c015b09 flags:# just_clear:flags.0?true revoke:flags.1?true peer:InputPeer max_id:int = messages.AffectedHistory;

-

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
flags#Flags, see TL conditional fields
just_clearflags.0?trueJust clear history for the current user, without actually removing messages for every chat user
revokeflags.1?trueWhether to delete the message history for all chat participants
peerInputPeerUser or chat, communication history of which will be deleted
max_idintMaximum ID of message to delete
-

Result

-

messages.AffectedHistory

-

Possible errors

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CodeTypeDescription
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400CHAT_ID_INVALIDThe provided chat id is invalid.
400MESSAGE_ID_INVALIDThe provided message id is invalid.
400MSG_ID_INVALIDInvalid message ID provided.
400PEER_ID_INVALIDThe provided peer id is invalid.
- -
- -
-
- -
- - - - - - diff --git a/data/corefork.telegram.org/method/messages.getPeerDialogs b/data/corefork.telegram.org/method/messages.getPeerDialogs deleted file mode 100644 index dbdcc1211d..0000000000 --- a/data/corefork.telegram.org/method/messages.getPeerDialogs +++ /dev/null @@ -1,181 +0,0 @@ - - - - - messages.getPeerDialogs - - - - - - - - - - - - - -
- -
-
-
- -

messages.getPeerDialogs

- -

Get dialog info of specified peers

-

- -
-
messages.peerDialogs#3371c354 dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> state:updates.State = messages.PeerDialogs;
----functions---
-messages.getPeerDialogs#e470bcfd peers:Vector<InputDialogPeer> = messages.PeerDialogs;

-

Parameters

- - - - - - - - - - - - - - - -
NameTypeDescription
peersVector<InputDialogPeer>Peers
-

Result

-

messages.PeerDialogs

-

Possible errors

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400MSG_ID_INVALIDInvalid message ID provided.
400PEER_ID_INVALIDThe provided peer id is invalid.
- -
- -
-
- -
- - - - - - diff --git a/data/telegram.org/blog/export-and-more.html b/data/telegram.org/blog/coronavirus.html similarity index 56% rename from data/telegram.org/blog/export-and-more.html rename to data/telegram.org/blog/coronavirus.html index 12ac71f5dd..aa30643a4c 100644 --- a/data/telegram.org/blog/export-and-more.html +++ b/data/telegram.org/blog/coronavirus.html @@ -2,18 +2,18 @@ - Chat Export Tool, Better Notifications and More + Coronavirus News and Verified Channels - - + + - - + + - + @@ -74,55 +74,71 @@
-

Chat Export Tool, Better Notifications and More

+

Coronavirus News and Verified Channels

- +
- + Verified Channels and Coronavirus Info
-

Today’s Telegram update brings you an easy way to save conversations on your disk. In just a few taps, you can export some (or all) of your chats, including photos and other media they contain. As a result you’ll get all your data accessible offline in JSON-format or in beautifully formatted HTML.

-
- -

Data Export Results

-
- -

To use this feature, make sure you have the latest version of Telegram Desktop installed on your computer, then click Settings > Export Telegram data. This tool will be particularly useful for users who have millions of messages and can’t easily access the oldest parts of their messaging history.

-
-
diff --git a/data/telegram.org/blog/verifiable-apps-and-more.html b/data/telegram.org/blog/verifiable-apps-and-more.html deleted file mode 100644 index 979696a4d3..0000000000 --- a/data/telegram.org/blog/verifiable-apps-and-more.html +++ /dev/null @@ -1,392 +0,0 @@ - - - - - Verifiable Builds, New Theme Editor, Send When Online and So Much More - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
- -
-
-

Verifiable Builds, New Theme Editor, Send When Online and So Much More

- -
- -
- -
- Dude in a jacket inspecting the hologram of a mechanical dog to verify it's built according to the blueprints provided. -
- - - -

Telegram is the only mass market messaging app with open source apps. Since 2013, this not only allows independent researchers to verify the integrity of end-to-end encryption, but also helps look for vulnerabilities (or backdoors 😈).

-

As of this update, Telegram becomes the first messaging app to allow you to independently verify that the code on GitHub is the exact same code that was used to build the app you downloaded from App Store or Google Play. Security researchers are welcome to check out our Guide to Reproducible Builds for iOS and Android.

-

But we know security isn't the only reason you love Telegram – so we've also added dozens of new features and improvements. Gather round, this blog post is a long one.

-

Theme Editor 2.0

-

Using the new theme editor in Chat Settings (or Appearance Settings on iOS), you can quickly tweak the style of elements in Telegram chats and add awesome gradients to both your messages and your background. Switch between tabs (Main Color, Background, My Messages) to see how deep this rabbit hole goes:

-
- -
- -

Once you're done editing, you can quickly share the result of your work with friends so that they can continue tuning your theme.

-

By the way, this update includes dozens of new cool patterns you can apply to your background. Our favorites are the Math and Parisian motifs, but there's also one we made especially for New Year's Eve.

-
- Screenshot demonstrating some of the new background patterns. -
- -

There are new patterns with cats as well. And space. And cats in space. No time to explain, go check them all out.

- - -

New Predefined Colors

-

Not in a creative mood? Not a problem – we've added a boatload of new predefined color schemes for Telegram's default themes. The theme of your dreams may be just a few taps away, try the new options under Classic, Night, Day, etc.

-
- -
- -

Send When Online

-

Some things are best served fresh, like sushi and today's hot memes. For messages that have to be delivered at the perfect moment, we've added the option to schedule messages to be sent when your recipient comes online.

-

Now you can slide your message in with the morning post – or time a funky duck sticker for the exact moment a meeting gets boring.

-
- -
- -

Note that this option is only available if you are allowed to see your recipient's online status. You can still sneak out of bed without anyone noticing.

-

Improved Venue Sharing

-

Location sharing has been updated to make finding venues easier. You can now tap a place directly on the map to select it, rather than scrolling through a list of all the power converter purveyors in Tosche Station.

-
- -
- - -

View Search Results as a List

-

The Search function allows you to easily jump between messages containing a keyword – or sent by a particular person, or even from a certain day. Tapping the bottom bar will now switch to list view in case you want to see all the results on one page.

-
- -
- -

On iOS, you can also select several messages without leaving Search Mode. (Before you ask, this feature was already available on Android.)

-
- Screenshot showing several messages selected in a chat on iOS – without leaving the Search Mode. -
- - -

Podcast and Audiobook Support

-

You've always been able to share files of up to 1,5 GB, but podcasts and audiobooks now get special treatment. Telegram apps will remember your last position when resuming playback of audio files longer than 20 minutes.

-

If you'd like to make podcasts get to the point a little faster, try the new 2x button (which you already know from voice messages). We've eliminated voice chipmunking in 96.8% of cases.

-
- Screenshot showing the location of the 2x playback button for long audio files. -
- -

On iOS, you can skip forward and back with high-precision scrubbing: just hold on the progress bar and slide your finger down, then left or right.

-

New On Android

-

Switch to Night Mode Faster

-

Telegram has shielded your eyes in dark places with Night Mode since 2017. The power of the sun and moon are now even easier to control, with the Night Mode Switch at the top of the menu. Tap the moon icon and watch the sun rise and fall at your whim.

-
- -
- -

Maps have also joined the dark side in Night Mode, so you don't accidentally burn yourself while browsing locations late in the evening. Ve do as the count vills. (•,..,•)

-
- A shared location on a map in Night Mode on Telegram for Android. -
- -

On iOS, dark maps turn on and off with the system dark mode. Speaking of which, we recently added the option to sync your Telegram theme with system dark mode on iOS 13.

- - -

Sleek New Animations

-

We've peppered the interface with little ripple animations when you press on things to help you get more joy out of buttons. Snappy new animations await when jumping between messages in a chat, opening global search or pulling out the archive folder. To get a closer look at a user's profile picture, drag down on their profile page.

-
- -
- -

Select Parts of Messages

-

Following in the footsteps of the iOS app, Android now also lets you select a portion of the message text to copy or share, instead of only the full text. Sometimes you only want a slice, rather than the whole pie.

-
- -
- -

Multi-sharing from Other Apps

-

Sharing is caring, so we've made it easier than ever to share content from other apps with your friends. You can now tap and hold to select multiple recipients – and even add a comment in case your savage subtweet needs some context.

-
- -
- -

Mark Archive as Read

-

A cluttered chat list reflects a cluttered mind. Clear up those extra unread message counters in your archive by tapping and holding the archive folder and marking them all read. (Not to be confused with marking it red, that's a job for themes.)

-
- Mark all messages as read in the Archive on Android. -
- -

And Other Android Goodies

-

You can сhoose video quality in a more intuitive way when sending videos.

-
- New button for selecting video quality when sending a video. -
- -

Sending contacts now uses a simple, card-style interface that won't take up your whole screen (unless you pull up to expand it).

-
- New contact sharing screen. -
- -

When you're done listening to a voice message with your phone up to your ear, Telegram automatically records a reply - but now you can disable that by turning off Raise to Speak in your Chat Settings.

-

We found 31 other shiny bugs to fix and improvements to make on Android, just in time for your Telegram advent calendar. See if you can find them all.

-

New on iOS

-

Text Size, All the Way

-

You've been able to adjust the size of message text on Telegram from the beginning, but now you can scale the font size throughout the app. I'm not sure if Grandma reads this blog regularly, so you may have to tell her yourself.

-
- Telegram for iOS with enlarged font. -
- -

Choose Your Browser

-

External browsers are now supported for opening links – you can select your preferred app in Settings > Data and Storage > Other.

-
- Browser settings screen. -
- -

Share Sheet Settings

-

Your most popular Telegram chats were recently added to the iOS Share Sheet. In case you'd like to control what can (or can't 😉) appear there, you can use the new toggles under Settings > Data and Storage > Other > Share Sheet.

-
- Share Sheet settings screen. -
- -

Switch Accounts Faster

-

Superman has had a hard time finding phone booths lately, so we added a way to swiftly switch accounts right from your home screen on iOS 13. Simply hold down on the app icon any time you need to change costumes.

-
- App menu on an iOS 13 home screen, featuring a 'Switch Account' button -
- -

Remember that you can use Telegram with multiple accounts, switching between up to 3 phone numbers without logging out.

-

Storage Usage At a Glance

-

The Storage Usage page has been redesigned to more quickly find the settings you're looking for. It also shows your device's storage status, and how much space all those other pesky apps are using compared to Telegram. Bigger, after all, is not always better.

-

You did know that with Telegram there's no need to store every silly meme people ever sent you on your precious device, right?

-
- Storage Usage settings screen. -
- -

Cache-Clearing Shortcuts

-

Selecting multiple messages in a group or channel gives you the option to clear the chat's cache. Like we said, no need to store what you don't need – but also no need to delete actual messages. Just keep things in the cloud, like the cool kids.

-
- Clear Cache button in a channel. -
- -

Check out Settings > Data and Storage > Storage Usage for more options.

-

Member Lists: The Shorter Scrolls

-

In case you're looking to leave some large groups and start fresh in the new decade, long member lists will collapse, so you can get to the 'Leave Group' button without scrolling.

-

By the way, swiping on a group or channel from the chat list and selecting 'Delete' is still the shortest way out, but now there is more than one way to leave the New Year's party early.

-
- Group members screen with a collapsed member list. -
- -

And that's all for today. Happy New Year!

-

2020 is going to be fun. Enjoy winter while we get back to our little warm R&D bunker deep deep underground.

-

- -

December 31, 2019,
The Telegram Team

-

- -
- -
- - -
- - -
-
-
- - - - - - - diff --git a/data/telegram.org/verify.html b/data/telegram.org/verify.html new file mode 100644 index 0000000000..bbad161620 --- /dev/null +++ b/data/telegram.org/verify.html @@ -0,0 +1,151 @@ + + + + + Page Verification Guidelines + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+

Page Verification Guidelines

+ +
+ Verification +
+ +

The Telegram team generally verifies active official channels, bots or public groups that have verified accounts on at least two of these services:

+
    +
  1. TikTok
  2. +
  3. Instagram
  4. +
  5. Facebook
  6. +
  7. YouTube
  8. +
  9. Twitter
  10. +
  11. VK
  12. +
  13. Snapchat
  14. +
+

Please add a link to your Telegram channel to your profiles on these services — so that we can confirm that they indeed belong to you. Once this is done, please contact our @VerifyBot for verification.

+

What if I don't have a verified account on two of these services?

+

If you have an undisputed page on Wikipedia, that satisfies Wikipedia's Notability Guidelines – and that page lists a link to your channel, bot or public group on Telegram – it can be counted as one of the missing verified accounts.

+

In the case of organizations, a link to the Telegram channel from the official website of the organization may also be taken into account. The bot will offer to submit additional data and comments after checking the social media links.

+
+

If you're using a Wikipedia or Official Website link instead of one of the social media accounts, please make sure that they include a link to the channel, group or bot you want to verify on Telegram.

+
+

Can my user account be verified?

+

Sorry, Telegram doesn’t verify user accounts at the moment. Verification is only available for big and active official channels, groups and bots.

+

Do I need verification?

+

Note that verification doesn't give any additional abilities in Telegram - it is simply one of the ways to demonstrate that your channel, group or bot is official. A link to Telegram on your official site or other official accounts elsewhere can achieve a similar result.

+

How do I change the name or short link after verification?

+

A verified channel, group or bot can't change its name or short link (t.me/…). If changes are necessary, you can remove verification status first. Contact @VerifyBot and send /unverify. You can then reobtain verification using the bot.

+
+ +
+
+ +
+
+
+ + + + + + +