Action Message: Support "joined by request" and custom actions (#1622)
This commit is contained in:
parent
a8b42111b0
commit
47694e0711
@ -744,6 +744,11 @@ function buildAction(
|
|||||||
} else if (action instanceof GramJs.MessageActionBotAllowed) {
|
} else if (action instanceof GramJs.MessageActionBotAllowed) {
|
||||||
text = 'Chat.Service.BotPermissionAllowed';
|
text = 'Chat.Service.BotPermissionAllowed';
|
||||||
translationValues.push(action.domain);
|
translationValues.push(action.domain);
|
||||||
|
} else if (action instanceof GramJs.MessageActionCustomAction) {
|
||||||
|
text = action.message;
|
||||||
|
} else if (action instanceof GramJs.MessageActionChatJoinedByRequest) {
|
||||||
|
text = 'ChatService.UserJoinedGroupByRequest';
|
||||||
|
translationValues.push('%action_origin%');
|
||||||
} else {
|
} else {
|
||||||
text = 'ChatList.UnsupportedMessage';
|
text = 'ChatList.UnsupportedMessage';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user