mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-11-29 03:33:09 +01:00
Update content of files
This commit is contained in:
parent
c9b899930c
commit
da5541a1d6
3 changed files with 22 additions and 1 deletions
|
@ -216,6 +216,10 @@ The bot must respond using <a href="/method/messages.setBotShippingResults">mess
|
|||
|
||||
<a href='/method/payments.sendStarsForm'>payments.sendStarsForm</a>#02bb731d flags:<a href='/type/%23'>#</a> form_id:<a href='/type/long'>long</a> invoice:<a href='/type/InputInvoice'>InputInvoice</a> = <a href='/type/payments.PaymentResult'>payments.PaymentResult</a>;</code></pre>
|
||||
<p>A <a href="/constructor/payments.paymentFormStars">payments.paymentFormStars</a> will be returned if the payment should be made using <a href="/api/stars">Telegram Stars</a>, invoking <a href="/method/payments.sendStarsForm">payments.sendStarsForm</a> instead of <a href="/method/payments.sendPaymentForm">payments.sendPaymentForm</a> at <a href="#4-pre-checkout">step 4 »</a>. </p>
|
||||
<p>Calling <a href="/method/payments.sendStarsForm">payments.sendStarsForm</a> twice with the same <code>form_id</code> will <strong>not</strong> repeat the transaction. </p>
|
||||
<p>Note that the returned form is only valid for 10 minutes, after which a call to <a href="/method/payments.sendStarsForm">payments.sendStarsForm</a> will return a <code>400</code> <code>FORM_EXPIRED</code> error.<br>
|
||||
When receiving this error, simply re-generate the form as specified in <a href="#22-getting-invoice-info-about-the-product">step 2.2 »</a> and re-call <a href="/method/payments.sendStarsForm">payments.sendStarsForm</a>. </p>
|
||||
<p>A <code>400</code> <code>BALANCE_TOO_LOW</code> error will be emitted by <a href="/method/payments.sendStarsForm">payments.sendStarsForm</a> if the current Telegram Stars balance is not enough to complete the transaction: when receiving this error, the client should invite the user to <a href="/api/stars#buying-stars">topup their Telegram Stars balance »</a>, before re-invoking <a href="/method/payments.sendStarsForm">payments.sendStarsForm</a>.</p>
|
||||
<h4><a class="anchor" href="#32-web-payment" id="32-web-payment" name="32-web-payment"><i class="anchor-icon"></i></a>3.2 Web payment</h4>
|
||||
<pre><code><a href='/constructor/inputPaymentCredentials'>inputPaymentCredentials</a>#3417d728 flags:<a href='/type/%23'>#</a> save:flags.0?<a href='/constructor/true'>true</a> data:<a href='/type/DataJSON'>DataJSON</a> = <a href='/type/InputPaymentCredentials'>InputPaymentCredentials</a>;
|
||||
|
||||
|
|
|
@ -103,6 +103,11 @@ To set <a href="/constructor/userFull">userFull</a>.<code>read_dates_private</co
|
|||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>MESSAGE_NOT_READ_YET</td>
|
||||
<td>The specified message wasn't read yet.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>MESSAGE_TOO_OLD</td>
|
||||
<td>The message is too old, the requested information is not available.</td>
|
||||
</tr>
|
||||
|
|
|
@ -100,6 +100,16 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>BALANCE_TOO_LOW</td>
|
||||
<td>The transaction cannot be completed because the current <a href="/api/stars">Telegram Stars balance</a> is too low.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>FORM_EXPIRED</td>
|
||||
<td>The form was generated more than 10 minutes ago and has expired, please re-generate it using <a href="/method/payments.getPaymentForm">payments.getPaymentForm</a> and pass the new <code>form_id</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>400</td>
|
||||
<td>PEER_ID_INVALID</td>
|
||||
<td>The provided peer id is invalid.</td>
|
||||
</tr>
|
||||
|
@ -107,7 +117,9 @@
|
|||
</table>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#telegram-stars" id="telegram-stars" name="telegram-stars"><i class="anchor-icon"></i></a><a href="/api/stars">Telegram Stars</a></h4>
|
||||
<p>Telegram Stars are an in-app currency that allows the user to pay for digital goods and services offered by <a href="https://telegram.org/blog/telegram-stars">Telegram bots</a> or <a href="https://telegram.org/blog/mini-app-bar-paid-media-and-more#pay-for-content-with-telegram-stars">Telegram channels</a>.</p></div>
|
||||
<p>Telegram Stars are an in-app currency that allows the user to pay for digital goods and services offered by <a href="https://telegram.org/blog/telegram-stars">Telegram bots</a> or <a href="https://telegram.org/blog/mini-app-bar-paid-media-and-more#pay-for-content-with-telegram-stars">Telegram channels</a>.</p>
|
||||
<h4><a class="anchor" href="#paymentsgetpaymentform" id="paymentsgetpaymentform" name="paymentsgetpaymentform"><i class="anchor-icon"></i></a><a href="/method/payments.getPaymentForm">payments.getPaymentForm</a></h4>
|
||||
<p>Get a payment form</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue