Documentation ¶
Index ¶
- func After(value string, key string) string
- func BotDeleteMessage(bot *tgbotapi.BotAPI, chatId int64, messageId int)
- func BotSendMessage(bot *tgbotapi.BotAPI, chatId int64, message string)
- func BotSendWrapper(bot *tgbotapi.BotAPI, chattables ...tgbotapi.Chattable)
- func GetFloatFormatter(currency money.Currency) string
- func NewEditEmptyInlineKeyboard(chatId int64, messageId int) tgbotapi.EditMessageReplyMarkupConfig
- func NewInlineKeyboard(configs []InlineKeyboardConfig, messageContextId int, colSize int, ...) [][]tgbotapi.InlineKeyboardButton
- func NewPaginationKeyboard(totalCount int, currentOffset int, limit int, messageContextId int, ...) ([][]tgbotapi.InlineKeyboardButton, error)
- func NewUndoConfirmationKeyboard(transactionId int, messageContextId int, colSize int) ([][]tgbotapi.InlineKeyboardButton, error)
- func ParseMonthFromString(s string) time.Month
- func ParseMonthYearFromMessage(s string) (time.Month, int)
- func ToJson[T any](t T) (string, error)
- type InlineKeyboardConfig
- type YearMonth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFloatFormatter ¶
func GetFloatFormatter(currency money.Currency) string
func NewEditEmptyInlineKeyboard ¶
func NewEditEmptyInlineKeyboard(chatId int64, messageId int) tgbotapi.EditMessageReplyMarkupConfig
func NewInlineKeyboard ¶
func NewInlineKeyboard(configs []InlineKeyboardConfig, messageContextId int, colSize int, cancellable bool) [][]tgbotapi.InlineKeyboardButton
func NewPaginationKeyboard ¶
func ParseMonthFromString ¶
ParseMonthFromString trys to return the month given a string, else it returns the current month.
func ParseMonthYearFromMessage ¶
parseMonthYearFromMessage returns the month and year representation from the string, any error returns the current month or year
Types ¶
type InlineKeyboardConfig ¶
type InlineKeyboardConfig struct {
// contains filtered or unexported fields
}
func NewInlineKeyboardConfig ¶
func NewInlineKeyboardConfig(label string, data string) InlineKeyboardConfig
Click to show internal directories.
Click to hide internal directories.