Supported currencies map added.

pull/192/head
Ian Byrd 5 years ago
parent 430758b374
commit 1221003ca6
No known key found for this signature in database
GPG Key ID: 598F598CA3B8055F

@ -6,10 +6,10 @@ import "strconv"
type User struct {
ID int `json:"id"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Username string `json:"username"`
LanguageCode string `json:"language_code"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Username string `json:"username"`
LanguageCode string `json:"language_code"`
}
// Recipient returns user ID (see Recipient interface).

File diff suppressed because one or more lines are too long

@ -0,0 +1,23 @@
package telebot
import "encoding/json"
type Currency struct {
Code string `json:"code"`
Title string `json:"title"`
Symbol string `json:"symbol"`
Native string `json:"native"`
ThousandsSep string `json:"thousands_sep"`
DecimalSep string `json:"decimal_sep"`
SymbolLeft bool `json:"symbol_left"`
SpaceBetween bool `json:"space_between"`
Exp int `json:"exp"`
MinAmount string `json:"min_amount"`
MaxAmount string `json:"max_amount"`
}
var SupportedCurrencies = map[string]Currency{}
func init() {
json.Unmarshal([]byte(dataSupportedCurrenciesJSON), &SupportedCurrencies)
}
Loading…
Cancel
Save