mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
Various fixes
This commit is contained in:
parent
8585ec70cb
commit
4aefac47ac
@ -703,8 +703,6 @@ func _internal_sendBotPaymentForm(account: Account, formId: Int64, source: BotPa
|
||||
return .fail(.paymentFailed)
|
||||
} else if error.errorDescription == "INVOICE_ALREADY_PAID" {
|
||||
return .fail(.alreadyPaid)
|
||||
} else if error.errorDescription == "STARGIFT_USAGE_LIMITED" {
|
||||
return .fail(.starGiftOutOfStock)
|
||||
}
|
||||
return .fail(.generic)
|
||||
}
|
||||
|
@ -1313,6 +1313,8 @@ func _internal_sendStarsPaymentForm(account: Account, formId: Int64, source: Bot
|
||||
return .fail(.alreadyPaid)
|
||||
} else if error.errorDescription == "MEDIA_ALREADY_PAID" {
|
||||
return .fail(.alreadyPaid)
|
||||
} else if error.errorDescription == "STARGIFT_USAGE_LIMITED" {
|
||||
return .fail(.starGiftOutOfStock)
|
||||
}
|
||||
return .fail(.generic)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user