payments.createOnrampSession
payments.createOnrampSession
Section titled “payments.createOnrampSession”No description provided by the pinned schema.
Signature
Section titled “Signature”payments.createOnrampSession#a2197cf6 flags:# provider:string crypto_currency:string address:string payment_method:flags.0?string base_currency:flags.1?string base_amount:flags.2?string memo:flags.3?string theme:flags.4?string success_return_url:flags.5?string fail_return_url:flags.6?string crypto_amount:flags.7?string = OnrampSession;Result type
Section titled “Result type”OnrampSession
Parameters
Section titled “Parameters”| Name | Type | Flag | Default | Description |
|---|---|---|---|---|
| flags | # | flag word | — | No description provided by the pinned schema. |
| provider | string | — | — | No description provided by the pinned schema. |
| crypto_currency | string | — | — | No description provided by the pinned schema. |
| address | string | — | — | No description provided by the pinned schema. |
| payment_method | flags.0?string | flags.0 | — | No description provided by the pinned schema. |
| base_currency | flags.1?string | flags.1 | — | No description provided by the pinned schema. |
| base_amount | flags.2?string | flags.2 | — | No description provided by the pinned schema. |
| memo | flags.3?string | flags.3 | — | No description provided by the pinned schema. |
| theme | flags.4?string | flags.4 | — | No description provided by the pinned schema. |
| success_return_url | flags.5?string | flags.5 | — | No description provided by the pinned schema. |
| fail_return_url | flags.6?string | flags.6 | — | No description provided by the pinned schema. |
| crypto_amount | flags.7?string | flags.7 | — | No description provided by the pinned schema. |
| Parameter | Bit | Meaning |
|---|---|---|
| payment_method | 0 | Controlled by flags; present when this bit is set. |
| base_currency | 1 | Controlled by flags; present when this bit is set. |
| base_amount | 2 | Controlled by flags; present when this bit is set. |
| memo | 3 | Controlled by flags; present when this bit is set. |
| theme | 4 | Controlled by flags; present when this bit is set. |
| success_return_url | 5 | Controlled by flags; present when this bit is set. |
| fail_return_url | 6 | Controlled by flags; present when this bit is set. |
| crypto_amount | 7 | Controlled by flags; present when this bit is set. |
Python binding
Section titled “Python binding”from miniproto.raw.functions import PaymentsCreateOnrampSessionPublic access: miniproto.raw.functions.PaymentsCreateOnrampSession.
Class reference
Section titled “Class reference”from miniproto.raw.functions import PaymentsCreateOnrampSession
# Refer to the raw request class without constructing it or calling Telegramrequest_type = PaymentsCreateOnrampSessionResult family
Section titled “Result family”RPC errors
Section titled “RPC errors”No RPC errors are mapped to this method by the pinned error database.
Accepted types
Section titled “Accepted types”No non-primitive type relationships were found.
Returned types
Section titled “Returned types”OnrampSession
Known selected constructors: onrampSession
Provenance
Section titled “Provenance”- structural source:
tdlib - canonical schema: https://raw.githubusercontent.com/tdlib/td/refs/heads/master/td/generate/scheme/telegram_api.tl
- prose merge precedence: TDLib → Telegram Desktop → Core JSON
- source note: Canonical structure is the pinned TDLib telegram_api.tl; Layer 234 comes only from the matching Telegram Desktop end-of-file marker; core.telegram.org inputs enrich documentation and RPC error metadata without overriding structure.
Source-diff notes
Section titled “Source-diff notes”- tdlib_vs_core: changed_count=77; core_only_count=18; overlap_count=2338; tdlib_only_count=307
- tdlib_vs_tdesktop: changed_count=0; overlap_count=2634; tdesktop_only=null; tdlib_only=accessPointRule, bots.setBotSettings, help.configSimple, inputPeerPhotoFileLocationLegacy, inputStickerSetThumbLegacy, invokeWithApnsSecretPrefix, invokeWithBusinessConnectionPrefix, invokeWithGooglePlayIntegrityPrefix, invokeWithReCaptchaPrefix, ipPort, ipPortSecret