helper

package
v0.0.0-...-93f7374 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildKeyboard

func BuildKeyboard(buttonsInfo []*model.TelegramButtonInfo, columnSize int) tgBotAPI.InlineKeyboardMarkup

func Command

func Command(message string) string

func CommandArguments

func CommandArguments(message string) []string

func ExcludeDuplicateMeetings

func ExcludeDuplicateMeetings(meetings []*model.Meeting) []*model.Meeting

TODO refactor, del n*n complexity

func ExecuteTemplate

func ExecuteTemplate(tmplStr string, data interface{}) (string, error)

func GetDaysInMonth

func GetDaysInMonth(year int64, month int64) []int64

func GetHours

func GetHours() []int64

func GetInexperiencedSpeaker

func GetInexperiencedSpeaker(stats []*model.Stats) int64

func GetMinutes

func GetMinutes() []int64

func GetMonthList

func GetMonthList() map[int64]string

func GetNotification

func GetNotification(initiator *model.Student, unitName string, topicName string, startDate time.Time, recipientID int64, tmpl string) (tgBotAPI.MessageConfig, error)

func SliceToString

func SliceToString(data []string) string

func SplitSlice

func SplitSlice(data []*model.TelegramButtonInfo, chunkSize int) [][]*model.TelegramButtonInfo

Types

This section is empty.

Jump to

Keyboard shortcuts

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