Deep links: Support start parameter for tg://resolve links (#1624)

This commit is contained in:
Alexander Zinchuk 2022-01-05 17:46:01 +01:00
parent f156be13ce
commit 9119a1afdd

View File

@ -29,7 +29,7 @@ export const processDeepLink = (url: string) => {
switch (method) { switch (method) {
case 'resolve': { case 'resolve': {
const { const {
domain, post, comment, voicechat, livestream, domain, post, comment, voicechat, livestream, start,
} = params; } = params;
if (domain !== 'telegrampassport') { if (domain !== 'telegrampassport') {
@ -43,6 +43,7 @@ export const processDeepLink = (url: string) => {
username: domain, username: domain,
messageId: Number(post), messageId: Number(post),
commentId: Number(comment), commentId: Number(comment),
startParam: start,
}); });
} }
} }