1
0
mirror of https://github.com/danog/tl-schema.git synced 2024-11-26 11:54:54 +01:00
tl-schema/l071
Viktor Oreshkin 5588813c91 Upd layer 071
2017-09-03 21:38:02 +03:00
..
README.md Upd layer 071 2017-09-03 21:38:02 +03:00
schema.json Upd layer 071 2017-09-03 21:38:02 +03:00
schema.tl Upd layer 071 2017-09-03 21:38:02 +03:00

Version info

App Version/Hash Date
TDesktop b0cc61c621c1643c1180921a83540c59be9642a3 01.08.17
Android/iOS 4.3 03.09.17

Blog post

Notes

First published by Unigram

This update introduces:

  • Better mention system
  • Getting info about contacts saved on sever
  • Favorite stickers and supergroup sticker sets

Better mention system

dialog and updates.channelDifferenceTooLong now have unread_mentions_count. It's number of messages having mention in them which were not marked as read explicitly.

Speaking of that, messages with mentions now should be marked as read explicitly using channels.readMessageContents in channels. Typically it's called when mention is showed to user, and updateChannelReadMessagesContents is issued.

New MessageFilters were added: inputMessagesFilterMyMentions to find messages where user was mentioned.

messages.getUnreadMentions can be used to let user cycle through unread mentions.

Saved Contacts

You can now get number of contacts stored on server side (but not yet registered in Telegram) -- contacts.contacts has saved_count.

You can remove those contacts by calling contacts.resetSaved, which would cause updateContactsReset to be sent. It probably should force applications to re-sync contacts, so server saves only ones stored at user's address book currently.

Probably because of that contact.importContacts now lacks replace.

Also, contacts.contacts hash is now int and not string. However, that hash still can't be passed to server. A slightly modified 20261 hash is used.

Favorite stickers and group sets

User can now have up to config->stickers_faved_limit stickers "pinned" without saving their sticker pack. The system is very similar to recents, but these should not be modified without user's will.

Sticker is added to favorites with messages.faveSticker. Then updateFavedStickers is issued, and applications should use messages.getFavedStickers to get new list.

Also, "channels" (supergroups only) now have stickerset. It can be set if can_set_stickers is true. (100+ members, admin should have the permissions)

channels.setStickers is used for that. Setting it adds channelAdminLogEventActionChangeStickerSet to "admin log" aka "recent actions". There seems to be no way to know about that change for user, except re-fetching channel.