Documentation
¶
Overview ¶
Package reactionpicker is the one-row chooser that `+` opens over the cursored message.
A row rather than a palette command. Reacting is a thing you do TO a message, and the message is already under the cursor — routing it through `:` would mean naming the message a second time, in a surface that has no idea which one you meant.
A fixed set rather than the account's own. Telegram serves a global list and lets a chat narrow it, so the honest set for a chat is two requests away, and a chooser that has to load is a chooser you press and then wait at. These twelve are Telegram's own defaults, in its own order; a chat that has narrowed its set refuses the ones it does not allow, and the refusal says so.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Reactions = []string{"👍", "👎", "❤", "🔥", "🎉", "🤩", "😁", "🤔", "😢", "🙏", "👏", "🤯"}
Reactions is the set offered, in Telegram's own order of popularity.
Twelve, because the row has to fit a narrow thread and because a chooser long enough to need scrolling has stopped being quicker than typing.
Functions ¶
Types ¶
type ChosenMsg ¶
ChosenMsg is a reaction the user picked. Emoji is empty when they chose the one they had already left, which Telegram models as removing it.