package
0.0.0-20240526121728-e985f823f731
Repository: https://github.com/joshbarrass/uncivnotifybot.git
Documentation: pkg.go.dev

# Functions

CommandArgs returns the arguments to a command as a single string.
CommandArgsSplit returns the arguments to a command, split by space.
GetFromUser returns the User from whom the update was received, regardless of the true underlying type of the update.
GetMessageObject will return the main message object from an update.
GetUpdateMessageID extracts the ID of the message that triggered an update.
GetUserFirstName returns the first name of the user who sent this update.
GetUserID returns the ID of the user who sent this update.
GetUsername returns the ID of the user who sent this update.
NewAllMessageHandler creates a new handler that matches all message-like updates.
No description provided by the author
NewCommandHandler creates a new handler for a particular command.

# Constants

No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

AllMessageHandler is a handler that matches all message-like updates.
Bot represents the bot itself, stores the necessary variables for the functioning of the bot, and exposes the necessary methods for the bot's operation.
CommandHandler runs a particular function in response to a particular command, prefixed with a slash.

# Interfaces

Filter represents a generic, reusable object for checking whether an update applies to a handler.
Handler represents a way of handling an update.

# Type aliases

No description provided by the author