<!-- Code generated by gomarkdoc. DO NOT EDIT -->

# callback

```go
import "github.com/lukaszraczylo/go-telegram/dispatch/filters/callback"
```

Package callback provides Filter helpers for \*api.CallbackQuery payloads.

## Index

- [func Data\(pattern string\) dispatch.Filter\[\*api.CallbackQuery\]](<#Data>)
- [func DataEquals\(s string\) dispatch.Filter\[\*api.CallbackQuery\]](<#DataEquals>)
- [func DataPrefix\(prefix string\) dispatch.Filter\[\*api.CallbackQuery\]](<#DataPrefix>)
- [func FromUser\(userID int64\) dispatch.Filter\[\*api.CallbackQuery\]](<#FromUser>)


<a name="Data"></a>
## func [Data](<https://github.com/lukaszraczylo/go-telegram/blob/main/dispatch/filters/callback/callback.go#L14>)

```go
func Data(pattern string) dispatch.Filter[*api.CallbackQuery]
```

Data returns a Filter that matches callback queries whose Data matches pattern \(regex\). Panics at registration time on an invalid pattern.

<a name="DataEquals"></a>
## func [DataEquals](<https://github.com/lukaszraczylo/go-telegram/blob/main/dispatch/filters/callback/callback.go#L23>)

```go
func DataEquals(s string) dispatch.Filter[*api.CallbackQuery]
```

DataEquals returns a Filter that matches callback queries whose Data equals s exactly.

<a name="DataPrefix"></a>
## func [DataPrefix](<https://github.com/lukaszraczylo/go-telegram/blob/main/dispatch/filters/callback/callback.go#L31>)

```go
func DataPrefix(prefix string) dispatch.Filter[*api.CallbackQuery]
```

DataPrefix returns a Filter that matches callback queries whose Data starts with prefix.

<a name="FromUser"></a>
## func [FromUser](<https://github.com/lukaszraczylo/go-telegram/blob/main/dispatch/filters/callback/callback.go#L39>)

```go
func FromUser(userID int64) dispatch.Filter[*api.CallbackQuery]
```

FromUser returns a Filter that matches callback queries whose From.ID equals userID.

Generated by [gomarkdoc](<https://github.com/princjef/gomarkdoc>)
