Channel premium gifts

This commit is contained in:
Ilya Laktyushin
2023-09-29 13:23:14 +04:00
parent 30639d9a88
commit 4270261dd6
65 changed files with 5948 additions and 1225 deletions

View File

@@ -930,6 +930,9 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
let controller = PremiumIntroScreen(context: strongSelf.context, source: .gift(from: fromPeerId, to: toPeerId, duration: duration))
strongSelf.push(controller)
return true
case let .giftCode(slug, _, _, _):
strongSelf.openResolved(result: .premiumGiftCode(slug: slug), sourceMessageId: message.id)
return true
case let .suggestedProfilePhoto(image):
strongSelf.chatDisplayNode.dismissInput()
if let image = image {