services

package
v0.0.0-...-2b57cc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDate

func CheckDate(strDate string) error

проверка, что дата валидна и находится в диапазоне от 01/01/1996 по текущий день

func GetUserID

func GetUserID(context telebot.Context) string

Возвращает строковый id юзера ТГ

func OnError

func OnError(err error, context telebot.Context)

Обработка неизвестной ошибки бота

Types

type AvailableCurrency

type AvailableCurrency struct {
	Code  string `json:"code"`
	Title string `json:"title"`
}

func GetAvailableCurrencies

func GetAvailableCurrencies() ([]AvailableCurrency, error)

получение доступных валют из JSON-файла

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL