Forwarded from Programmer Humor
Forwarded from Plltxe.
#Telegram小考察
In the recent release of Telegram for Android 7.1 source, we can see a lot of new types, methods, and constructors added for the new features.
However, among those new stuff added for the released features, there are some new things added for features that we have yet to see. A bunch of Reaction related entities are added to API schema which outlines a comprehensive interface for message reaction support (c.f. similar features in Slack, Teams, Discord, etc.).
By looking at the method definitions we believe that the reaction mechanism could be emoji based — like other IMs — and potentially limited to a set of fixed emojis to reduce complexity (as seen in iMessages and FB Messengers).
Those entities are:
- Objects / Constructors
- MessageReactionsList(int flags, int count, MessageUserReaction[] reactions, User[] users, string next_offset)
- MessageReactions(int flag, boolean min, ReactionCount[] result)
- MessageUserReaction(int user_id, string reaction)
- ReactionCount(int flags, boolean chosen, string reaction, int count)
- Methods
- UpdateMessageReactions(Peer peer, int msg_id, MessageReactions reactions)
- GetMessageReactions(InputPeer peer, int[] id)
- GetMessageReactionsList(int flags, InputPeer peer, int id, String reaction, String offset, int limit)
- SendReaction(int flags, InputPeer peer, int msg_id, String reaction)
- Attributes
- MessageReactions Message.reactions
Source: https://github.com/DrKLO/Telegram/blob/master/TMessagesProj/src/main/java/org/telegram/tgnet/TLRPC.java
In the recent release of Telegram for Android 7.1 source, we can see a lot of new types, methods, and constructors added for the new features.
However, among those new stuff added for the released features, there are some new things added for features that we have yet to see. A bunch of Reaction related entities are added to API schema which outlines a comprehensive interface for message reaction support (c.f. similar features in Slack, Teams, Discord, etc.).
By looking at the method definitions we believe that the reaction mechanism could be emoji based — like other IMs — and potentially limited to a set of fixed emojis to reduce complexity (as seen in iMessages and FB Messengers).
Those entities are:
- Objects / Constructors
- MessageReactionsList(int flags, int count, MessageUserReaction[] reactions, User[] users, string next_offset)
- MessageReactions(int flag, boolean min, ReactionCount[] result)
- MessageUserReaction(int user_id, string reaction)
- ReactionCount(int flags, boolean chosen, string reaction, int count)
- Methods
- UpdateMessageReactions(Peer peer, int msg_id, MessageReactions reactions)
- GetMessageReactions(InputPeer peer, int[] id)
- GetMessageReactionsList(int flags, InputPeer peer, int id, String reaction, String offset, int limit)
- SendReaction(int flags, InputPeer peer, int msg_id, String reaction)
- Attributes
- MessageReactions Message.reactions
Source: https://github.com/DrKLO/Telegram/blob/master/TMessagesProj/src/main/java/org/telegram/tgnet/TLRPC.java
Forwarded from Plltxe.
#Telegram小考察
See also:
Design suggestion from Markus Vihtla and Liana Ivon regarding message reactions on iOS and Android.
iOS: https://t.me/designers/151
Android: https://t.me/designers/29
See also:
Design suggestion from Markus Vihtla and Liana Ivon regarding message reactions on iOS and Android.
iOS: https://t.me/designers/151
Android: https://t.me/designers/29
Telegram
Telegram Designers
Suggested by @vihtla: 'An idea how reactions (iOS version) could look like on Telegram. Detailed explanation can be found at: https://telegra.ph/Reactions-06-25'
Forwarded from 我是小猫,怎么了嘛。