From 47694e07113a12cb022714f34b0ba44ab4f22976 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Wed, 5 Jan 2022 17:45:47 +0100 Subject: [PATCH] Action Message: Support "joined by request" and custom actions (#1622) --- src/api/gramjs/apiBuilders/messages.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/api/gramjs/apiBuilders/messages.ts b/src/api/gramjs/apiBuilders/messages.ts index 0ccfa49ae..c2a94f662 100644 --- a/src/api/gramjs/apiBuilders/messages.ts +++ b/src/api/gramjs/apiBuilders/messages.ts @@ -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'; }