Action Message: Support "joined by request" and custom actions (#1622)

This commit is contained in:
Alexander Zinchuk 2022-01-05 17:45:47 +01:00
parent a8b42111b0
commit 47694e0711

View File

@ -744,6 +744,11 @@ function buildAction(
} else if (action instanceof GramJs.MessageActionBotAllowed) {
text = 'Chat.Service.BotPermissionAllowed';
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 {
text = 'ChatList.UnsupportedMessage';
}