diff --git a/data/web/corefork.telegram.org/api/payments.html b/data/web/corefork.telegram.org/api/payments.html index b0577b9859..c521dfe9be 100644 --- a/data/web/corefork.telegram.org/api/payments.html +++ b/data/web/corefork.telegram.org/api/payments.html @@ -216,6 +216,10 @@ The bot must respond using mess payments.sendStarsForm#02bb731d flags:# form_id:long invoice:InputInvoice = payments.PaymentResult;
A payments.paymentFormStars will be returned if the payment should be made using Telegram Stars, invoking payments.sendStarsForm instead of payments.sendPaymentForm at step 4 ».
+Calling payments.sendStarsForm twice with the same form_id
will not repeat the transaction.
Note that the returned form is only valid for 10 minutes, after which a call to payments.sendStarsForm will return a 400
FORM_EXPIRED
error.
+When receiving this error, simply re-generate the form as specified in step 2.2 » and re-call payments.sendStarsForm.
A 400
BALANCE_TOO_LOW
error will be emitted by payments.sendStarsForm if the current Telegram Stars balance is not enough to complete the transaction: when receiving this error, the client should invite the user to topup their Telegram Stars balance », before re-invoking payments.sendStarsForm.
inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials;
diff --git a/data/web/corefork.telegram.org/method/messages.getOutboxReadDate.html b/data/web/corefork.telegram.org/method/messages.getOutboxReadDate.html
index 0fdd38ad6d..5abcacb792 100644
--- a/data/web/corefork.telegram.org/method/messages.getOutboxReadDate.html
+++ b/data/web/corefork.telegram.org/method/messages.getOutboxReadDate.html
@@ -103,6 +103,11 @@ To set userFull.read_dates_private
400
+MESSAGE_NOT_READ_YET
+The specified message wasn't read yet.
+
+
+400
MESSAGE_TOO_OLD
The message is too old, the requested information is not available.
diff --git a/data/web/corefork.telegram.org/method/payments.sendStarsForm.html b/data/web/corefork.telegram.org/method/payments.sendStarsForm.html
index 0145c7f0a4..240b8ea1c8 100644
--- a/data/web/corefork.telegram.org/method/payments.sendStarsForm.html
+++ b/data/web/corefork.telegram.org/method/payments.sendStarsForm.html
@@ -100,6 +100,16 @@
400
+BALANCE_TOO_LOW
+The transaction cannot be completed because the current Telegram Stars balance is too low.
+
+
+400
+FORM_EXPIRED
+The form was generated more than 10 minutes ago and has expired, please re-generate it using payments.getPaymentForm and pass the new form_id
.
+
+
+400
PEER_ID_INVALID
The provided peer id is invalid.
@@ -107,7 +117,9 @@
Related pages
Telegram Stars
-Telegram Stars are an in-app currency that allows the user to pay for digital goods and services offered by Telegram bots or Telegram channels.
+Telegram Stars are an in-app currency that allows the user to pay for digital goods and services offered by Telegram bots or Telegram channels.
+payments.getPaymentForm
+Get a payment form