extraction

package
v0.0.0-...-f0180c5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractChat

func ExtractChat(b *gotgbot.Bot, ctx *ext.Context) *gotgbot.Chat

ExtractChat extracts the chat from the message.

func ExtractQuotes

func ExtractQuotes(sentence string, matchQuotes, matchWord bool) (inQuotes, afterWord string)

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

func ExtractUser(b *gotgbot.Bot, ctx *ext.Context) int64

ExtractUser extracts the user from the message.

func ExtractUserAndText

func ExtractUserAndText(b *gotgbot.Bot, ctx *ext.Context) (int64, string)

ExtractUserAndText extracts the user and text from the message.

func GetUserId

func GetUserId(username string) int64

GetUserId function used to get the user id from a username

func GetUserInfo

func GetUserInfo(userId int64) (username, name string, found bool)

GetUserInfo function used to get the user info from id

func IdFromReply

func IdFromReply(m *gotgbot.Message) (int64, string)

IdFromReply function used to get the user id from a reply

Types

This section is empty.

Jump to

Keyboard shortcuts

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