From ebfa8f08a1d900fa289be5d79382cd1358be1631 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Mon, 10 Mar 2025 18:17:55 +0400 Subject: [PATCH] Fix gift message flag --- .../Sources/TelegramEngine/Payments/BotPaymentForm.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/TelegramCore/Sources/TelegramEngine/Payments/BotPaymentForm.swift b/submodules/TelegramCore/Sources/TelegramEngine/Payments/BotPaymentForm.swift index b5c2e11a66..8817f48613 100644 --- a/submodules/TelegramCore/Sources/TelegramEngine/Payments/BotPaymentForm.swift +++ b/submodules/TelegramCore/Sources/TelegramEngine/Payments/BotPaymentForm.swift @@ -395,7 +395,7 @@ func _internal_parseInputInvoice(transaction: Transaction, source: BotPaymentInv var flags: Int32 = 0 var message: Api.TextWithEntities? if let text, !text.isEmpty { - flags |= (1 << 1) + flags |= (1 << 0) message = .textWithEntities(text: text, entities: entities.flatMap { apiEntitiesFromMessageTextEntities($0, associatedPeers: SimpleDictionary()) } ?? []) } return .inputInvoicePremiumGiftStars(flags: flags, userId: inputUser, months: option.months, message: message)