filters

package
v1.0.0-beta17 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Message             = messageFilters{}
	CallbackQuery       = callbackQueryFilters{}
	InlineQuery         = inlineQuery{}
	PendingJoinRequests = pendingJoinRequests{}
	ChatMemberUpdated   = chatMemberUpdated{}
)

Functions

func Channel

func Channel(u *ext.Update) bool

Channel returns true if the update is from a channel.

func GetDocument

func GetDocument(m *types.Message) *tg.Document

func Group

func Group(u *ext.Update) bool

Group returns true if the update is from a normal group.

func Supergroup

func Supergroup(u *ext.Update) bool

Supergroup returns true if the update is from a supergroup.

Types

type CallbackQueryFilter

type CallbackQueryFilter func(cbq *tg.UpdateBotCallbackQuery) bool

type ChatMemberUpdatedFilter

type ChatMemberUpdatedFilter func(u *ext.Update) bool

type InlineQueryFilter

type InlineQueryFilter func(iq *tg.UpdateBotInlineQuery) bool

type MessageFilter

type MessageFilter func(m *types.Message) bool

type PendingJoinRequestsFilter

type PendingJoinRequestsFilter func(cjr *tg.UpdatePendingJoinRequests) bool

type UpdateFilter

type UpdateFilter func(u *ext.Update) bool

Jump to

Keyboard shortcuts

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