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

# chatmember

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

Package chatmember provides Filter helpers for \*api.ChatMemberUpdated payloads.

## Index

- [func FromUser\(uid int64\) dispatch.Filter\[\*api.ChatMemberUpdated\]](<#FromUser>)
- [func NewStatus\(s string\) dispatch.Filter\[\*api.ChatMemberUpdated\]](<#NewStatus>)


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

```go
func FromUser(uid int64) dispatch.Filter[*api.ChatMemberUpdated]
```

FromUser returns a Filter that matches updates where the acting user \(From.ID\) equals uid.

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

```go
func NewStatus(s string) dispatch.Filter[*api.ChatMemberUpdated]
```

NewStatus returns a Filter that matches updates where the new chat member status equals s \(e.g. "member", "administrator", "kicked", "left"\).

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