mirror of
https://github.com/tucnak/telebot
synced 2024-11-03 09:40:18 +00:00
Fixed an apparent conflict in the currency JSON list
This commit is contained in:
parent
1221003ca6
commit
49593279d6
@ -12,12 +12,15 @@ type Currency struct {
|
||||
SymbolLeft bool `json:"symbol_left"`
|
||||
SpaceBetween bool `json:"space_between"`
|
||||
Exp int `json:"exp"`
|
||||
MinAmount string `json:"min_amount"`
|
||||
MaxAmount string `json:"max_amount"`
|
||||
MinAmount interface{} `json:"min_amount"`
|
||||
MaxAmount interface{} `json:"max_amount"`
|
||||
}
|
||||
|
||||
var SupportedCurrencies = map[string]Currency{}
|
||||
|
||||
func init() {
|
||||
json.Unmarshal([]byte(dataSupportedCurrenciesJSON), &SupportedCurrencies)
|
||||
err := json.Unmarshal([]byte(dataSupportedCurrenciesJSON), &SupportedCurrencies)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user