message

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And

func And(fs ...filters.Message) filters.Message

And combines multiple filters, all must pass.

func Channel

func Channel(msg *gotdbot.Message) bool

Channel filters messages sent in channel chats.

func ChatID

func ChatID(id int64) filters.Message

ChatID checks if the message chat ID matches the given ID.

func Command

func Command(msg *gotdbot.Message) bool

Command filters messages that are commands.

func Edited

func Edited(msg *gotdbot.Message) bool

Edited filters edited messages.

func Equal

func Equal(match string) filters.Message

Equal checks if the message text equals the given match string.

func FromUserID

func FromUserID(id int64) filters.Message

FromUserID checks if the message sender's user ID matches the given ID.

func Group

func Group(msg *gotdbot.Message) bool

Group filters messages sent in group or supergroup chats.

func Incoming

func Incoming(msg *gotdbot.Message) bool

Incoming filters incoming messages.

func Not

Not negates a filter.

func Or

func Or(fs ...filters.Message) filters.Message

Or combines multiple filters, at least one must pass.

func Outgoing

func Outgoing(msg *gotdbot.Message) bool

Outgoing filters outgoing messages.

func Prefix

func Prefix(prefix string) filters.Message

Prefix checks if the message text starts with the given prefix.

func Private

func Private(msg *gotdbot.Message) bool

Private filters messages sent in private chats.

func Regex

func Regex(pattern string) filters.Message

Regex checks if the message text matches the given regex pattern.

func Suffix

func Suffix(suffix string) filters.Message

Suffix checks if the message text ends with the given suffix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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