Layer 231
constructor
onrampProviderInfo#dc27582 flags:# supports_base_currencies:flags.0?true supports_limits:flags.1?true supports_quote:flags.2?true id:string name:string crypto_currencies:Vector<string> = OnrampProviderInfo;

Parameters

Name Type Description
SupportsBaseCurrencies flags.0?true Whether the provider supports choosing the fiat currency
SupportsLimits flags.1?true Whether payments. get Onramp Limits is supported
SupportsQuote flags.2?true Whether payments. get Onramp Quote is supported
Id string Provider ID
Name string Provider name
CryptoCurrencies Vector<string> Supported cryptocurrencies

Gogram Example

// Creating OnrampProviderInfoObj constructor
obj := &tg.OnrampProviderInfoObj{
    Id: "example",
    Name: "Example",
    CryptoCurrencies: "example",

    // Optional fields:
    // SupportsBaseCurrencies: true,
    // SupportsLimits: true,
    // SupportsQuote: true,
}