Documentation ¶
Index ¶
- func CreateHTMLMessage(chatID int64, htmlMessage string) tgbotapi.MessageConfig
- func CreateKeyboardMessage(chatID int64, text string, keyboardOptions ...string) tgbotapi.MessageConfig
- func CreateKeyboardMessageWithCommand(chatID int64, caption string, baseCommand string, keyboardOptions ...string) tgbotapi.MessageConfig
- func CreateReplyMessage(update tgbotapi.Update, text string) tgbotapi.MessageConfig
- func CreateTextMessage(chatID int64, text string) tgbotapi.MessageConfig
- func GetMenuOption(keyboardOption string) (command string, caption string, value string, isLineBreak bool)
- func IsValidUrl(toTest string) bool
- func UpdateToString(update tgbotapi.Update) string
- type BotMenuOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHTMLMessage ¶
func CreateHTMLMessage(chatID int64, htmlMessage string) tgbotapi.MessageConfig
func CreateKeyboardMessage ¶
func CreateKeyboardMessage(chatID int64, text string, keyboardOptions ...string) tgbotapi.MessageConfig
func CreateKeyboardMessageWithCommand ¶ added in v0.0.3
func CreateReplyMessage ¶
func CreateReplyMessage(update tgbotapi.Update, text string) tgbotapi.MessageConfig
func CreateTextMessage ¶
func CreateTextMessage(chatID int64, text string) tgbotapi.MessageConfig
CreateTextMessage creates a new message with the given chatID and text.
func GetMenuOption ¶ added in v0.0.3
func GetMenuOption(keyboardOption string) (command string, caption string, value string, isLineBreak bool)
getMenuOption -> caption:command|value
func IsValidUrl ¶
func UpdateToString ¶ added in v0.0.3
Types ¶
type BotMenuOption ¶ added in v0.0.3
func ParseBotMenuOption ¶ added in v0.0.3
func ParseBotMenuOption(option string) BotMenuOption
func (BotMenuOption) MessageValue ¶ added in v0.0.3
func (b BotMenuOption) MessageValue() string
func (BotMenuOption) String ¶ added in v0.0.3
func (b BotMenuOption) String() string
Click to show internal directories.
Click to hide internal directories.