Layer 231
constructor
currencyRate#30d9743c currency:string rate:double = CurrencyRate;

Parameters

Name Type Description
Currency string Currency code
Rate double Exchange rate

Returns

CurrencyRate

Gogram Example

// Creating CurrencyRateObj constructor
obj := &tg.CurrencyRateObj{
    Currency: "USD",
    Rate: 3.14159,
}