Documentation
¶
Index ¶
- func ExtractChat(b *gotgbot.Bot, ctx *ext.Context) *gotgbot.Chat
- func ExtractQuotes(sentence string, matchQuotes, matchWord bool) (inQuotes, afterWord string)
- func ExtractTime(b *gotgbot.Bot, ctx *ext.Context, inputVal string) (banTime int64, timeStr, reason string)
- func ExtractUser(b *gotgbot.Bot, ctx *ext.Context) int64
- func ExtractUserAndText(b *gotgbot.Bot, ctx *ext.Context) (int64, string)
- func GetUserId(username string) int64
- func GetUserInfo(userId int64) (username, name string, found bool)
- func IdFromReply(m *gotgbot.Message) (int64, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractChat ¶
ExtractChat extracts the chat from the message.
func ExtractQuotes ¶
ExtractQuotes function used to extract text between quotes
func ExtractTime ¶
func ExtractTime(b *gotgbot.Bot, ctx *ext.Context, inputVal string) (banTime int64, timeStr, reason string)
ExtractTime function used to extract time from a string
func ExtractUser ¶
ExtractUser extracts the user from the message.
func ExtractUserAndText ¶
ExtractUserAndText extracts the user and text from the message.
func GetUserInfo ¶
GetUserInfo function used to get the user info from id
func IdFromReply ¶
IdFromReply function used to get the user id from a reply
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.