Documentation
¶
Index ¶
- Constants
- func AbraxasCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func AbraxasHandler(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func AliasCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func AnyCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func CalloutCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func CalloutMessage(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func DiceCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func GrumpyCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func Listen(ctx context.Context, b *tg.Bot, cfg *config.Config) error
- func MediaBottomtenCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func MediaForgetCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func MediaRememberCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func MediaSearchCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func MediaSearchOffsetCallback(ctx context.Context, b *tg.Bot, update *tg.Update, act, offset int64) error
- func MediaToptenCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func MediaToptwentyCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func OnCallback(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
- func OnMessage(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)
Constants ¶
View Source
const ( CB_DATANULL int64 = iota - 1 CB_ERROR CB_MEDIA_UP CB_MEDIA_DOWN CB_MEDIA_SHOW CB_MEDIA_SEARCH_MORE CB_MEDIA_SEARCH_LESS )
Variables ¶
This section is empty.
Functions ¶
func AbraxasCommand ¶
AbraxasCommand handles commands for abraxas (add, remove)
func AbraxasHandler ¶
AbraxasHandler handles message text like: `abraxas ...`
func AliasCommand ¶
AliasCommand handles the `/alias <from> <to>` command
func AnyCommand ¶
AnyCommand handles any command sent to the chat, searches for aliases and dispatch the update accordingly
func CalloutCommand ¶
CalloutCommand handles `/callout <name> <rest>`
func CalloutMessage ¶
func DiceCommand ¶
DiceCommand handles the `/dice <dice>[ <dice>]` command
func GrumpyCommand ¶
Grumpy
func MediaBottomtenCommand ¶
func MediaForgetCommand ¶
func MediaRememberCommand ¶
func MediaSearchCommand ¶
Media
func MediaToptenCommand ¶
func MediaToptwentyCommand ¶
func OnCallback ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.