mtkruto.filters

class Filter(filter_: Callable[[Any], bool])[source]

Bases: object

animation = <mtkruto.filters.Filter object>

Animation messages

audio = <mtkruto.filters.Filter object>

Audio messages

auto_delete_timer_changed = <mtkruto.filters.Filter object>

auto delete timer changed

Type:

Service message

bot = <mtkruto.filters.Filter object>

Messages that were sent by bots

channel = <mtkruto.filters.Filter object>

Updates from channels

channel_created = <mtkruto.filters.Filter object>

channel created

Type:

Service message

chat(ids: str | int | List[str | int]) Filter[source]

Filter messages coming from one or more chats

chat_migrated_from = <mtkruto.filters.Filter object>

chat migrated from

Type:

Service message

chat_migrated_to = <mtkruto.filters.Filter object>

chat migrated to

Type:

Service message

contact = <mtkruto.filters.Filter object>

Messages that share a contact

deleted_chat_photo = <mtkruto.filters.Filter object>

deleted chat photo

Type:

Service message

dice = <mtkruto.filters.Filter object>

Dice messages

document = <mtkruto.filters.Filter object>

Document messages

forum_topic_closed = <mtkruto.filters.Filter object>

forum topic closed

Type:

Service message

forum_topic_created = <mtkruto.filters.Filter object>

forum topic created

Type:

Service message

forum_topic_edited = <mtkruto.filters.Filter object>

forum topic edited

Type:

Service message

forum_topic_reopened = <mtkruto.filters.Filter object>

forum topic reopened

Type:

Service message

forward = <mtkruto.filters.Filter object>

Messages that have been forwarded

game = <mtkruto.filters.Filter object>

Messages that share a game

giveaway = <mtkruto.filters.Filter object>

Messages about giveaways

group = <mtkruto.filters.Filter object>

Updates from groups and supergroups

group_created = <mtkruto.filters.Filter object>

group created

Type:

Service message

left_chat_member = <mtkruto.filters.Filter object>

left chat members

Type:

Service message

Messages containing only a link preview

location = <mtkruto.filters.Filter object>

Location messages

media_group = <mtkruto.filters.Filter object>

Messages that are part of a media group

new_chat_members = <mtkruto.filters.Filter object>

new chat members

Type:

Service message

new_chat_photo = <mtkruto.filters.Filter object>

new chat photo

Type:

Service message

new_chat_title = <mtkruto.filters.Filter object>

new chat title

Type:

Service message

out = <mtkruto.filters.Filter object>

Messages that were sent by the current account

photo = <mtkruto.filters.Filter object>

Photo messages

pinned_message = <mtkruto.filters.Filter object>

pinned message

Type:

Service message

poll = <mtkruto.filters.Filter object>

Poll messages

private = <mtkruto.filters.Filter object>

Updates from private chats

reply = <mtkruto.filters.Filter object>

Messages that are a reply to another message

reply_quote = <mtkruto.filters.Filter object>

Messages that have a reply_quote

sender_chat = <mtkruto.filters.Filter object>

Messages that were sent on behalf of chats

service = <mtkruto.filters.Filter object>

Service messages

sticker = <mtkruto.filters.Filter object>

Sticker messages

successful_payment = <mtkruto.filters.Filter object>

Successful payment messages

supergroup_created = <mtkruto.filters.Filter object>

supergroup created

Type:

Service message

text = <mtkruto.filters.Filter object>

Text messages

topic = <mtkruto.filters.Filter object>

Updates from forums

unsupported = <mtkruto.filters.Filter object>

Unsupported messages

user(ids: str | int | List[str | int]) Filter[source]

Filter messages coming from one or more users

user_chared = <mtkruto.filters.Filter object>

user shared

Type:

Service message

venue = <mtkruto.filters.Filter object>

Venue messages

via_bot = <mtkruto.filters.Filter object>

Messages that were sent via inline bots

video = <mtkruto.filters.Filter object>

Video messages

video_chat_ended = <mtkruto.filters.Filter object>

video chat ended

Type:

Service message

video_chat_scheduled = <mtkruto.filters.Filter object>

video chat scheduled

Type:

Service message

video_chat_started = <mtkruto.filters.Filter object>

video chat started

Type:

Service message

video_note = <mtkruto.filters.Filter object>

Video note messages

voice = <mtkruto.filters.Filter object>

Voice messages

write_access_allowed = <mtkruto.filters.Filter object>

write access allowed

Type:

Service message