mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Auto-submit /start when paying for premium.
This commit is contained in:
@@ -598,7 +598,12 @@ void StartPremiumPayment(
|
||||
"premium_invoice_slug",
|
||||
QString());
|
||||
if (!username.isEmpty()) {
|
||||
UrlClickHandler::Open("https://t.me/" + username + "?start=" + ref);
|
||||
controller->showPeerByLink(Window::SessionNavigation::PeerByLinkInfo{
|
||||
.usernameOrId = username,
|
||||
.resolveType = Window::ResolveType::BotStart,
|
||||
.startToken = ref,
|
||||
.startAutoSubmit = true,
|
||||
});
|
||||
} else if (!slug.isEmpty()) {
|
||||
UrlClickHandler::Open("https://t.me/$" + slug);
|
||||
}
|
||||
|
Reference in New Issue
Block a user