telegram api method · layer 229 · #8fb86b41

payments.sendStarGiftOffer

usable by users

definition

payments.sendStarGiftOffer#8fb86b41 flags:# peer:InputPeer slug:string price:StarsAmount duration:int random_id:long allow_paid_stars:flags.0?long = Updates;

parameters

nametypedescription
flags#Flags, see TL conditional fields
peerInputPeer
slugstring
priceStarsAmount
durationint
random_idlong
allow_paid_starsflags.0?long

returns

Updates

errors (11)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400INPUT_STARS_AMOUNT_INVALIDThe specified offer amount in stars is invalid, see here » for the allowed range.
400INPUT_STARS_NANOS_INVALIDThe specified offer amount in nanotons is invalid, see here » for the allowed range.
400INVOICE_INVALIDThe specified invoice is invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.
400RESELL_STARS_TOO_FEWThe offered price is too low.
400RESELL_STARS_TOO_MUCHThe offered price is too high.
400STARGIFT_OFFER_INVALIDThe specified offer amount is invalid.
400STARGIFT_OFFER_NOT_ALLOWEDYou can't send a purchase offer for this gift.
400STARGIFT_SLUG_INVALIDThe specified gift slug is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 220–229

idlayers
#8fb86b41220–229