- mediaOf<T>(type): UpdateFilter<Message, {
media: Extract<Message["media"], {
type: T;
}>;
}> Type Parameters
- T extends
| "photo"
| "location"
| "contact"
| "document"
| "game"
| "invoice"
| "poll"
| "video"
| "voice"
| "webpage"
| "story"
| "sticker"
| "audio"
| "dice"
| "live_location"
| "venue"
| "paid"
Filter messages containing media of given type