Add new API method "Configure Reactions" - allow bot : limit, pre-listed emoji (bulk add reactions)
New Bot's method Configure Reactions for message: Allows you to preset a list of emoji that are not counted as bot reactions - just shows buttons with 0(or empty) initial counter; And limit number of reactions per user.
Мethod arguments:
- message Id - required - in not bot own message need permission to manage messages
- pre-listed Emoji - default: null
- limit reactions per user - default: 0 - 0 means no limit - as usual
- limit only pre-listed - default: true if list is specified , false if no list
- allow non pre-listed reactions - default: true
all arguments are optional (except message Id), but required at least 1 of `limit reactions per user` or `pre listed Emoji`
Examples:
1) Asking members about like/dislike posted content: The method allow users select only 1 of like/dislike + any other reactions
{messageId: 123456789,
prelistedEmoji: ['👍','👎'],
limitReactionsPerUser: 1
limitOnlyPrelisted: true,
allowNonPrelistedReactions: true}
2) asking users to choose their new nickname color - need select 1 color from list
{messageId: 123456789,
prelistedEmoji: ['🟥','🟧','🟨','🟩','🟦','🟪','🟫','⬛','⬜'],
limitReactionsPerUser: 1
allowNonPrelistedReactions: false}
3) voting for a new color theme - need select 3 colors from list
{messageId: 123456789,
prelistedEmoji: ['🟥','🟨','🟩','🟦','🟪','⬛','⬜'],
limitReactionsPerUser: 3
allowNonPrelistedReactions: false}
Войдите в службу, чтобы оставить комментарий.
Комментарии
0 комментариев