import type { Filter } from "../filter-runtime.js"; import type { UpdateKind, UpdateKindMap } from "./updates.js"; import type { Animation, Audio, Chat, ChatInviteLink, ChatShared, Contact, Dice, Document, ExternalReplyInfo, ForumTopicCreated, ForumTopicEdited, Game, Giveaway, GiveawayCompleted, GiveawayWinners, InlineKeyboardMarkup, Invoice, LinkPreviewOptions, LivePhoto, Location, MessageEntity, OrderInfo, PassportData, PhotoSize, Poll, PollMedia, ProximityAlertTriggered, Sticker, Story, SuccessfulPayment, TextQuote, User, UsersShared, Venue, Video, VideoChatEnded, VideoChatParticipantsInvited, VideoChatScheduled, VideoNote, Voice, WebAppData, WriteAccessAllowed } from "./structures.js"; import type { TelegramBusinessBotRights, TelegramChatBackground, TelegramChatBoostAdded, TelegramChatOwnerChanged, TelegramChatOwnerLeft, TelegramChecklist, TelegramChecklistTasksAdded, TelegramChecklistTasksDone, TelegramCommunityChatAdded, TelegramCommunityChatJoined, TelegramCommunityChatRemoved, TelegramDirectMessagePriceChanged, TelegramDirectMessagesTopic, TelegramForumTopicClosed, TelegramForumTopicReopened, TelegramGeneralForumTopicHidden, TelegramGeneralForumTopicUnhidden, TelegramGiftInfo, TelegramGiveawayCreated, TelegramManagedBotCreated, TelegramMaybeInaccessibleMessage, TelegramMessageAutoDeleteTimerChanged, TelegramMessageOrigin, TelegramPaidMediaInfo, TelegramPaidMessagePriceChanged, TelegramPollOptionAdded, TelegramPollOptionDeleted, TelegramRefundedPayment, TelegramRichMessage, TelegramSuggestedPostApprovalFailed, TelegramSuggestedPostApproved, TelegramSuggestedPostDeclined, TelegramSuggestedPostInfo, TelegramSuggestedPostPaid, TelegramSuggestedPostRefunded, TelegramUniqueGiftInfo, TelegramVideoChatStarted } from "./types.js"; /** * filter — true if the update has `actorChat` set */ export declare const hasActorChat: Filter; /** * filter — true if the update has `animation` set */ export declare const hasAnimation: Filter; /** * filter — true if the update has `audio` set */ export declare const hasAudio: Filter; /** * filter — true if the update has `authorSignature` set */ export declare const hasAuthorSignature: Filter; /** * filter — true if the update has `bio` set */ export declare const hasBio: Filter; /** * filter — true if the update has `boostAdded` set */ export declare const hasBoostAdded: Filter; /** * filter — true if the update has `businessConnectionId` set */ export declare const hasBusinessConnectionId: Filter; /** * filter — true if the update has `caption` set */ export declare const hasCaption: Filter; /** * filter — true if the update has `captionEntities` set */ export declare const hasCaptionEntities: Filter; /** * filter — true if the update has `channelChatCreated` set */ export declare const hasChannelChatCreated: Filter; /** * filter — true if the update has `chatBackgroundSet` set */ export declare const hasChatBackgroundSet: Filter; /** * filter — true if the update has `chatOwnerChanged` set */ export declare const hasChatOwnerChanged: Filter; /** * filter — true if the update has `chatOwnerLeft` set */ export declare const hasChatOwnerLeft: Filter; /** * filter — true if the update has `chatShared` set */ export declare const hasChatShared: Filter; /** * filter — true if the update has `chatType` set */ export declare const hasChatType: Filter; /** * filter — true if the update has `checklist` set */ export declare const hasChecklist: Filter; /** * filter — true if the update has `checklistTasksAdded` set */ export declare const hasChecklistTasksAdded: Filter; /** * filter — true if the update has `checklistTasksDone` set */ export declare const hasChecklistTasksDone: Filter; /** * filter — true if the update has `closeDate` set */ export declare const hasCloseDate: Filter; /** * filter — true if the update has `communityChatAdded` set */ export declare const hasCommunityChatAdded: Filter; /** * filter — true if the update has `communityChatJoined` set */ export declare const hasCommunityChatJoined: Filter; /** * filter — true if the update has `communityChatRemoved` set */ export declare const hasCommunityChatRemoved: Filter; /** * filter — true if the update has `connectedWebsite` set */ export declare const hasConnectedWebsite: Filter; /** * filter — true if the update has `contact` set */ export declare const hasContact: Filter; /** * filter — true if the update has `correctOptionIds` set */ export declare const hasCorrectOptionIds: Filter; /** * filter — true if the update has `countryCodes` set */ export declare const hasCountryCodes: Filter; /** * filter — true if the update has `data` set */ export declare const hasData: Filter; /** * filter — true if the update has `deleteChatPhoto` set */ export declare const hasDeleteChatPhoto: Filter; /** * filter — true if the update has `description` set */ export declare const hasDescription: Filter; /** * filter — true if the update has `descriptionEntities` set */ export declare const hasDescriptionEntities: Filter; /** * filter — true if the update has `dice` set */ export declare const hasDice: Filter; /** * filter — true if the update has `directMessagePriceChanged` set */ export declare const hasDirectMessagePriceChanged: Filter; /** * filter — true if the update has `directMessagesTopic` set */ export declare const hasDirectMessagesTopic: Filter; /** * filter — true if the update has `document` set */ export declare const hasDocument: Filter; /** * filter — true if the update has `editDate` set */ export declare const hasEditDate: Filter; /** * filter — true if the update has `effectId` set */ export declare const hasEffectId: Filter; /** * filter — true if the update has `entities` set */ export declare const hasEntities: Filter; /** * filter — true if the update has `ephemeralMessageId` set */ export declare const hasEphemeralMessageId: Filter; /** * filter — true if the update has `explanation` set */ export declare const hasExplanation: Filter; /** * filter — true if the update has `explanationEntities` set */ export declare const hasExplanationEntities: Filter; /** * filter — true if the update has `explanationMedia` set */ export declare const hasExplanationMedia: Filter; /** * filter — true if the update has `externalReply` set */ export declare const hasExternalReply: Filter; /** * filter — true if the update has `forumTopicClosed` set */ export declare const hasForumTopicClosed: Filter; /** * filter — true if the update has `forumTopicCreated` set */ export declare const hasForumTopicCreated: Filter; /** * filter — true if the update has `forumTopicEdited` set */ export declare const hasForumTopicEdited: Filter; /** * filter — true if the update has `forumTopicReopened` set */ export declare const hasForumTopicReopened: Filter; /** * filter — true if the update has `forwardOrigin` set */ export declare const hasForwardOrigin: Filter; /** * filter — true if the update has `from` set */ export declare const hasFrom: Filter; /** * filter — true if the update has `game` set */ export declare const hasGame: Filter; /** * filter — true if the update has `gameShortName` set */ export declare const hasGameShortName: Filter; /** * filter — true if the update has `generalForumTopicHidden` set */ export declare const hasGeneralForumTopicHidden: Filter; /** * filter — true if the update has `generalForumTopicUnhidden` set */ export declare const hasGeneralForumTopicUnhidden: Filter; /** * filter — true if the update has `gift` set */ export declare const hasGift: Filter; /** * filter — true if the update has `giftUpgradeSent` set */ export declare const hasGiftUpgradeSent: Filter; /** * filter — true if the update has `giveaway` set */ export declare const hasGiveaway: Filter; /** * filter — true if the update has `giveawayCompleted` set */ export declare const hasGiveawayCompleted: Filter; /** * filter — true if the update has `giveawayCreated` set */ export declare const hasGiveawayCreated: Filter; /** * filter — true if the update has `giveawayWinners` set */ export declare const hasGiveawayWinners: Filter; /** * filter — true if the update has `groupChatCreated` set */ export declare const hasGroupChatCreated: Filter; /** * filter — true if the update has `guestBotCallerChat` set */ export declare const hasGuestBotCallerChat: Filter; /** * filter — true if the update has `guestBotCallerUser` set */ export declare const hasGuestBotCallerUser: Filter; /** * filter — true if the update has `guestQueryId` set */ export declare const hasGuestQueryId: Filter; /** * filter — true if the update has `inlineMessageId` set */ export declare const hasInlineMessageId: Filter; /** * filter — true if the update has `inviteLink` set */ export declare const hasInviteLink: Filter; /** * filter — true if the update has `invoice` set */ export declare const hasInvoice: Filter; /** * filter — true if the update has `leftChatMember` set */ export declare const hasLeftChatMember: Filter; /** * filter — true if the update has `linkPreviewOptions` set */ export declare const hasLinkPreviewOptions: Filter; /** * filter — true if the update has `livePhoto` set */ export declare const hasLivePhoto: Filter; /** * filter — true if the update has `location` set */ export declare const hasLocation: Filter; /** * filter — true if the update has `managedBotCreated` set */ export declare const hasManagedBotCreated: Filter; /** * filter — true if the update has `media` set */ export declare const hasMedia: Filter; /** * filter — true if the update has `mediaGroupId` set */ export declare const hasMediaGroupId: Filter; /** * filter — true if the update has `message` set */ export declare const hasMessage: Filter; /** * filter — true if the update has `messageAutoDeleteTimerChanged` set */ export declare const hasMessageAutoDeleteTimerChanged: Filter; /** * filter — true if the update has `messageThreadId` set */ export declare const hasMessageThreadId: Filter; /** * filter — true if the update has `migrateFromChatId` set */ export declare const hasMigrateFromChatId: Filter; /** * filter — true if the update has `migrateToChatId` set */ export declare const hasMigrateToChatId: Filter; /** * filter — true if the update has `newChatMembers` set */ export declare const hasNewChatMembers: Filter; /** * filter — true if the update has `newChatPhoto` set */ export declare const hasNewChatPhoto: Filter; /** * filter — true if the update has `newChatTitle` set */ export declare const hasNewChatTitle: Filter; /** * filter — true if the update has `openPeriod` set */ export declare const hasOpenPeriod: Filter; /** * filter — true if the update has `orderInfo` set */ export declare const hasOrderInfo: Filter; /** * filter — true if the update has `paidMedia` set */ export declare const hasPaidMedia: Filter; /** * filter — true if the update has `paidMessagePriceChanged` set */ export declare const hasPaidMessagePriceChanged: Filter; /** * filter — true if the update has `paidStarCount` set */ export declare const hasPaidStarCount: Filter; /** * filter — true if the update has `passportData` set */ export declare const hasPassportData: Filter; /** * filter — true if the update has `photo` set */ export declare const hasPhoto: Filter; /** * filter — true if the update has `pinnedMessage` set */ export declare const hasPinnedMessage: Filter; /** * filter — true if the update has `poll` set */ export declare const hasPoll: Filter; /** * filter — true if the update has `pollOptionAdded` set */ export declare const hasPollOptionAdded: Filter; /** * filter — true if the update has `pollOptionDeleted` set */ export declare const hasPollOptionDeleted: Filter; /** * filter — true if the update has `proximityAlertTriggered` set */ export declare const hasProximityAlertTriggered: Filter; /** * filter — true if the update has `queryId` set */ export declare const hasQueryId: Filter; /** * filter — true if the update has `questionEntities` set */ export declare const hasQuestionEntities: Filter; /** * filter — true if the update has `quote` set */ export declare const hasQuote: Filter; /** * filter — true if the update has `receiverUser` set */ export declare const hasReceiverUser: Filter; /** * filter — true if the update has `refundedPayment` set */ export declare const hasRefundedPayment: Filter; /** * filter — true if the update has `replyMarkup` set */ export declare const hasReplyMarkup: Filter; /** * filter — true if the update has `replyToChecklistTaskId` set */ export declare const hasReplyToChecklistTaskId: Filter; /** * filter — true if the update has `replyToPollOptionId` set */ export declare const hasReplyToPollOptionId: Filter; /** * filter — true if the update has `replyToStory` set */ export declare const hasReplyToStory: Filter; /** * filter — true if the update has `richMessage` set */ export declare const hasRichMessage: Filter; /** * filter — true if the update has `rights` set */ export declare const hasRights: Filter; /** * filter — true if the update has `senderBoostCount` set */ export declare const hasSenderBoostCount: Filter; /** * filter — true if the update has `senderBusinessBot` set */ export declare const hasSenderBusinessBot: Filter; /** * filter — true if the update has `senderChat` set */ export declare const hasSenderChat: Filter; /** * filter — true if the update has `senderTag` set */ export declare const hasSenderTag: Filter; /** * filter — true if the update has `shippingOptionId` set */ export declare const hasShippingOptionId: Filter; /** * filter — true if the update has `showCaptionAboveMedia` set */ export declare const hasShowCaptionAboveMedia: Filter; /** * filter — true if the update has `sticker` set */ export declare const hasSticker: Filter; /** * filter — true if the update has `story` set */ export declare const hasStory: Filter; /** * filter — true if the update has `successfulPayment` set */ export declare const hasSuccessfulPayment: Filter; /** * filter — true if the update has `suggestedPostApprovalFailed` set */ export declare const hasSuggestedPostApprovalFailed: Filter; /** * filter — true if the update has `suggestedPostApproved` set */ export declare const hasSuggestedPostApproved: Filter; /** * filter — true if the update has `suggestedPostDeclined` set */ export declare const hasSuggestedPostDeclined: Filter; /** * filter — true if the update has `suggestedPostInfo` set */ export declare const hasSuggestedPostInfo: Filter; /** * filter — true if the update has `suggestedPostPaid` set */ export declare const hasSuggestedPostPaid: Filter; /** * filter — true if the update has `suggestedPostRefunded` set */ export declare const hasSuggestedPostRefunded: Filter; /** * filter — true if the update has `supergroupChatCreated` set */ export declare const hasSupergroupChatCreated: Filter; /** * filter — true if the update has `text` set */ export declare const hasText: Filter; /** * filter — true if the update has `uniqueGift` set */ export declare const hasUniqueGift: Filter; /** * filter — true if the update has `user` set */ export declare const hasUser: Filter; /** * filter — true if the update has `usersShared` set */ export declare const hasUsersShared: Filter; /** * filter — true if the update has `venue` set */ export declare const hasVenue: Filter; /** * filter — true if the update has `viaBot` set */ export declare const hasViaBot: Filter; /** * filter — true if the update has `viaChatFolderInviteLink` set */ export declare const hasViaChatFolderInviteLink: Filter; /** * filter — true if the update has `viaJoinRequest` set */ export declare const hasViaJoinRequest: Filter; /** * filter — true if the update has `video` set */ export declare const hasVideo: Filter; /** * filter — true if the update has `videoChatEnded` set */ export declare const hasVideoChatEnded: Filter; /** * filter — true if the update has `videoChatParticipantsInvited` set */ export declare const hasVideoChatParticipantsInvited: Filter; /** * filter — true if the update has `videoChatScheduled` set */ export declare const hasVideoChatScheduled: Filter; /** * filter — true if the update has `videoChatStarted` set */ export declare const hasVideoChatStarted: Filter; /** * filter — true if the update has `videoNote` set */ export declare const hasVideoNote: Filter; /** * filter — true if the update has `voice` set */ export declare const hasVoice: Filter; /** * filter — true if the update has `voterChat` set */ export declare const hasVoterChat: Filter; /** * filter — true if the update has `webAppData` set */ export declare const hasWebAppData: Filter; /** * filter — true if the update has `writeAccessAllowed` set */ export declare const hasWriteAccessAllowed: Filter; declare function _kind(k: K): Filter; /** * filter — match a specific update kind. callable form `kind(k)` plus shorthand properties (`kind.message`, `kind.editedMessage`) */ export declare const kind: typeof _kind & { message: Filter; editedMessage: Filter; channelPost: Filter; editedChannelPost: Filter; businessConnection: Filter; businessMessage: Filter; editedBusinessMessage: Filter; deletedBusinessMessages: Filter; guestMessage: Filter; messageReaction: Filter; messageReactionCount: Filter; inlineQuery: Filter; chosenInlineResult: Filter; callbackQuery: Filter; shippingQuery: Filter; preCheckoutQuery: Filter; purchasedPaidMedia: Filter; poll: Filter; pollAnswer: Filter; myChatMember: Filter; chatMember: Filter; chatJoinRequest: Filter; chatBoost: Filter; removedChatBoost: Filter; managedBot: Filter; subscription: Filter; stoppedMessageGeneration: Filter; newChatMembers: Filter; leftChatMember: Filter; newChatTitle: Filter; newChatPhoto: Filter; deleteChatPhoto: Filter; groupChatCreated: Filter; pinnedMessage: Filter; invoice: Filter; successfulPayment: Filter; usersShared: Filter; chatShared: Filter; webAppData: Filter; videoChatScheduled: Filter; videoChatStarted: Filter; videoChatEnded: Filter; videoChatParticipantsInvited: Filter; forumTopicCreated: Filter; forumTopicEdited: Filter; forumTopicClosed: Filter; forumTopicReopened: Filter; generalForumTopicHidden: Filter; generalForumTopicUnhidden: Filter; giveawayCreated: Filter; giveawayCompleted: Filter; giveawayWinners: Filter; boostAdded: Filter; messageAutoDeleteTimerChanged: Filter; migrateToChatId: Filter; migrateFromChatId: Filter; passportData: Filter; proximityAlertTriggered: Filter; writeAccessAllowed: Filter; communityChatAdded: Filter; communityChatRemoved: Filter; }; export type ServiceActionKind = "new_chat_members" | "left_chat_member" | "new_chat_title" | "new_chat_photo" | "delete_chat_photo" | "group_chat_created" | "pinned_message" | "invoice" | "successful_payment" | "users_shared" | "chat_shared" | "web_app_data" | "video_chat_scheduled" | "video_chat_started" | "video_chat_ended" | "video_chat_participants_invited" | "forum_topic_created" | "forum_topic_edited" | "forum_topic_closed" | "forum_topic_reopened" | "general_forum_topic_hidden" | "general_forum_topic_unhidden" | "giveaway_created" | "giveaway_completed" | "giveaway_winners" | "boost_added" | "message_auto_delete_timer_changed" | "migrate_to_chat_id" | "migrate_from_chat_id" | "passport_data" | "proximity_alert_triggered" | "write_access_allowed" | "community_chat_added" | "community_chat_removed"; declare function _action(k: K): Filter; /** * filter — match a service-event update kind. shorthand for `kind` restricted to derived (Message-payload) events */ export declare const action: typeof _action & { newChatMembers: Filter; leftChatMember: Filter; newChatTitle: Filter; newChatPhoto: Filter; deleteChatPhoto: Filter; groupChatCreated: Filter; pinnedMessage: Filter; invoice: Filter; successfulPayment: Filter; usersShared: Filter; chatShared: Filter; webAppData: Filter; videoChatScheduled: Filter; videoChatStarted: Filter; videoChatEnded: Filter; videoChatParticipantsInvited: Filter; forumTopicCreated: Filter; forumTopicEdited: Filter; forumTopicClosed: Filter; forumTopicReopened: Filter; generalForumTopicHidden: Filter; generalForumTopicUnhidden: Filter; giveawayCreated: Filter; giveawayCompleted: Filter; giveawayWinners: Filter; boostAdded: Filter; messageAutoDeleteTimerChanged: Filter; migrateToChatId: Filter; migrateFromChatId: Filter; passportData: Filter; proximityAlertTriggered: Filter; writeAccessAllowed: Filter; communityChatAdded: Filter; communityChatRemoved: Filter; }; export {}; //# sourceMappingURL=filters.d.ts.map