Package dev.inmo.tgbotapi.extensions.utils

Types

SlotMachineReelImage
Link copied to clipboard
enum SlotMachineReelImage : Enum<SlotMachineReelImage>
SlotMachineResult
Link copied to clipboard
data class SlotMachineResult(rawValue: DiceResult)

Functions

aggregateFlows
Link copied to clipboard
fun <T> aggregateFlows(withScope: CoroutineScope, vararg flows: Flow<T>, internalBufferSize: Int = 64): Flow<T>

Analog of merge function for Flows. The difference is in the usage of BroadcastChannel in this case

asAddressSecureValue
Link copied to clipboard
inline fun SecureValue.asAddressSecureValue(): AddressSecureValue?
asAdministratorChatMember
Link copied to clipboard
inline fun ChatMember.asAdministratorChatMember(): AdministratorChatMember?
asAnimationContent
Link copied to clipboard
inline fun ResendableContent.asAnimationContent(): AnimationContent?
asAnimationFile
Link copied to clipboard
inline fun TelegramMediaFile.asAnimationFile(): AnimationFile?
asAnonymousGroupContentMessage
Link copied to clipboard
asAnonymousGroupContentMessageImpl
Link copied to clipboard
asAudioContent
Link copied to clipboard
inline fun ResendableContent.asAudioContent(): AudioContent?
asAudioFile
Link copied to clipboard
inline fun TelegramMediaFile.asAudioFile(): AudioFile?
asAudioMediaGroupContent
Link copied to clipboard
inline fun ResendableContent.asAudioMediaGroupContent(): AudioMediaGroupContent?
asAudioMediaGroupMemberInputMedia
Link copied to clipboard
asBankStatement
Link copied to clipboard
inline fun EncryptedPassportElement.asBankStatement(): BankStatement?
asBankStatementSecureValue
Link copied to clipboard
inline fun SecureValue.asBankStatementSecureValue(): BankStatementSecureValue?
asBannedChatMember
Link copied to clipboard
inline fun ChatMember.asBannedChatMember(): BannedChatMember?
asBaseEditMessageUpdate
Link copied to clipboard
inline fun Update.asBaseEditMessageUpdate(): BaseEditMessageUpdate?
asBaseInlineQuery
Link copied to clipboard
inline fun InlineQuery.asBaseInlineQuery(): BaseInlineQuery?
asBaseMessageUpdate
Link copied to clipboard
inline fun Update.asBaseMessageUpdate(): BaseMessageUpdate?
asBaseSentMessageUpdate
Link copied to clipboard
inline fun Update.asBaseSentMessageUpdate(): BaseSentMessageUpdate?
asBasketballDiceAnimationType
Link copied to clipboard
asBoldTextSource
Link copied to clipboard
inline fun TextSource.asBoldTextSource(): BoldTextSource?
asBot
Link copied to clipboard
inline fun Chat.asBot(): Bot?
asBotCommandTextSource
Link copied to clipboard
inline fun TextSource.asBotCommandTextSource(): BotCommandTextSource?
asBowlingDiceAnimationType
Link copied to clipboard
asCallbackQueryUpdate
Link copied to clipboard
inline fun Update.asCallbackQueryUpdate(): CallbackQueryUpdate?
asCashTagTextSource
Link copied to clipboard
inline fun TextSource.asCashTagTextSource(): CashTagTextSource?
asChannelChat
Link copied to clipboard
inline fun Chat.asChannelChat(): ChannelChat?
asChannelChatCreated
Link copied to clipboard
inline fun ChatEvent.asChannelChatCreated(): ChannelChatCreated?
asChannelContentMessage
Link copied to clipboard
inline fun Message.asChannelContentMessage(): ChannelContentMessage<MessageContent>?
asChannelContentMessageImpl
Link copied to clipboard
asChannelEvent
Link copied to clipboard
inline fun ChatEvent.asChannelEvent(): ChannelEvent?
asChannelEventMessage
Link copied to clipboard
inline fun Message.asChannelEventMessage(): ChannelEventMessage<ChannelEvent>?
asChannelMediaGroupMessage
Link copied to clipboard
asChannelPostMediaGroupUpdate
Link copied to clipboard
inline fun Update.asChannelPostMediaGroupUpdate(): ChannelPostMediaGroupUpdate?
asChannelPostUpdate
Link copied to clipboard
inline fun Update.asChannelPostUpdate(): ChannelPostUpdate?
asChatEventMessage
Link copied to clipboard
inline fun Message.asChatEventMessage(): ChatEventMessage<ChatEvent>?
asChatInviteLinkUnlimited
Link copied to clipboard
inline fun ChatInviteLink.asChatInviteLinkUnlimited(): ChatInviteLinkUnlimited?
asChatInviteLinkWithJoinRequest
Link copied to clipboard
asChatInviteLinkWithLimitedMembers
Link copied to clipboard
asChatJoinRequestUpdate
Link copied to clipboard
inline fun Update.asChatJoinRequestUpdate(): ChatJoinRequestUpdate?
asChatMemberUpdatedUpdate
Link copied to clipboard
inline fun Update.asChatMemberUpdatedUpdate(): ChatMemberUpdatedUpdate?
asChooseStickerAction
Link copied to clipboard
inline fun BotAction.asChooseStickerAction(): ChooseStickerAction?
asChosenInlineResultUpdate
Link copied to clipboard
inline fun Update.asChosenInlineResultUpdate(): ChosenInlineResultUpdate?
asCodeTextSource
Link copied to clipboard
inline fun TextSource.asCodeTextSource(): CodeTextSource?
asCommonBot
Link copied to clipboard
inline fun Chat.asCommonBot(): CommonBot?
asCommonChatMemberUpdatedUpdate
Link copied to clipboard
inline fun Update.asCommonChatMemberUpdatedUpdate(): CommonChatMemberUpdatedUpdate?
asCommonEvent
Link copied to clipboard
inline fun ChatEvent.asCommonEvent(): CommonEvent?
asCommonGroupContentMessage
Link copied to clipboard
asCommonGroupEventMessage
Link copied to clipboard
inline fun Message.asCommonGroupEventMessage(): CommonGroupEventMessage<GroupEvent>?
asCommonMediaGroupMessage
Link copied to clipboard
asCommonMessage
Link copied to clipboard
inline fun Message.asCommonMessage(): CommonMessage<MessageContent>?
asCommonPassport
Link copied to clipboard
inline fun EncryptedPassportElement.asCommonPassport(): CommonPassport?
asCommonPassportSecureValue
Link copied to clipboard
inline fun SecureValue.asCommonPassportSecureValue(): CommonPassportSecureValue?
asCommonSupergroupEventMessage
Link copied to clipboard
asCommonUser
Link copied to clipboard
inline fun Chat.asCommonUser(): CommonUser?
asContactContent
Link copied to clipboard
inline fun ResendableContent.asContactContent(): ContactContent?
asContentMessage
Link copied to clipboard
inline fun Message.asContentMessage(): ContentMessage<MessageContent>?
asCreatorChatMember
Link copied to clipboard
inline fun ChatMember.asCreatorChatMember(): CreatorChatMember?
asCubeDiceAnimationType
Link copied to clipboard
inline fun DiceAnimationType.asCubeDiceAnimationType(): CubeDiceAnimationType?
asCustomDiceAnimationType
Link copied to clipboard
inline fun DiceAnimationType.asCustomDiceAnimationType(): CustomDiceAnimationType?
asDartsDiceAnimationType
Link copied to clipboard
inline fun DiceAnimationType.asDartsDiceAnimationType(): DartsDiceAnimationType?
asDataCallbackQuery
Link copied to clipboard
inline fun CallbackQuery.asDataCallbackQuery(): DataCallbackQuery?
asDeleteChatPhoto
Link copied to clipboard
inline fun ChatEvent.asDeleteChatPhoto(): DeleteChatPhoto?
asDescribedInlineQueryResult
Link copied to clipboard
asDiceContent
Link copied to clipboard
inline fun ResendableContent.asDiceContent(): DiceContent?
asDocumentContent
Link copied to clipboard
inline fun ResendableContent.asDocumentContent(): DocumentContent?
asDocumentFile
Link copied to clipboard
inline fun TelegramMediaFile.asDocumentFile(): DocumentFile?
asDocumentMediaGroupContent
Link copied to clipboard
asDocumentMediaGroupMemberInputMedia
Link copied to clipboard
asDriverLicense
Link copied to clipboard
inline fun EncryptedPassportElement.asDriverLicense(): DriverLicense?
asDriverLicenseSecureValue
Link copied to clipboard
inline fun SecureValue.asDriverLicenseSecureValue(): DriverLicenseSecureValue?
asDuratedInputMedia
Link copied to clipboard
inline fun InputMedia.asDuratedInputMedia(): DuratedInputMedia?
asEditChannelPostMediaGroupUpdate
Link copied to clipboard
asEditChannelPostUpdate
Link copied to clipboard
inline fun Update.asEditChannelPostUpdate(): EditChannelPostUpdate?
asEditMediaGroupUpdate
Link copied to clipboard
inline fun Update.asEditMediaGroupUpdate(): EditMediaGroupUpdate?
asEditMessageMediaGroupUpdate
Link copied to clipboard
inline fun Update.asEditMessageMediaGroupUpdate(): EditMessageMediaGroupUpdate?
asEditMessageUpdate
Link copied to clipboard
inline fun Update.asEditMessageUpdate(): EditMessageUpdate?
asEmail
Link copied to clipboard
inline fun EncryptedPassportElement.asEmail(): Email?
asEMailTextSource
Link copied to clipboard
inline fun TextSource.asEMailTextSource(): EMailTextSource?
asEncryptedAddress
Link copied to clipboard
inline fun EncryptedPassportElement.asEncryptedAddress(): EncryptedAddress?
asEncryptedPersonalDetails
Link copied to clipboard
asExtendedBot
Link copied to clipboard
inline fun Chat.asExtendedBot(): ExtendedBot?
asExtendedChannelChat
Link copied to clipboard
inline fun Chat.asExtendedChannelChat(): ExtendedChannelChat?
asExtendedChat
Link copied to clipboard
inline fun Chat.asExtendedChat(): ExtendedChat?
asExtendedGroupChat
Link copied to clipboard
inline fun Chat.asExtendedGroupChat(): ExtendedGroupChat?
asExtendedPrivateChat
Link copied to clipboard
inline fun Chat.asExtendedPrivateChat(): ExtendedPrivateChat?
asExtendedPublicChat
Link copied to clipboard
inline fun Chat.asExtendedPublicChat(): ExtendedPublicChat?
asExtendedSupergroupChat
Link copied to clipboard
inline fun Chat.asExtendedSupergroupChat(): ExtendedSupergroupChat?
asFile
Link copied to clipboard
inline fun TelegramMediaFile.asFile(): File?
asFileInlineQueryResult
Link copied to clipboard
inline fun InlineQueryResult.asFileInlineQueryResult(): FileInlineQueryResult?
asFindLocationAction
Link copied to clipboard
inline fun BotAction.asFindLocationAction(): FindLocationAction?
asFootballDiceAnimationType
Link copied to clipboard
asForceReply
Link copied to clipboard
inline fun KeyboardMarkup.asForceReply(): ReplyForce?
asFromChannelGroupContentMessage
Link copied to clipboard
asFromUser
Link copied to clipboard
inline fun Any.asFromUser(): FromUser?
asFromUserMessage
Link copied to clipboard
inline fun Message.asFromUserMessage(): FromUserMessage?
asGameContent
Link copied to clipboard
inline fun ResendableContent.asGameContent(): GameContent?
asGameShortNameCallbackQuery
Link copied to clipboard
asGroupChat
Link copied to clipboard
inline fun Chat.asGroupChat(): GroupChat?
asGroupChatCreated
Link copied to clipboard
inline fun ChatEvent.asGroupChatCreated(): GroupChatCreated?
asGroupContentMessage
Link copied to clipboard
inline fun Message.asGroupContentMessage(): GroupContentMessage<MessageContent>?
asGroupEvent
Link copied to clipboard
inline fun ChatEvent.asGroupEvent(): GroupEvent?
asGroupEventMessage
Link copied to clipboard
inline fun Message.asGroupEventMessage(): GroupEventMessage<GroupEvent>?
asHashTagTextSource
Link copied to clipboard
inline fun TextSource.asHashTagTextSource(): HashTagTextSource?
asIdentityCard
Link copied to clipboard
inline fun EncryptedPassportElement.asIdentityCard(): IdentityCard?
asIdentityCardSecureValue
Link copied to clipboard
inline fun SecureValue.asIdentityCardSecureValue(): IdentityCardSecureValue?
asIdentityWithReverseSideSecureValue
Link copied to clipboard
asInlineKeyboardMarkup
Link copied to clipboard
inline fun KeyboardMarkup.asInlineKeyboardMarkup(): InlineKeyboardMarkup?
asInlineMessageIdCallbackQuery
Link copied to clipboard
asInlineMessageIdDataCallbackQuery
Link copied to clipboard
asInlineQueryResultArticle
Link copied to clipboard
asInlineQueryResultAudio
Link copied to clipboard
inline fun InlineQueryResult.asInlineQueryResultAudio(): InlineQueryResultAudio?
asInlineQueryResultAudioCached
Link copied to clipboard
asInlineQueryResultAudioCommon
Link copied to clipboard
asInlineQueryResultContact
Link copied to clipboard
asInlineQueryResultDocument
Link copied to clipboard
asInlineQueryResultDocumentCached
Link copied to clipboard
asInlineQueryResultDocumentCommon
Link copied to clipboard
asInlineQueryResultGame
Link copied to clipboard
inline fun InlineQueryResult.asInlineQueryResultGame(): InlineQueryResultGame?
asInlineQueryResultGif
Link copied to clipboard
inline fun InlineQueryResult.asInlineQueryResultGif(): InlineQueryResultGif?
asInlineQueryResultGifCached
Link copied to clipboard
asInlineQueryResultGifCommon
Link copied to clipboard
asInlineQueryResultLocation
Link copied to clipboard
asInlineQueryResultMpeg4Gif
Link copied to clipboard
asInlineQueryResultMpeg4GifCached
Link copied to clipboard
asInlineQueryResultMpeg4GifCommon
Link copied to clipboard
asInlineQueryResultPhoto
Link copied to clipboard
inline fun InlineQueryResult.asInlineQueryResultPhoto(): InlineQueryResultPhoto?
asInlineQueryResultPhotoCached
Link copied to clipboard
asInlineQueryResultPhotoCommon
Link copied to clipboard
asInlineQueryResultStickerCached
Link copied to clipboard
asInlineQueryResultVenue
Link copied to clipboard
inline fun InlineQueryResult.asInlineQueryResultVenue(): InlineQueryResultVenue?
asInlineQueryResultVideo
Link copied to clipboard
inline fun InlineQueryResult.asInlineQueryResultVideo(): InlineQueryResultVideo?
asInlineQueryResultVideoCached
Link copied to clipboard
asInlineQueryResultVideoCommon
Link copied to clipboard
asInlineQueryResultVoice
Link copied to clipboard
inline fun InlineQueryResult.asInlineQueryResultVoice(): InlineQueryResultVoice?
asInlineQueryResultVoiceCached
Link copied to clipboard
asInlineQueryResultVoiceCommon
Link copied to clipboard
asInlineQueryUpdate
Link copied to clipboard
inline fun Update.asInlineQueryUpdate(): InlineQueryUpdate?
asInputContactMessageContent
Link copied to clipboard
asInputInvoiceMessageContent
Link copied to clipboard
asInputLocationMessageContent
Link copied to clipboard
asInputMediaAnimation
Link copied to clipboard
inline fun InputMedia.asInputMediaAnimation(): InputMediaAnimation?
asInputMediaAudio
Link copied to clipboard
inline fun InputMedia.asInputMediaAudio(): InputMediaAudio?
asInputMediaDocument
Link copied to clipboard
inline fun InputMedia.asInputMediaDocument(): InputMediaDocument?
asInputMediaPhoto
Link copied to clipboard
inline fun InputMedia.asInputMediaPhoto(): InputMediaPhoto?
asInputMediaVideo
Link copied to clipboard
inline fun InputMedia.asInputMediaVideo(): InputMediaVideo?
asInputTextMessageContent
Link copied to clipboard
asInputVenueMessageContent
Link copied to clipboard
asInternalPassport
Link copied to clipboard
inline fun EncryptedPassportElement.asInternalPassport(): InternalPassport?
asInternalPassportSecureValue
Link copied to clipboard
asInvoiceContent
Link copied to clipboard
inline fun ResendableContent.asInvoiceContent(): InvoiceContent?
asItalicTextSource
Link copied to clipboard
inline fun TextSource.asItalicTextSource(): ItalicTextSource?
asKickedChatMember
Link copied to clipboard
inline fun ChatMember.asKickedChatMember(): KickedChatMember?
asLeftChatMember
Link copied to clipboard
inline fun ChatMember.asLeftChatMember(): LeftChatMember?
inline fun ChatEvent.asLeftChatMember(): LeftChatMember?
asLiveLocation
Link copied to clipboard
inline fun Location.asLiveLocation(): LiveLocation?
asLiveLocationContent
Link copied to clipboard
inline fun ResendableContent.asLiveLocationContent(): LiveLocationContent?
asLocationContent
Link copied to clipboard
inline fun ResendableContent.asLocationContent(): LocationContent?
asLocationInlineQuery
Link copied to clipboard
inline fun InlineQuery.asLocationInlineQuery(): LocationInlineQuery?
asLoginURLInlineKeyboardButton
Link copied to clipboard
asMediaCollectionContent
Link copied to clipboard
asMediaContent
Link copied to clipboard
inline fun ResendableContent.asMediaContent(): MediaContent?
asMediaGroupContent
Link copied to clipboard
inline fun ResendableContent.asMediaGroupContent(): MediaGroupContent?
asMediaGroupMemberInputMedia
Link copied to clipboard
inline fun InputMedia.asMediaGroupMemberInputMedia(): MediaGroupMemberInputMedia?
asMediaGroupMessage
Link copied to clipboard
inline fun Message.asMediaGroupMessage(): MediaGroupMessage<MediaGroupContent>?
asMediaGroupUpdate
Link copied to clipboard
inline fun Update.asMediaGroupUpdate(): MediaGroupUpdate?
asMemberChatMember
Link copied to clipboard
inline fun ChatMember.asMemberChatMember(): MemberChatMember?
asMentionTextSource
Link copied to clipboard
inline fun TextSource.asMentionTextSource(): MentionTextSource?
asMessageAutoDeleteTimerChanged
Link copied to clipboard
asMessageCallbackQuery
Link copied to clipboard
inline fun CallbackQuery.asMessageCallbackQuery(): MessageCallbackQuery?
asMessageContent
Link copied to clipboard
inline fun ResendableContent.asMessageContent(): MessageContent?
asMessageDataCallbackQuery
Link copied to clipboard
inline fun CallbackQuery.asMessageDataCallbackQuery(): MessageDataCallbackQuery?
asMessageGameShortNameCallbackQuery
Link copied to clipboard
asMessageMediaGroupUpdate
Link copied to clipboard
inline fun Update.asMessageMediaGroupUpdate(): MessageMediaGroupUpdate?
asMessageUpdate
Link copied to clipboard
inline fun Update.asMessageUpdate(): MessageUpdate?
asMigratedToSupergroup
Link copied to clipboard
inline fun ChatEvent.asMigratedToSupergroup(): MigratedToSupergroup?
asMimedMediaFile
Link copied to clipboard
inline fun TelegramMediaFile.asMimedMediaFile(): MimedMediaFile?
asMultilevelTextSource
Link copied to clipboard
inline fun TextSource.asMultilevelTextSource(): MultilevelTextSource?
asMultipleAnswersPoll
Link copied to clipboard
inline fun Poll.asMultipleAnswersPoll(): MultipleAnswersPoll?
asMyChatMemberUpdatedUpdate
Link copied to clipboard
inline fun Update.asMyChatMemberUpdatedUpdate(): MyChatMemberUpdatedUpdate?
asNewChatMembers
Link copied to clipboard
inline fun ChatEvent.asNewChatMembers(): NewChatMembers?
asNewChatPhoto
Link copied to clipboard
inline fun ChatEvent.asNewChatPhoto(): NewChatPhoto?
asNewChatTitle
Link copied to clipboard
inline fun ChatEvent.asNewChatTitle(): NewChatTitle?
asOtherDocumentsSecureValue
Link copied to clipboard
inline fun SecureValue.asOtherDocumentsSecureValue(): OtherDocumentsSecureValue?
asPassport
Link copied to clipboard
inline fun EncryptedPassportElement.asPassport(): Passport?
asPassportElementErrorDataField
Link copied to clipboard
asPassportElementErrorFile
Link copied to clipboard
asPassportElementErrorFiles
Link copied to clipboard
asPassportElementErrorFrontSide
Link copied to clipboard
asPassportElementErrorReverseSide
Link copied to clipboard
asPassportElementErrorSelfie
Link copied to clipboard
asPassportElementErrorUnspecified
Link copied to clipboard
asPassportElementFileError
Link copied to clipboard
asPassportElementFilesError
Link copied to clipboard
asPassportMessage
Link copied to clipboard
inline fun Message.asPassportMessage(): PassportMessage?
asPassportMultipleElementsError
Link copied to clipboard
asPassportRegistration
Link copied to clipboard
inline fun EncryptedPassportElement.asPassportRegistration(): PassportRegistration?
asPassportRegistrationSecureValue
Link copied to clipboard
asPassportSecureValue
Link copied to clipboard
inline fun SecureValue.asPassportSecureValue(): PassportSecureValue?
asPassportSingleElementError
Link copied to clipboard
asPathedFile
Link copied to clipboard
inline fun TelegramMediaFile.asPathedFile(): PathedFile?
asPayInlineKeyboardButton
Link copied to clipboard
asPersonalDetailsSecureValue
Link copied to clipboard
inline fun SecureValue.asPersonalDetailsSecureValue(): PersonalDetailsSecureValue?
asPhoneNumber
Link copied to clipboard
inline fun EncryptedPassportElement.asPhoneNumber(): PhoneNumber?
asPhoneNumberTextSource
Link copied to clipboard
inline fun TextSource.asPhoneNumberTextSource(): PhoneNumberTextSource?
asPhotoContent
Link copied to clipboard
inline fun ResendableContent.asPhotoContent(): PhotoContent?
asPhotoSize
Link copied to clipboard
inline fun TelegramMediaFile.asPhotoSize(): PhotoSize?
asPinnedMessage
Link copied to clipboard
inline fun ChatEvent.asPinnedMessage(): PinnedMessage?
asPlayableMediaFile
Link copied to clipboard
inline fun TelegramMediaFile.asPlayableMediaFile(): PlayableMediaFile?
asPollAnswerUpdate
Link copied to clipboard
inline fun Update.asPollAnswerUpdate(): PollAnswerUpdate?
asPollContent
Link copied to clipboard
inline fun ResendableContent.asPollContent(): PollContent?
asPollUpdate
Link copied to clipboard
inline fun Update.asPollUpdate(): PollUpdate?
asPossiblyEditedMessage
Link copied to clipboard
inline fun Message.asPossiblyEditedMessage(): PossiblyEditedMessage?
asPossiblyForwardedMessage
Link copied to clipboard
inline fun Message.asPossiblyForwardedMessage(): PossiblyForwardedMessage?
asPossiblyPaymentMessage
Link copied to clipboard
inline fun Message.asPossiblyPaymentMessage(): PossiblyPaymentMessage?
asPossiblyReplyMessage
Link copied to clipboard
inline fun Message.asPossiblyReplyMessage(): PossiblyReplyMessage?
asPossiblySentViaBotCommonMessage
Link copied to clipboard
asPreCheckoutQueryUpdate
Link copied to clipboard
inline fun Update.asPreCheckoutQueryUpdate(): PreCheckoutQueryUpdate?
asPreTextSource
Link copied to clipboard
inline fun TextSource.asPreTextSource(): PreTextSource?
asPrimaryInviteLink
Link copied to clipboard
inline fun ChatInviteLink.asPrimaryInviteLink(): PrimaryInviteLink?
asPrivateChat
Link copied to clipboard
inline fun Chat.asPrivateChat(): PrivateChat?
asPrivateContentMessage
Link copied to clipboard
inline fun Message.asPrivateContentMessage(): PrivateContentMessage<MessageContent>?
asPrivateContentMessageImpl
Link copied to clipboard
asPrivateEventMessage
Link copied to clipboard
inline fun Message.asPrivateEventMessage(): PrivateEventMessage<PrivateEvent>?
asProximityAlertTriggered
Link copied to clipboard
inline fun ChatEvent.asProximityAlertTriggered(): ProximityAlertTriggered?
asPublicChat
Link copied to clipboard
inline fun Chat.asPublicChat(): PublicChat?
asPublicChatEvent
Link copied to clipboard
inline fun ChatEvent.asPublicChatEvent(): PublicChatEvent?
asPublicContentMessage
Link copied to clipboard
inline fun Message.asPublicContentMessage(): PublicContentMessage<MessageContent>?
asQuizPoll
Link copied to clipboard
inline fun Poll.asQuizPoll(): QuizPoll?
asRecordVideoAction
Link copied to clipboard
inline fun BotAction.asRecordVideoAction(): RecordVideoAction?
asRecordVideoNoteAction
Link copied to clipboard
inline fun BotAction.asRecordVideoNoteAction(): RecordVideoNoteAction?
asRecordVoiceAction
Link copied to clipboard
inline fun BotAction.asRecordVoiceAction(): RecordVoiceAction?
asRegularPoll
Link copied to clipboard
inline fun Poll.asRegularPoll(): RegularPoll?
asRegularTextSource
Link copied to clipboard
inline fun TextSource.asRegularTextSource(): RegularTextSource?
asRentalAgreement
Link copied to clipboard
inline fun EncryptedPassportElement.asRentalAgreement(): RentalAgreement?
asRentalAgreementSecureValue
Link copied to clipboard
inline fun SecureValue.asRentalAgreementSecureValue(): RentalAgreementSecureValue?
asReplyKeyboardMarkup
Link copied to clipboard
inline fun KeyboardMarkup.asReplyKeyboardMarkup(): ReplyKeyboardMarkup?
asReplyKeyboardRemove
Link copied to clipboard
inline fun KeyboardMarkup.asReplyKeyboardRemove(): ReplyKeyboardRemove?
asRestrictedChatMember
Link copied to clipboard
inline fun ChatMember.asRestrictedChatMember(): RestrictedChatMember?
asSecondaryChatInviteLink
Link copied to clipboard
inline fun ChatInviteLink.asSecondaryChatInviteLink(): SecondaryChatInviteLink?
asSecureValueIdentity
Link copied to clipboard
inline fun SecureValue.asSecureValueIdentity(): SecureValueIdentity?
asSecureValueWithData
Link copied to clipboard
inline fun SecureValue.asSecureValueWithData(): SecureValueWithData?
asSecureValueWithFiles
Link copied to clipboard
inline fun SecureValue.asSecureValueWithFiles(): SecureValueWithFiles?
asSecureValueWithReverseSide
Link copied to clipboard
inline fun SecureValue.asSecureValueWithReverseSide(): SecureValueWithReverseSide?
asSecureValueWithTranslations
Link copied to clipboard
asSendInvoice
Link copied to clipboard
inline fun CommonSendInvoiceData.asSendInvoice(): SendInvoice?
asSentMediaGroupUpdate
Link copied to clipboard
inline fun Update.asSentMediaGroupUpdate(): SentMediaGroupUpdate?
asShippingQueryUpdate
Link copied to clipboard
inline fun Update.asShippingQueryUpdate(): ShippingQueryUpdate?
asSignedMessage
Link copied to clipboard
inline fun Message.asSignedMessage(): SignedMessage?
asSizedInlineQueryResult
Link copied to clipboard
inline fun InlineQueryResult.asSizedInlineQueryResult(): SizedInlineQueryResult?
asSizedInputMedia
Link copied to clipboard
inline fun InputMedia.asSizedInputMedia(): SizedInputMedia?
asSizedMediaFile
Link copied to clipboard
inline fun TelegramMediaFile.asSizedMediaFile(): SizedMediaFile?
asSlotMachineDiceAnimationType
Link copied to clipboard
asSpecialRightsChatMember
Link copied to clipboard
inline fun ChatMember.asSpecialRightsChatMember(): SpecialRightsChatMember?
asStaticLocation
Link copied to clipboard
inline fun Location.asStaticLocation(): StaticLocation?
asStaticLocationContent
Link copied to clipboard
inline fun ResendableContent.asStaticLocationContent(): StaticLocationContent?
asSticker
Link copied to clipboard
inline fun TelegramMediaFile.asSticker(): Sticker?
asStickerContent
Link copied to clipboard
inline fun ResendableContent.asStickerContent(): StickerContent?
asStrikethroughTextSource
Link copied to clipboard
inline fun TextSource.asStrikethroughTextSource(): StrikethroughTextSource?
asSupergroupChat
Link copied to clipboard
inline fun Chat.asSupergroupChat(): SupergroupChat?
asSupergroupChatCreated
Link copied to clipboard
inline fun ChatEvent.asSupergroupChatCreated(): SupergroupChatCreated?
asSupergroupEvent
Link copied to clipboard
inline fun ChatEvent.asSupergroupEvent(): SupergroupEvent?
asSupergroupEventMessage
Link copied to clipboard
inline fun Message.asSupergroupEventMessage(): SupergroupEventMessage<SupergroupEvent>?
asSuperPublicChat
Link copied to clipboard
inline fun Chat.asSuperPublicChat(): SuperPublicChat?
asTemporalRegistrationSecureValue
Link copied to clipboard
asTemporaryRegistration
Link copied to clipboard
asTextContent
Link copied to clipboard
inline fun ResendableContent.asTextContent(): TextContent?
asTextLinkTextSource
Link copied to clipboard
inline fun TextSource.asTextLinkTextSource(): TextLinkTextSource?
asTextMentionTextSource
Link copied to clipboard
inline fun TextSource.asTextMentionTextSource(): TextMentionTextSource?
asThumbedInlineQueryResult
Link copied to clipboard
asThumbedInputMedia
Link copied to clipboard
inline fun InputMedia.asThumbedInputMedia(): ThumbedInputMedia?
asThumbedMediaFile
Link copied to clipboard
inline fun TelegramMediaFile.asThumbedMediaFile(): ThumbedMediaFile?
asThumbSizedInlineQueryResult
Link copied to clipboard
asTitledInlineQueryResult
Link copied to clipboard
inline fun InlineQueryResult.asTitledInlineQueryResult(): TitledInlineQueryResult?
asTitledInputMedia
Link copied to clipboard
inline fun InputMedia.asTitledInputMedia(): TitledInputMedia?
asTypingAction
Link copied to clipboard
inline fun BotAction.asTypingAction(): TypingAction?
asUnderlineTextSource
Link copied to clipboard
inline fun TextSource.asUnderlineTextSource(): UnderlineTextSource?
asUnknownCallbackQueryType
Link copied to clipboard
inline fun CallbackQuery.asUnknownCallbackQueryType(): UnknownCallbackQueryType?
asUnknownChatType
Link copied to clipboard
inline fun Chat.asUnknownChatType(): UnknownChatType?
asUnknownInlineKeyboardButton
Link copied to clipboard
asUnknownMessageType
Link copied to clipboard
inline fun Message.asUnknownMessageType(): UnknownMessageType?
asUnknownPassportElementError
Link copied to clipboard
asUnknownPollType
Link copied to clipboard
inline fun Poll.asUnknownPollType(): UnknownPollType?
asUnknownUpdate
Link copied to clipboard
inline fun Update.asUnknownUpdate(): UnknownUpdate?
asUploadDocumentAction
Link copied to clipboard
inline fun BotAction.asUploadDocumentAction(): UploadDocumentAction?
asUploadPhotoAction
Link copied to clipboard
inline fun BotAction.asUploadPhotoAction(): UploadPhotoAction?
asUploadVideoAction
Link copied to clipboard
inline fun BotAction.asUploadVideoAction(): UploadVideoAction?
asUploadVideoNoteAction
Link copied to clipboard
inline fun BotAction.asUploadVideoNoteAction(): UploadVideoNoteAction?
asUploadVoiceAction
Link copied to clipboard
inline fun BotAction.asUploadVoiceAction(): UploadVoiceAction?
asURLInlineKeyboardButton
Link copied to clipboard
asUrlInlineQueryResult
Link copied to clipboard
inline fun InlineQueryResult.asUrlInlineQueryResult(): UrlInlineQueryResult?
asURLTextSource
Link copied to clipboard
inline fun TextSource.asURLTextSource(): URLTextSource?
asUser
Link copied to clipboard
inline fun Chat.asUser(): User?
asUsernameChat
Link copied to clipboard
inline fun Chat.asUsernameChat(): UsernameChat?
asUtilityBill
Link copied to clipboard
inline fun EncryptedPassportElement.asUtilityBill(): UtilityBill?
asUtilityBillSecureValue
Link copied to clipboard
inline fun SecureValue.asUtilityBillSecureValue(): UtilityBillSecureValue?
asVenueContent
Link copied to clipboard
inline fun ResendableContent.asVenueContent(): VenueContent?
asVideoContent
Link copied to clipboard
inline fun ResendableContent.asVideoContent(): VideoContent?
asVideoFile
Link copied to clipboard
inline fun TelegramMediaFile.asVideoFile(): VideoFile?
asVideoNoteContent
Link copied to clipboard
inline fun ResendableContent.asVideoNoteContent(): VideoNoteContent?
asVideoNoteFile
Link copied to clipboard
inline fun TelegramMediaFile.asVideoNoteFile(): VideoNoteFile?
asVisualMediaGroupContent
Link copied to clipboard
inline fun ResendableContent.asVisualMediaGroupContent(): VisualMediaGroupContent?
asVisualMediaGroupMemberInputMedia
Link copied to clipboard
asVoiceChatEnded
Link copied to clipboard
inline fun ChatEvent.asVoiceChatEnded(): VoiceChatEnded?
asVoiceChatEvent
Link copied to clipboard
inline fun ChatEvent.asVoiceChatEvent(): VoiceChatEvent?
asVoiceChatParticipantsInvited
Link copied to clipboard
asVoiceChatStarted
Link copied to clipboard
inline fun ChatEvent.asVoiceChatStarted(): VoiceChatStarted?
asVoiceContent
Link copied to clipboard
inline fun ResendableContent.asVoiceContent(): VoiceContent?
asVoiceFile
Link copied to clipboard
inline fun TelegramMediaFile.asVoiceFile(): VoiceFile?
asWithOptionalLanguageCode
Link copied to clipboard
inline fun Any.asWithOptionalLanguageCode(): WithOptionalLanguageCode?
asWithUser
Link copied to clipboard
inline fun Any.asWithUser(): WithUser?
calculateSlotMachineResult
Link copied to clipboard
fun Dice.calculateSlotMachineResult(): SlotMachineResult?
commonMessages
Link copied to clipboard
inline fun <C : MessageContent, T : ContentMessage<C>> Flow<T>.commonMessages(): Flow<CommonMessage<C>>

Shortcut for onlyCommonMessages

flatMap
Link copied to clipboard
fun <T> Flow<Iterable<T>>.flatMap(): Flow<T>
fun <T, R> Flow<T>.flatMap(mapper: (T) -> Iterable<R>): Flow<R>
onlyAnimationContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyAnimationContentMessages(): Flow<ContentMessage<AnimationContent>>
onlyAudioContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyAudioContentMessages(): Flow<ContentMessage<AudioContent>>
onlyCommonMessages
Link copied to clipboard
fun <C : MessageContent, T : ContentMessage<C>> Flow<T>.onlyCommonMessages(): Flow<CommonMessage<C>>

Simple factory to convert ContentMessage to a CommonMessage

onlyContactContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyContactContentMessages(): Flow<ContentMessage<ContactContent>>
onlyDiceContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyDiceContentMessages(): Flow<ContentMessage<DiceContent>>
onlyDocumentContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyDocumentContentMessages(): Flow<ContentMessage<DocumentContent>>
onlyGameContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyGameContentMessages(): Flow<ContentMessage<GameContent>>
onlyInlineMessageIdDataCallbackQueries
Link copied to clipboard
onlyInvoiceContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyInvoiceContentMessages(): Flow<ContentMessage<InvoiceContent>>
onlyLocationContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyLocationContentMessages(): Flow<ContentMessage<LocationContent>>
onlyMessageDataCallbackQueries
Link copied to clipboard
fun <T : CallbackQuery> Flow<T>.onlyMessageDataCallbackQueries(): Flow<MessageDataCallbackQuery>
onlyPhotoContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyPhotoContentMessages(): Flow<ContentMessage<PhotoContent>>
onlyPollContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyPollContentMessages(): Flow<ContentMessage<PollContent>>
onlySentViaBot
Link copied to clipboard
fun <MC : MessageContent, M : ContentMessage<MC>> Flow<M>.onlySentViaBot(): Flow<Any>

Filter the messages and checking that incoming CommonMessage is PossiblySentViaBotCommonMessage and its PossiblySentViaBotCommonMessage.senderBot is not null

onlyStickerContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyStickerContentMessages(): Flow<ContentMessage<StickerContent>>
onlyTextContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyTextContentMessages(): Flow<ContentMessage<TextContent>>
onlyVenueContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyVenueContentMessages(): Flow<ContentMessage<VenueContent>>
onlyVideoContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyVideoContentMessages(): Flow<ContentMessage<VideoContent>>
onlyVideoNoteContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyVideoNoteContentMessages(): Flow<ContentMessage<VideoNoteContent>>
onlyVoiceContentMessages
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyVoiceContentMessages(): Flow<ContentMessage<VoiceContent>>
requireAddressSecureValue
Link copied to clipboard
inline fun SecureValue.requireAddressSecureValue(): AddressSecureValue
requireAdministratorChatMember
Link copied to clipboard
inline fun ChatMember.requireAdministratorChatMember(): AdministratorChatMember
requireAnimationContent
Link copied to clipboard
inline fun ResendableContent.requireAnimationContent(): AnimationContent
requireAnimationFile
Link copied to clipboard
inline fun TelegramMediaFile.requireAnimationFile(): AnimationFile
requireAnonymousGroupContentMessage
Link copied to clipboard
requireAudioContent
Link copied to clipboard
inline fun ResendableContent.requireAudioContent(): AudioContent
requireAudioFile
Link copied to clipboard
inline fun TelegramMediaFile.requireAudioFile(): AudioFile
requireAudioMediaGroupContent
Link copied to clipboard
requireAudioMediaGroupMemberInputMedia
Link copied to clipboard
requireBankStatement
Link copied to clipboard
inline fun EncryptedPassportElement.requireBankStatement(): BankStatement
requireBankStatementSecureValue
Link copied to clipboard
requireBannedChatMember
Link copied to clipboard
inline fun ChatMember.requireBannedChatMember(): BannedChatMember
requireBaseEditMessageUpdate
Link copied to clipboard
inline fun Update.requireBaseEditMessageUpdate(): BaseEditMessageUpdate
requireBaseInlineQuery
Link copied to clipboard
inline fun InlineQuery.requireBaseInlineQuery(): BaseInlineQuery
requireBaseMessageUpdate
Link copied to clipboard
inline fun Update.requireBaseMessageUpdate(): BaseMessageUpdate
requireBaseSentMessageUpdate
Link copied to clipboard
inline fun Update.requireBaseSentMessageUpdate(): BaseSentMessageUpdate
requireBasketballDiceAnimationType
Link copied to clipboard
requireBoldTextSource
Link copied to clipboard
inline fun TextSource.requireBoldTextSource(): BoldTextSource
requireBot
Link copied to clipboard
inline fun Chat.requireBot(): Bot
requireBotCommandTextSource
Link copied to clipboard
inline fun TextSource.requireBotCommandTextSource(): BotCommandTextSource
requireBowlingDiceAnimationType
Link copied to clipboard
requireCallbackQueryUpdate
Link copied to clipboard
inline fun Update.requireCallbackQueryUpdate(): CallbackQueryUpdate
requireCashTagTextSource
Link copied to clipboard
inline fun TextSource.requireCashTagTextSource(): CashTagTextSource
requireChannelChat
Link copied to clipboard
inline fun Chat.requireChannelChat(): ChannelChat
requireChannelChatCreated
Link copied to clipboard
inline fun ChatEvent.requireChannelChatCreated(): ChannelChatCreated
requireChannelContentMessage
Link copied to clipboard
requireChannelEvent
Link copied to clipboard
inline fun ChatEvent.requireChannelEvent(): ChannelEvent
requireChannelEventMessage
Link copied to clipboard
inline fun Message.requireChannelEventMessage(): ChannelEventMessage<ChannelEvent>
requireChannelMediaGroupMessage
Link copied to clipboard
requireChannelPostMediaGroupUpdate
Link copied to clipboard
requireChannelPostUpdate
Link copied to clipboard
inline fun Update.requireChannelPostUpdate(): ChannelPostUpdate
requireChatEventMessage
Link copied to clipboard
inline fun Message.requireChatEventMessage(): ChatEventMessage<ChatEvent>
requireChatInviteLinkUnlimited
Link copied to clipboard
requireChatInviteLinkWithJoinRequest
Link copied to clipboard
requireChatJoinRequestUpdate
Link copied to clipboard
inline fun Update.requireChatJoinRequestUpdate(): ChatJoinRequestUpdate
requireChatMemberUpdatedUpdate
Link copied to clipboard
inline fun Update.requireChatMemberUpdatedUpdate(): ChatMemberUpdatedUpdate
requireChooseStickerAction
Link copied to clipboard
inline fun BotAction.requireChooseStickerAction(): ChooseStickerAction
requireChosenInlineResultUpdate
Link copied to clipboard
inline fun Update.requireChosenInlineResultUpdate(): ChosenInlineResultUpdate
requireCodeTextSource
Link copied to clipboard
inline fun TextSource.requireCodeTextSource(): CodeTextSource
requireCommonBot
Link copied to clipboard
inline fun Chat.requireCommonBot(): CommonBot
requireCommonChatMemberUpdatedUpdate
Link copied to clipboard
requireCommonEvent
Link copied to clipboard
inline fun ChatEvent.requireCommonEvent(): CommonEvent
requireCommonGroupContentMessage
Link copied to clipboard
requireCommonGroupEventMessage
Link copied to clipboard
requireCommonMediaGroupMessage
Link copied to clipboard
requireCommonMessage
Link copied to clipboard
inline fun Message.requireCommonMessage(): CommonMessage<MessageContent>
requireCommonPassport
Link copied to clipboard
inline fun EncryptedPassportElement.requireCommonPassport(): CommonPassport
requireCommonPassportSecureValue
Link copied to clipboard
requireCommonSupergroupEventMessage
Link copied to clipboard
requireCommonUser
Link copied to clipboard
inline fun Chat.requireCommonUser(): CommonUser
requireContactContent
Link copied to clipboard
inline fun ResendableContent.requireContactContent(): ContactContent
requireContentMessage
Link copied to clipboard
inline fun Message.requireContentMessage(): ContentMessage<MessageContent>
requireCreatorChatMember
Link copied to clipboard
inline fun ChatMember.requireCreatorChatMember(): CreatorChatMember
requireCubeDiceAnimationType
Link copied to clipboard
requireCustomDiceAnimationType
Link copied to clipboard
requireDartsDiceAnimationType
Link copied to clipboard
requireDataCallbackQuery
Link copied to clipboard
inline fun CallbackQuery.requireDataCallbackQuery(): DataCallbackQuery
requireDeleteChatPhoto
Link copied to clipboard
inline fun ChatEvent.requireDeleteChatPhoto(): DeleteChatPhoto
requireDescribedInlineQueryResult
Link copied to clipboard
requireDiceContent
Link copied to clipboard
inline fun ResendableContent.requireDiceContent(): DiceContent
requireDocumentContent
Link copied to clipboard
inline fun ResendableContent.requireDocumentContent(): DocumentContent
requireDocumentFile
Link copied to clipboard
inline fun TelegramMediaFile.requireDocumentFile(): DocumentFile
requireDocumentMediaGroupContent
Link copied to clipboard
requireDriverLicense
Link copied to clipboard
inline fun EncryptedPassportElement.requireDriverLicense(): DriverLicense
requireDriverLicenseSecureValue
Link copied to clipboard
requireDuratedInputMedia
Link copied to clipboard
inline fun InputMedia.requireDuratedInputMedia(): DuratedInputMedia
requireEditChannelPostMediaGroupUpdate
Link copied to clipboard
requireEditChannelPostUpdate
Link copied to clipboard
inline fun Update.requireEditChannelPostUpdate(): EditChannelPostUpdate
requireEditMediaGroupUpdate
Link copied to clipboard
inline fun Update.requireEditMediaGroupUpdate(): EditMediaGroupUpdate
requireEditMessageMediaGroupUpdate
Link copied to clipboard
requireEditMessageUpdate
Link copied to clipboard
inline fun Update.requireEditMessageUpdate(): EditMessageUpdate
requireEmail
Link copied to clipboard
inline fun EncryptedPassportElement.requireEmail(): Email
requireEMailTextSource
Link copied to clipboard
inline fun TextSource.requireEMailTextSource(): EMailTextSource
requireEncryptedAddress
Link copied to clipboard
inline fun EncryptedPassportElement.requireEncryptedAddress(): EncryptedAddress
requireEncryptedPersonalDetails
Link copied to clipboard
requireExtendedBot
Link copied to clipboard
inline fun Chat.requireExtendedBot(): ExtendedBot
requireExtendedChannelChat
Link copied to clipboard
inline fun Chat.requireExtendedChannelChat(): ExtendedChannelChat
requireExtendedChat
Link copied to clipboard
inline fun Chat.requireExtendedChat(): ExtendedChat
requireExtendedGroupChat
Link copied to clipboard
inline fun Chat.requireExtendedGroupChat(): ExtendedGroupChat
requireExtendedPrivateChat
Link copied to clipboard
inline fun Chat.requireExtendedPrivateChat(): ExtendedPrivateChat
requireExtendedPublicChat
Link copied to clipboard
inline fun Chat.requireExtendedPublicChat(): ExtendedPublicChat
requireExtendedSupergroupChat
Link copied to clipboard
inline fun Chat.requireExtendedSupergroupChat(): ExtendedSupergroupChat
requireFile
Link copied to clipboard
inline fun TelegramMediaFile.requireFile(): File
requireFileInlineQueryResult
Link copied to clipboard
requireFindLocationAction
Link copied to clipboard
inline fun BotAction.requireFindLocationAction(): FindLocationAction
requireFootballDiceAnimationType
Link copied to clipboard
requireForceReply
Link copied to clipboard
inline fun KeyboardMarkup.requireForceReply(): ReplyForce
requireFromUser
Link copied to clipboard
inline fun Any.requireFromUser(): FromUser
requireFromUserMessage
Link copied to clipboard
inline fun Message.requireFromUserMessage(): FromUserMessage
requireGameContent
Link copied to clipboard
inline fun ResendableContent.requireGameContent(): GameContent
requireGameShortNameCallbackQuery
Link copied to clipboard
requireGroupChat
Link copied to clipboard
inline fun Chat.requireGroupChat(): GroupChat
requireGroupChatCreated
Link copied to clipboard
inline fun ChatEvent.requireGroupChatCreated(): GroupChatCreated
requireGroupContentMessage
Link copied to clipboard
inline fun Message.requireGroupContentMessage(): GroupContentMessage<MessageContent>
requireGroupEvent
Link copied to clipboard
inline fun ChatEvent.requireGroupEvent(): GroupEvent
requireGroupEventMessage
Link copied to clipboard
inline fun Message.requireGroupEventMessage(): GroupEventMessage<GroupEvent>
requireHashTagTextSource
Link copied to clipboard
inline fun TextSource.requireHashTagTextSource(): HashTagTextSource
requireIdentityCard
Link copied to clipboard
inline fun EncryptedPassportElement.requireIdentityCard(): IdentityCard
requireIdentityCardSecureValue
Link copied to clipboard
inline fun SecureValue.requireIdentityCardSecureValue(): IdentityCardSecureValue
requireInlineKeyboardMarkup
Link copied to clipboard
inline fun KeyboardMarkup.requireInlineKeyboardMarkup(): InlineKeyboardMarkup
requireInlineMessageIdCallbackQuery
Link copied to clipboard
requireInlineQueryResultArticle
Link copied to clipboard
requireInlineQueryResultAudio
Link copied to clipboard
requireInlineQueryResultAudioCached
Link copied to clipboard
requireInlineQueryResultAudioCommon
Link copied to clipboard
requireInlineQueryResultContact
Link copied to clipboard
requireInlineQueryResultDocument
Link copied to clipboard
requireInlineQueryResultGame
Link copied to clipboard
requireInlineQueryResultGif
Link copied to clipboard
inline fun InlineQueryResult.requireInlineQueryResultGif(): InlineQueryResultGif
requireInlineQueryResultGifCached
Link copied to clipboard
requireInlineQueryResultGifCommon
Link copied to clipboard
requireInlineQueryResultLocation
Link copied to clipboard
requireInlineQueryResultMpeg4Gif
Link copied to clipboard
requireInlineQueryResultPhoto
Link copied to clipboard
requireInlineQueryResultPhotoCached
Link copied to clipboard
requireInlineQueryResultPhotoCommon
Link copied to clipboard
requireInlineQueryResultVenue
Link copied to clipboard
requireInlineQueryResultVideo
Link copied to clipboard
requireInlineQueryResultVideoCached
Link copied to clipboard
requireInlineQueryResultVideoCommon
Link copied to clipboard
requireInlineQueryResultVoice
Link copied to clipboard
requireInlineQueryResultVoiceCached
Link copied to clipboard
requireInlineQueryResultVoiceCommon
Link copied to clipboard
requireInlineQueryUpdate
Link copied to clipboard
inline fun Update.requireInlineQueryUpdate(): InlineQueryUpdate
requireInputContactMessageContent
Link copied to clipboard
requireInputLocationMessageContent
Link copied to clipboard
requireInputMediaAnimation
Link copied to clipboard
inline fun InputMedia.requireInputMediaAnimation(): InputMediaAnimation
requireInputMediaAudio
Link copied to clipboard
inline fun InputMedia.requireInputMediaAudio(): InputMediaAudio
requireInputMediaDocument
Link copied to clipboard
inline fun InputMedia.requireInputMediaDocument(): InputMediaDocument
requireInputMediaPhoto
Link copied to clipboard
inline fun InputMedia.requireInputMediaPhoto(): InputMediaPhoto
requireInputMediaVideo
Link copied to clipboard
inline fun InputMedia.requireInputMediaVideo(): InputMediaVideo
requireInputTextMessageContent
Link copied to clipboard
requireInputVenueMessageContent
Link copied to clipboard
requireInternalPassport
Link copied to clipboard
inline fun EncryptedPassportElement.requireInternalPassport(): InternalPassport
requireInternalPassportSecureValue
Link copied to clipboard
requireInvoiceContent
Link copied to clipboard
inline fun ResendableContent.requireInvoiceContent(): InvoiceContent
requireItalicTextSource
Link copied to clipboard
inline fun TextSource.requireItalicTextSource(): ItalicTextSource
requireKickedChatMember
Link copied to clipboard
inline fun ChatMember.requireKickedChatMember(): KickedChatMember
requireLeftChatMember
Link copied to clipboard
inline fun ChatMember.requireLeftChatMember(): LeftChatMember
inline fun ChatEvent.requireLeftChatMember(): LeftChatMember
requireLiveLocation
Link copied to clipboard
inline fun Location.requireLiveLocation(): LiveLocation
requireLiveLocationContent
Link copied to clipboard
inline fun ResendableContent.requireLiveLocationContent(): LiveLocationContent
requireLocationContent
Link copied to clipboard
inline fun ResendableContent.requireLocationContent(): LocationContent
requireLocationInlineQuery
Link copied to clipboard
inline fun InlineQuery.requireLocationInlineQuery(): LocationInlineQuery
requireMediaCollectionContent
Link copied to clipboard
requireMediaContent
Link copied to clipboard
inline fun ResendableContent.requireMediaContent(): MediaContent
requireMediaGroupContent
Link copied to clipboard
inline fun ResendableContent.requireMediaGroupContent(): MediaGroupContent
requireMediaGroupMemberInputMedia
Link copied to clipboard
requireMediaGroupMessage
Link copied to clipboard
inline fun Message.requireMediaGroupMessage(): MediaGroupMessage<MediaGroupContent>
requireMediaGroupUpdate
Link copied to clipboard
inline fun Update.requireMediaGroupUpdate(): MediaGroupUpdate
requireMemberChatMember
Link copied to clipboard
inline fun ChatMember.requireMemberChatMember(): MemberChatMember
requireMentionTextSource
Link copied to clipboard
inline fun TextSource.requireMentionTextSource(): MentionTextSource
requireMessageAutoDeleteTimerChanged
Link copied to clipboard
requireMessageCallbackQuery
Link copied to clipboard
inline fun CallbackQuery.requireMessageCallbackQuery(): MessageCallbackQuery
requireMessageContent
Link copied to clipboard
inline fun ResendableContent.requireMessageContent(): MessageContent
requireMessageDataCallbackQuery
Link copied to clipboard
requireMessageMediaGroupUpdate
Link copied to clipboard
inline fun Update.requireMessageMediaGroupUpdate(): MessageMediaGroupUpdate
requireMessageUpdate
Link copied to clipboard
inline fun Update.requireMessageUpdate(): MessageUpdate
requireMigratedToSupergroup
Link copied to clipboard
inline fun ChatEvent.requireMigratedToSupergroup(): MigratedToSupergroup
requireMimedMediaFile
Link copied to clipboard
inline fun TelegramMediaFile.requireMimedMediaFile(): MimedMediaFile
requireMultilevelTextSource
Link copied to clipboard
inline fun TextSource.requireMultilevelTextSource(): MultilevelTextSource
requireMultipleAnswersPoll
Link copied to clipboard
inline fun Poll.requireMultipleAnswersPoll(): MultipleAnswersPoll
requireMyChatMemberUpdatedUpdate
Link copied to clipboard
inline fun Update.requireMyChatMemberUpdatedUpdate(): MyChatMemberUpdatedUpdate
requireNewChatMembers
Link copied to clipboard
inline fun ChatEvent.requireNewChatMembers(): NewChatMembers
requireNewChatPhoto
Link copied to clipboard
inline fun ChatEvent.requireNewChatPhoto(): NewChatPhoto
requireNewChatTitle
Link copied to clipboard
inline fun ChatEvent.requireNewChatTitle(): NewChatTitle
requireOtherDocumentsSecureValue
Link copied to clipboard
requirePassport
Link copied to clipboard
inline fun EncryptedPassportElement.requirePassport(): Passport
requirePassportElementErrorFile
Link copied to clipboard
requirePassportElementErrorFiles
Link copied to clipboard
requirePassportElementErrorSelfie
Link copied to clipboard
requirePassportElementFileError
Link copied to clipboard
requirePassportElementFilesError
Link copied to clipboard
requirePassportMessage
Link copied to clipboard
inline fun Message.requirePassportMessage(): PassportMessage
requirePassportRegistration
Link copied to clipboard
requirePassportSecureValue
Link copied to clipboard
inline fun SecureValue.requirePassportSecureValue(): PassportSecureValue
requirePassportSingleElementError
Link copied to clipboard
requirePathedFile
Link copied to clipboard
inline fun TelegramMediaFile.requirePathedFile(): PathedFile
requirePayInlineKeyboardButton
Link copied to clipboard
requirePersonalDetailsSecureValue
Link copied to clipboard
requirePhoneNumber
Link copied to clipboard
inline fun EncryptedPassportElement.requirePhoneNumber(): PhoneNumber
requirePhoneNumberTextSource
Link copied to clipboard
inline fun TextSource.requirePhoneNumberTextSource(): PhoneNumberTextSource
requirePhotoContent
Link copied to clipboard
inline fun ResendableContent.requirePhotoContent(): PhotoContent
requirePhotoSize
Link copied to clipboard
inline fun TelegramMediaFile.requirePhotoSize(): PhotoSize
requirePinnedMessage
Link copied to clipboard
inline fun ChatEvent.requirePinnedMessage(): PinnedMessage
requirePlayableMediaFile
Link copied to clipboard
inline fun TelegramMediaFile.requirePlayableMediaFile(): PlayableMediaFile
requirePollAnswerUpdate
Link copied to clipboard
inline fun Update.requirePollAnswerUpdate(): PollAnswerUpdate
requirePollContent
Link copied to clipboard
inline fun ResendableContent.requirePollContent(): PollContent
requirePollUpdate
Link copied to clipboard
inline fun Update.requirePollUpdate(): PollUpdate
requirePossiblyEditedMessage
Link copied to clipboard
inline fun Message.requirePossiblyEditedMessage(): PossiblyEditedMessage
requirePossiblyForwardedMessage
Link copied to clipboard
inline fun Message.requirePossiblyForwardedMessage(): PossiblyForwardedMessage
requirePossiblyPaymentMessage
Link copied to clipboard
inline fun Message.requirePossiblyPaymentMessage(): PossiblyPaymentMessage
requirePossiblyReplyMessage
Link copied to clipboard
inline fun Message.requirePossiblyReplyMessage(): PossiblyReplyMessage
requirePreCheckoutQueryUpdate
Link copied to clipboard
inline fun Update.requirePreCheckoutQueryUpdate(): PreCheckoutQueryUpdate
requirePreTextSource
Link copied to clipboard
inline fun TextSource.requirePreTextSource(): PreTextSource
requirePrimaryInviteLink
Link copied to clipboard
inline fun ChatInviteLink.requirePrimaryInviteLink(): PrimaryInviteLink
requirePrivateChat
Link copied to clipboard
inline fun Chat.requirePrivateChat(): PrivateChat
requirePrivateContentMessage
Link copied to clipboard
requirePrivateContentMessageImpl
Link copied to clipboard
requirePrivateEventMessage
Link copied to clipboard
inline fun Message.requirePrivateEventMessage(): PrivateEventMessage<PrivateEvent>
requireProximityAlertTriggered
Link copied to clipboard
inline fun ChatEvent.requireProximityAlertTriggered(): ProximityAlertTriggered
requirePublicChat
Link copied to clipboard
inline fun Chat.requirePublicChat(): PublicChat
requirePublicChatEvent
Link copied to clipboard
inline fun ChatEvent.requirePublicChatEvent(): PublicChatEvent
requirePublicContentMessage
Link copied to clipboard
requireQuizPoll
Link copied to clipboard
inline fun Poll.requireQuizPoll(): QuizPoll
requireRecordVideoAction
Link copied to clipboard
inline fun BotAction.requireRecordVideoAction(): RecordVideoAction
requireRecordVideoNoteAction
Link copied to clipboard
inline fun BotAction.requireRecordVideoNoteAction(): RecordVideoNoteAction
requireRecordVoiceAction
Link copied to clipboard
inline fun BotAction.requireRecordVoiceAction(): RecordVoiceAction
requireRegularPoll
Link copied to clipboard
inline fun Poll.requireRegularPoll(): RegularPoll
requireRegularTextSource
Link copied to clipboard
inline fun TextSource.requireRegularTextSource(): RegularTextSource
requireRentalAgreement
Link copied to clipboard
inline fun EncryptedPassportElement.requireRentalAgreement(): RentalAgreement
requireRentalAgreementSecureValue
Link copied to clipboard
requireReplyKeyboardMarkup
Link copied to clipboard
inline fun KeyboardMarkup.requireReplyKeyboardMarkup(): ReplyKeyboardMarkup
requireReplyKeyboardRemove
Link copied to clipboard
inline fun KeyboardMarkup.requireReplyKeyboardRemove(): ReplyKeyboardRemove
requireRestrictedChatMember
Link copied to clipboard
inline fun ChatMember.requireRestrictedChatMember(): RestrictedChatMember
requireSecondaryChatInviteLink
Link copied to clipboard
requireSecureValueIdentity
Link copied to clipboard
inline fun SecureValue.requireSecureValueIdentity(): SecureValueIdentity
requireSecureValueWithData
Link copied to clipboard
inline fun SecureValue.requireSecureValueWithData(): SecureValueWithData
requireSecureValueWithFiles
Link copied to clipboard
inline fun SecureValue.requireSecureValueWithFiles(): SecureValueWithFiles
requireSecureValueWithReverseSide
Link copied to clipboard
requireSecureValueWithTranslations
Link copied to clipboard
requireSentMediaGroupUpdate
Link copied to clipboard
inline fun Update.requireSentMediaGroupUpdate(): SentMediaGroupUpdate
requireShippingQueryUpdate
Link copied to clipboard
inline fun Update.requireShippingQueryUpdate(): ShippingQueryUpdate
requireSignedMessage
Link copied to clipboard
inline fun Message.requireSignedMessage(): SignedMessage
requireSizedInlineQueryResult
Link copied to clipboard
requireSizedInputMedia
Link copied to clipboard
inline fun InputMedia.requireSizedInputMedia(): SizedInputMedia
requireSizedMediaFile
Link copied to clipboard
inline fun TelegramMediaFile.requireSizedMediaFile(): SizedMediaFile
requireSlotMachineDiceAnimationType
Link copied to clipboard
requireSpecialRightsChatMember
Link copied to clipboard
inline fun ChatMember.requireSpecialRightsChatMember(): SpecialRightsChatMember
requireStaticLocation
Link copied to clipboard
inline fun Location.requireStaticLocation(): StaticLocation
requireStaticLocationContent
Link copied to clipboard
requireSticker
Link copied to clipboard
inline fun TelegramMediaFile.requireSticker(): Sticker
requireStickerContent
Link copied to clipboard
inline fun ResendableContent.requireStickerContent(): StickerContent
requireStrikethroughTextSource
Link copied to clipboard
inline fun TextSource.requireStrikethroughTextSource(): StrikethroughTextSource
requireSupergroupChat
Link copied to clipboard
inline fun Chat.requireSupergroupChat(): SupergroupChat
requireSupergroupChatCreated
Link copied to clipboard
inline fun ChatEvent.requireSupergroupChatCreated(): SupergroupChatCreated
requireSupergroupEvent
Link copied to clipboard
inline fun ChatEvent.requireSupergroupEvent(): SupergroupEvent
requireSupergroupEventMessage
Link copied to clipboard
requireSuperPublicChat
Link copied to clipboard
inline fun Chat.requireSuperPublicChat(): SuperPublicChat
requireTemporaryRegistration
Link copied to clipboard
requireTextContent
Link copied to clipboard
inline fun ResendableContent.requireTextContent(): TextContent
requireTextLinkTextSource
Link copied to clipboard
inline fun TextSource.requireTextLinkTextSource(): TextLinkTextSource
requireTextMentionTextSource
Link copied to clipboard
inline fun TextSource.requireTextMentionTextSource(): TextMentionTextSource
requireThumbedInlineQueryResult
Link copied to clipboard
requireThumbedInputMedia
Link copied to clipboard
inline fun InputMedia.requireThumbedInputMedia(): ThumbedInputMedia
requireThumbedMediaFile
Link copied to clipboard
inline fun TelegramMediaFile.requireThumbedMediaFile(): ThumbedMediaFile
requireThumbSizedInlineQueryResult
Link copied to clipboard
requireTitledInlineQueryResult
Link copied to clipboard
requireTitledInputMedia
Link copied to clipboard
inline fun InputMedia.requireTitledInputMedia(): TitledInputMedia
requireTypingAction
Link copied to clipboard
inline fun BotAction.requireTypingAction(): TypingAction
requireUnderlineTextSource
Link copied to clipboard
inline fun TextSource.requireUnderlineTextSource(): UnderlineTextSource
requireUnknownCallbackQueryType
Link copied to clipboard
requireUnknownChatType
Link copied to clipboard
inline fun Chat.requireUnknownChatType(): UnknownChatType
requireUnknownInlineKeyboardButton
Link copied to clipboard
requireUnknownMessageType
Link copied to clipboard
inline fun Message.requireUnknownMessageType(): UnknownMessageType
requireUnknownPassportElementError
Link copied to clipboard
requireUnknownPollType
Link copied to clipboard
inline fun Poll.requireUnknownPollType(): UnknownPollType
requireUnknownUpdate
Link copied to clipboard
inline fun Update.requireUnknownUpdate(): UnknownUpdate
requireUploadDocumentAction
Link copied to clipboard
inline fun BotAction.requireUploadDocumentAction(): UploadDocumentAction
requireUploadPhotoAction
Link copied to clipboard
inline fun BotAction.requireUploadPhotoAction(): UploadPhotoAction
requireUploadVideoAction
Link copied to clipboard
inline fun BotAction.requireUploadVideoAction(): UploadVideoAction
requireUploadVideoNoteAction
Link copied to clipboard
inline fun BotAction.requireUploadVideoNoteAction(): UploadVideoNoteAction
requireUploadVoiceAction
Link copied to clipboard
inline fun BotAction.requireUploadVoiceAction(): UploadVoiceAction
requireURLInlineKeyboardButton
Link copied to clipboard
requireUrlInlineQueryResult
Link copied to clipboard
inline fun InlineQueryResult.requireUrlInlineQueryResult(): UrlInlineQueryResult
requireURLTextSource
Link copied to clipboard
inline fun TextSource.requireURLTextSource(): URLTextSource
requireUser
Link copied to clipboard
inline fun Chat.requireUser(): User
requireUsernameChat
Link copied to clipboard
inline fun Chat.requireUsernameChat(): UsernameChat
requireUtilityBill
Link copied to clipboard
inline fun EncryptedPassportElement.requireUtilityBill(): UtilityBill
requireUtilityBillSecureValue
Link copied to clipboard
inline fun SecureValue.requireUtilityBillSecureValue(): UtilityBillSecureValue
requireVenueContent
Link copied to clipboard
inline fun ResendableContent.requireVenueContent(): VenueContent
requireVideoContent
Link copied to clipboard
inline fun ResendableContent.requireVideoContent(): VideoContent
requireVideoFile
Link copied to clipboard
inline fun TelegramMediaFile.requireVideoFile(): VideoFile
requireVideoNoteContent
Link copied to clipboard
inline fun ResendableContent.requireVideoNoteContent(): VideoNoteContent
requireVideoNoteFile
Link copied to clipboard
inline fun TelegramMediaFile.requireVideoNoteFile(): VideoNoteFile
requireVisualMediaGroupContent
Link copied to clipboard
requireVoiceChatEnded
Link copied to clipboard
inline fun ChatEvent.requireVoiceChatEnded(): VoiceChatEnded
requireVoiceChatEvent
Link copied to clipboard
inline fun ChatEvent.requireVoiceChatEvent(): VoiceChatEvent
requireVoiceChatParticipantsInvited
Link copied to clipboard
requireVoiceChatStarted
Link copied to clipboard
inline fun ChatEvent.requireVoiceChatStarted(): VoiceChatStarted
requireVoiceContent
Link copied to clipboard
inline fun ResendableContent.requireVoiceContent(): VoiceContent
requireVoiceFile
Link copied to clipboard
inline fun TelegramMediaFile.requireVoiceFile(): VoiceFile
requireWithContent
Link copied to clipboard
inline fun <T : MessageContent> ChannelContentMessage<*>.requireWithContent(): ChannelContentMessage<T>
inline fun <T : MessageContent> CommonMessage<*>.requireWithContent(): CommonMessage<T>
inline fun <T : MessageContent> ContentMessage<*>.requireWithContent(): ContentMessage<T>
inline fun <T : MessageContent> GroupContentMessage<*>.requireWithContent(): GroupContentMessage<T>
inline fun <T : MediaGroupContent> MediaGroupMessage<*>.requireWithContent(): MediaGroupMessage<T>
inline fun <T : MessageContent> PrivateContentMessage<*>.requireWithContent(): PrivateContentMessage<T>
inline fun <T : MessageContent> PublicContentMessage<*>.requireWithContent(): PublicContentMessage<T>
requireWithOptionalLanguageCode
Link copied to clipboard
inline fun Any.requireWithOptionalLanguageCode(): WithOptionalLanguageCode
requireWithUser
Link copied to clipboard
inline fun Any.requireWithUser(): WithUser
whenAddressSecureValue
Link copied to clipboard
inline fun <T> SecureValue.whenAddressSecureValue(block: (AddressSecureValue) -> T): T?
whenAdministratorChatMember
Link copied to clipboard
inline fun <T> ChatMember.whenAdministratorChatMember(block: (AdministratorChatMember) -> T): T?
whenAnimationContent
Link copied to clipboard
inline fun <T> ResendableContent.whenAnimationContent(block: (AnimationContent) -> T): T?
whenAnimationFile
Link copied to clipboard
inline fun <T> TelegramMediaFile.whenAnimationFile(block: (AnimationFile) -> T): T?
whenAnonymousGroupContentMessage
Link copied to clipboard
inline fun <T> Message.whenAnonymousGroupContentMessage(block: (AnonymousGroupContentMessage<MessageContent>) -> T): T?
whenAnonymousGroupContentMessageImpl
Link copied to clipboard
inline fun <T> Message.whenAnonymousGroupContentMessageImpl(block: (AnonymousGroupContentMessageImpl<MessageContent>) -> T): T?
whenAudioContent
Link copied to clipboard
inline fun <T> ResendableContent.whenAudioContent(block: (AudioContent) -> T): T?
whenAudioFile
Link copied to clipboard
inline fun <T> TelegramMediaFile.whenAudioFile(block: (AudioFile) -> T): T?
whenAudioMediaGroupContent
Link copied to clipboard
inline fun <T> ResendableContent.whenAudioMediaGroupContent(block: (AudioMediaGroupContent) -> T): T?
whenAudioMediaGroupMemberInputMedia
Link copied to clipboard
inline fun <T> InputMedia.whenAudioMediaGroupMemberInputMedia(block: (AudioMediaGroupMemberInputMedia) -> T): T?
whenBankStatement
Link copied to clipboard
inline fun <T> EncryptedPassportElement.whenBankStatement(block: (BankStatement) -> T): T?
whenBankStatementSecureValue
Link copied to clipboard
inline fun <T> SecureValue.whenBankStatementSecureValue(block: (BankStatementSecureValue) -> T): T?
whenBannedChatMember
Link copied to clipboard
inline fun <T> ChatMember.whenBannedChatMember(block: (BannedChatMember) -> T): T?
whenBaseEditMessageUpdate
Link copied to clipboard
inline fun <T> Update.whenBaseEditMessageUpdate(block: (BaseEditMessageUpdate) -> T): T?
whenBaseInlineQuery
Link copied to clipboard
inline fun <T> InlineQuery.whenBaseInlineQuery(block: (BaseInlineQuery) -> T): T?
whenBaseMessageUpdate
Link copied to clipboard
inline fun <T> Update.whenBaseMessageUpdate(block: (BaseMessageUpdate) -> T): T?
whenBaseSentMessageUpdate
Link copied to clipboard
inline fun <T> Update.whenBaseSentMessageUpdate(block: (BaseSentMessageUpdate) -> T): T?
whenBasketballDiceAnimationType
Link copied to clipboard
inline fun <T> DiceAnimationType.whenBasketballDiceAnimationType(block: (BasketballDiceAnimationType) -> T): T?
whenBoldTextSource
Link copied to clipboard
inline fun <T> TextSource.whenBoldTextSource(block: (BoldTextSource) -> T): T?
whenBot
Link copied to clipboard
inline fun <T> Chat.whenBot(block: (Bot) -> T): T?
whenBotCommandTextSource
Link copied to clipboard
inline fun <T> TextSource.whenBotCommandTextSource(block: (BotCommandTextSource) -> T): T?
whenBowlingDiceAnimationType
Link copied to clipboard
inline fun <T> DiceAnimationType.whenBowlingDiceAnimationType(block: (BowlingDiceAnimationType) -> T): T?
whenCallbackDataInlineKeyboardButton
Link copied to clipboard
whenCallbackGameInlineKeyboardButton
Link copied to clipboard
whenCallbackQueryUpdate
Link copied to clipboard
inline fun <T> Update.whenCallbackQueryUpdate(block: (CallbackQueryUpdate) -> T): T?
whenCashTagTextSource
Link copied to clipboard
inline fun <T> TextSource.whenCashTagTextSource(block: (CashTagTextSource) -> T): T?
whenChannelChat
Link copied to clipboard
inline fun <T> Chat.whenChannelChat(block: (ChannelChat) -> T): T?
whenChannelChatCreated
Link copied to clipboard
inline fun <T> ChatEvent.whenChannelChatCreated(block: (ChannelChatCreated) -> T): T?
whenChannelContentMessage
Link copied to clipboard
inline fun <T> Message.whenChannelContentMessage(block: (ChannelContentMessage<MessageContent>) -> T): T?
whenChannelContentMessageImpl
Link copied to clipboard
whenChannelEvent
Link copied to clipboard
inline fun <T> ChatEvent.whenChannelEvent(block: (ChannelEvent) -> T): T?
whenChannelEventMessage
Link copied to clipboard
inline fun <T> Message.whenChannelEventMessage(block: (ChannelEventMessage<ChannelEvent>) -> T): T?
whenChannelMediaGroupMessage
Link copied to clipboard
inline fun <T> Message.whenChannelMediaGroupMessage(block: (ChannelMediaGroupMessage<MediaGroupContent>) -> T): T?
whenChannelPostMediaGroupUpdate
Link copied to clipboard
inline fun <T> Update.whenChannelPostMediaGroupUpdate(block: (ChannelPostMediaGroupUpdate) -> T): T?
whenChannelPostUpdate
Link copied to clipboard
inline fun <T> Update.whenChannelPostUpdate(block: (ChannelPostUpdate) -> T): T?
whenChatEventMessage
Link copied to clipboard
inline fun <T> Message.whenChatEventMessage(block: (ChatEventMessage<ChatEvent>) -> T): T?
whenChatInviteLinkUnlimited
Link copied to clipboard
inline fun <T> ChatInviteLink.whenChatInviteLinkUnlimited(block: (ChatInviteLinkUnlimited) -> T): T?
whenChatInviteLinkWithJoinRequest
Link copied to clipboard
inline fun <T> ChatInviteLink.whenChatInviteLinkWithJoinRequest(block: (ChatInviteLinkWithJoinRequest) -> T): T?
whenChatInviteLinkWithLimitedMembers
Link copied to clipboard
inline fun <T> ChatInviteLink.whenChatInviteLinkWithLimitedMembers(block: (ChatInviteLinkWithLimitedMembers) -> T): T?
whenChatJoinRequestUpdate
Link copied to clipboard
inline fun <T> Update.whenChatJoinRequestUpdate(block: (ChatJoinRequestUpdate) -> T): T?
whenChatMemberUpdatedUpdate
Link copied to clipboard
inline fun <T> Update.whenChatMemberUpdatedUpdate(block: (ChatMemberUpdatedUpdate) -> T): T?
whenChooseStickerAction
Link copied to clipboard
inline fun <T> BotAction.whenChooseStickerAction(block: (ChooseStickerAction) -> T): T?
whenChosenInlineResultUpdate
Link copied to clipboard
inline fun <T> Update.whenChosenInlineResultUpdate(block: (ChosenInlineResultUpdate) -> T): T?
whenCodeTextSource
Link copied to clipboard
inline fun <T> TextSource.whenCodeTextSource(block: (CodeTextSource) -> T): T?
whenCommonBot
Link copied to clipboard
inline fun <T> Chat.whenCommonBot(block: (CommonBot) -> T): T?
whenCommonChatMemberUpdatedUpdate
Link copied to clipboard
inline fun <T> Update.whenCommonChatMemberUpdatedUpdate(block: (CommonChatMemberUpdatedUpdate) -> T): T?
whenCommonEvent
Link copied to clipboard
inline fun <T> ChatEvent.whenCommonEvent(block: (CommonEvent) -> T): T?
whenCommonGroupContentMessage
Link copied to clipboard
inline fun <T> Message.whenCommonGroupContentMessage(block: (CommonGroupContentMessage<MessageContent>) -> T): T?
whenCommonGroupEventMessage
Link copied to clipboard
inline fun <T> Message.whenCommonGroupEventMessage(block: (CommonGroupEventMessage<GroupEvent>) -> T): T?
whenCommonMediaGroupMessage
Link copied to clipboard
inline fun <T> Message.whenCommonMediaGroupMessage(block: (CommonMediaGroupMessage<MediaGroupContent>) -> T): T?
whenCommonMessage
Link copied to clipboard
inline fun <T> Message.whenCommonMessage(block: (CommonMessage<MessageContent>) -> T): T?
whenCommonPassport
Link copied to clipboard
inline fun <T> EncryptedPassportElement.whenCommonPassport(block: (CommonPassport) -> T): T?
whenCommonPassportSecureValue
Link copied to clipboard
inline fun <T> SecureValue.whenCommonPassportSecureValue(block: (CommonPassportSecureValue) -> T): T?
whenCommonSupergroupEventMessage
Link copied to clipboard
inline fun <T> Message.whenCommonSupergroupEventMessage(block: (CommonSupergroupEventMessage<SupergroupEvent>) -> T): T?
whenCommonUser
Link copied to clipboard
inline fun <T> Chat.whenCommonUser(block: (CommonUser) -> T): T?
whenContactContent
Link copied to clipboard
inline fun <T> ResendableContent.whenContactContent(block: (ContactContent) -> T): T?
whenContentMessage
Link copied to clipboard
inline fun <T> Message.whenContentMessage(block: (ContentMessage<MessageContent>) -> T): T?
whenCreatorChatMember
Link copied to clipboard
inline fun <T> ChatMember.whenCreatorChatMember(block: (CreatorChatMember) -> T): T?
whenCubeDiceAnimationType
Link copied to clipboard
inline fun <T> DiceAnimationType.whenCubeDiceAnimationType(block: (CubeDiceAnimationType) -> T): T?
whenCustomDiceAnimationType
Link copied to clipboard
inline fun <T> DiceAnimationType.whenCustomDiceAnimationType(block: (CustomDiceAnimationType) -> T): T?
whenDartsDiceAnimationType
Link copied to clipboard
inline fun <T> DiceAnimationType.whenDartsDiceAnimationType(block: (DartsDiceAnimationType) -> T): T?
whenDataCallbackQuery
Link copied to clipboard
inline fun <T> CallbackQuery.whenDataCallbackQuery(block: (DataCallbackQuery) -> T): T?
whenDeleteChatPhoto
Link copied to clipboard
inline fun <T> ChatEvent.whenDeleteChatPhoto(block: (DeleteChatPhoto) -> T): T?
whenDescribedInlineQueryResult
Link copied to clipboard
inline fun <T> InlineQueryResult.whenDescribedInlineQueryResult(block: (DescribedInlineQueryResult) -> T): T?
whenDiceContent
Link copied to clipboard
inline fun <T> ResendableContent.whenDiceContent(block: (DiceContent) -> T): T?
whenDocumentContent
Link copied to clipboard
inline fun <T> ResendableContent.whenDocumentContent(block: (DocumentContent) -> T): T?
whenDocumentFile
Link copied to clipboard
inline fun <T> TelegramMediaFile.whenDocumentFile(block: (DocumentFile) -> T): T?
whenDocumentMediaGroupContent
Link copied to clipboard
inline fun <T> ResendableContent.whenDocumentMediaGroupContent(block: (DocumentMediaGroupContent) -> T): T?
whenDocumentMediaGroupMemberInputMedia
Link copied to clipboard
inline fun <T> InputMedia.whenDocumentMediaGroupMemberInputMedia(block: (DocumentMediaGroupMemberInputMedia) -> T): T?
whenDriverLicense
Link copied to clipboard
inline fun <T> EncryptedPassportElement.whenDriverLicense(block: (DriverLicense) -> T): T?
whenDriverLicenseSecureValue
Link copied to clipboard
inline fun <T> SecureValue.whenDriverLicenseSecureValue(block: (DriverLicenseSecureValue) -> T): T?
whenDuratedInputMedia
Link copied to clipboard
inline fun <T> InputMedia.whenDuratedInputMedia(block: (DuratedInputMedia) -> T): T?
whenEditChannelPostMediaGroupUpdate
Link copied to clipboard
inline fun <T> Update.whenEditChannelPostMediaGroupUpdate(block: (EditChannelPostMediaGroupUpdate) -> T): T?
whenEditChannelPostUpdate
Link copied to clipboard
inline fun <T> Update.whenEditChannelPostUpdate(block: (EditChannelPostUpdate) -> T): T?
whenEditMediaGroupUpdate
Link copied to clipboard
inline fun <T> Update.whenEditMediaGroupUpdate(block: (EditMediaGroupUpdate) -> T): T?
whenEditMessageMediaGroupUpdate
Link copied to clipboard
inline fun <T> Update.whenEditMessageMediaGroupUpdate(block: (EditMessageMediaGroupUpdate) -> T): T?
whenEditMessageUpdate
Link copied to clipboard
inline fun <T> Update.whenEditMessageUpdate(block: (EditMessageUpdate) -> T): T?
whenEmail
Link copied to clipboard
inline fun <T> EncryptedPassportElement.whenEmail(block: (Email) -> T): T?
whenEMailTextSource
Link copied to clipboard
inline fun <T> TextSource.whenEMailTextSource(block: (EMailTextSource) -> T): T?
whenEncryptedAddress
Link copied to clipboard
inline fun <T> EncryptedPassportElement.whenEncryptedAddress(block: (EncryptedAddress) -> T): T?
whenEncryptedPassportElementWithData
Link copied to clipboard
whenEncryptedPassportElementWithEmail
Link copied to clipboard
whenEncryptedPassportElementWithSelfie
Link copied to clipboard
whenEncryptedPersonalDetails
Link copied to clipboard
inline fun <T> EncryptedPassportElement.whenEncryptedPersonalDetails(block: (EncryptedPersonalDetails) -> T): T?
whenExtendedBot
Link copied to clipboard
inline fun <T> Chat.whenExtendedBot(block: (ExtendedBot) -> T): T?
whenExtendedChannelChat
Link copied to clipboard
inline fun <T> Chat.whenExtendedChannelChat(block: (ExtendedChannelChat) -> T): T?
whenExtendedChat
Link copied to clipboard
inline fun <T> Chat.whenExtendedChat(block: (ExtendedChat) -> T): T?
whenExtendedGroupChat
Link copied to clipboard
inline fun <T> Chat.whenExtendedGroupChat(block: (ExtendedGroupChat) -> T): T?
whenExtendedPrivateChat
Link copied to clipboard
inline fun <T> Chat.whenExtendedPrivateChat(block: (ExtendedPrivateChat) -> T): T?
whenExtendedPublicChat
Link copied to clipboard
inline fun <T> Chat.whenExtendedPublicChat(block: (ExtendedPublicChat) -> T): T?
whenExtendedSupergroupChat
Link copied to clipboard
inline fun <T> Chat.whenExtendedSupergroupChat(block: (ExtendedSupergroupChat) -> T): T?
whenFile
Link copied to clipboard
inline fun <T> TelegramMediaFile.whenFile(block: (File) -> T): T?
whenFileInlineQueryResult
Link copied to clipboard
inline fun <T> InlineQueryResult.whenFileInlineQueryResult(block: (FileInlineQueryResult) -> T): T?
whenFindLocationAction
Link copied to clipboard
inline fun <T> BotAction.whenFindLocationAction(block: (FindLocationAction) -> T): T?
whenFootballDiceAnimationType
Link copied to clipboard
inline fun <T> DiceAnimationType.whenFootballDiceAnimationType(block: (FootballDiceAnimationType) -> T): T?
whenForceReply
Link copied to clipboard
inline fun <T> KeyboardMarkup.whenForceReply(block: (ReplyForce) -> T): T?
whenFromChannelGroupContentMessage
Link copied to clipboard
inline fun <T> Message.whenFromChannelGroupContentMessage(block: (FromChannelGroupContentMessage<MessageContent>) -> T): T?
whenFromUser
Link copied to clipboard
inline fun <T> Any.whenFromUser(block: (FromUser) -> T): T?
whenFromUserMessage
Link copied to clipboard
inline fun <T> Message.whenFromUserMessage(block: (FromUserMessage) -> T): T?
whenGameContent
Link copied to clipboard
inline fun <T> ResendableContent.whenGameContent(block: (GameContent) -> T): T?
whenGameShortNameCallbackQuery
Link copied to clipboard
inline fun <T> CallbackQuery.whenGameShortNameCallbackQuery(block: (GameShortNameCallbackQuery) -> T): T?
whenGroupChat
Link copied to clipboard
inline fun <T> Chat.whenGroupChat(block: (GroupChat) -> T): T?
whenGroupChatCreated
Link copied to clipboard
inline fun <T> ChatEvent.whenGroupChatCreated(block: (GroupChatCreated) -> T): T?
whenGroupContentMessage
Link copied to clipboard
inline fun <T> Message.whenGroupContentMessage(block: (GroupContentMessage<MessageContent>) -> T): T?
whenGroupEvent
Link copied to clipboard
inline fun <T> ChatEvent.whenGroupEvent(block: (GroupEvent) -> T): T?
whenGroupEventMessage
Link copied to clipboard
inline fun <T> Message.whenGroupEventMessage(block: (GroupEventMessage<GroupEvent>) -> T): T?
whenHashTagTextSource
Link copied to clipboard
inline fun <T> TextSource.whenHashTagTextSource(block: (HashTagTextSource) -> T): T?
whenIdentityCard
Link copied to clipboard
inline fun <T> EncryptedPassportElement.whenIdentityCard(block: (IdentityCard) -> T): T?
whenIdentityCardSecureValue
Link copied to clipboard
inline fun <T> SecureValue.whenIdentityCardSecureValue(block: (IdentityCardSecureValue) -> T): T?
whenIdentityWithReverseSideSecureValue
Link copied to clipboard
inline fun <T> SecureValue.whenIdentityWithReverseSideSecureValue(block: (IdentityWithReverseSideSecureValue) -> T): T?
whenInlineKeyboardMarkup
Link copied to clipboard
inline fun <T> KeyboardMarkup.whenInlineKeyboardMarkup(block: (InlineKeyboardMarkup) -> T): T?
whenInlineMessageIdCallbackQuery
Link copied to clipboard
inline fun <T> CallbackQuery.whenInlineMessageIdCallbackQuery(block: (InlineMessageIdCallbackQuery) -> T): T?
whenInlineMessageIdDataCallbackQuery
Link copied to clipboard
inline fun <T> CallbackQuery.whenInlineMessageIdDataCallbackQuery(block: (InlineMessageIdDataCallbackQuery) -> T): T?
whenInlineQueryResultArticle
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultArticle(block: (InlineQueryResultArticle) -> T): T?
whenInlineQueryResultAudio
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultAudio(block: (InlineQueryResultAudio) -> T): T?
whenInlineQueryResultAudioCached
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultAudioCached(block: (InlineQueryResultAudioCached) -> T): T?
whenInlineQueryResultAudioCommon
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultAudioCommon(block: (InlineQueryResultAudioCommon) -> T): T?
whenInlineQueryResultContact
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultContact(block: (InlineQueryResultContact) -> T): T?
whenInlineQueryResultDocument
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultDocument(block: (InlineQueryResultDocument) -> T): T?
whenInlineQueryResultDocumentCached
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultDocumentCached(block: (InlineQueryResultDocumentCached) -> T): T?
whenInlineQueryResultDocumentCommon
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultDocumentCommon(block: (InlineQueryResultDocumentCommon) -> T): T?
whenInlineQueryResultGame
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultGame(block: (InlineQueryResultGame) -> T): T?
whenInlineQueryResultGif
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultGif(block: (InlineQueryResultGif) -> T): T?
whenInlineQueryResultGifCached
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultGifCached(block: (InlineQueryResultGifCached) -> T): T?
whenInlineQueryResultGifCommon
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultGifCommon(block: (InlineQueryResultGifCommon) -> T): T?
whenInlineQueryResultLocation
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultLocation(block: (InlineQueryResultLocation) -> T): T?
whenInlineQueryResultMpeg4Gif
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultMpeg4Gif(block: (InlineQueryResultMpeg4Gif) -> T): T?
whenInlineQueryResultMpeg4GifCached
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultMpeg4GifCached(block: (InlineQueryResultMpeg4GifCached) -> T): T?
whenInlineQueryResultMpeg4GifCommon
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultMpeg4GifCommon(block: (InlineQueryResultMpeg4GifCommon) -> T): T?
whenInlineQueryResultPhoto
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultPhoto(block: (InlineQueryResultPhoto) -> T): T?
whenInlineQueryResultPhotoCached
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultPhotoCached(block: (InlineQueryResultPhotoCached) -> T): T?
whenInlineQueryResultPhotoCommon
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultPhotoCommon(block: (InlineQueryResultPhotoCommon) -> T): T?
whenInlineQueryResultStickerCached
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultStickerCached(block: (InlineQueryResultStickerCached) -> T): T?
whenInlineQueryResultVenue
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultVenue(block: (InlineQueryResultVenue) -> T): T?
whenInlineQueryResultVideo
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultVideo(block: (InlineQueryResultVideo) -> T): T?
whenInlineQueryResultVideoCached
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultVideoCached(block: (InlineQueryResultVideoCached) -> T): T?
whenInlineQueryResultVideoCommon
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultVideoCommon(block: (InlineQueryResultVideoCommon) -> T): T?
whenInlineQueryResultVoice
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultVoice(block: (InlineQueryResultVoice) -> T): T?
whenInlineQueryResultVoiceCached
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultVoiceCached(block: (InlineQueryResultVoiceCached) -> T): T?
whenInlineQueryResultVoiceCommon
Link copied to clipboard
inline fun <T> InlineQueryResult.whenInlineQueryResultVoiceCommon(block: (InlineQueryResultVoiceCommon) -> T): T?
whenInlineQueryUpdate
Link copied to clipboard
inline fun <T> Update.whenInlineQueryUpdate(block: (InlineQueryUpdate) -> T): T?
whenInputContactMessageContent
Link copied to clipboard
inline fun <T> InputMessageContent.whenInputContactMessageContent(block: (InputContactMessageContent) -> T): T?
whenInputInvoiceMessageContent
Link copied to clipboard
inline fun <T> CommonSendInvoiceData.whenInputInvoiceMessageContent(block: (InputInvoiceMessageContent) -> T): T?
inline fun <T> InputMessageContent.whenInputInvoiceMessageContent(block: (InputInvoiceMessageContent) -> T): T?
whenInputLocationMessageContent
Link copied to clipboard
inline fun <T> InputMessageContent.whenInputLocationMessageContent(block: (InputLocationMessageContent) -> T): T?
whenInputMediaAnimation
Link copied to clipboard
inline fun <T> InputMedia.whenInputMediaAnimation(block: (InputMediaAnimation) -> T): T?
whenInputMediaAudio
Link copied to clipboard
inline fun <T> InputMedia.whenInputMediaAudio(block: (InputMediaAudio) -> T): T?
whenInputMediaDocument
Link copied to clipboard
inline fun <T> InputMedia.whenInputMediaDocument(block: (InputMediaDocument) -> T): T?
whenInputMediaPhoto
Link copied to clipboard
inline fun <T> InputMedia.whenInputMediaPhoto(block: (InputMediaPhoto) -> T): T?
whenInputMediaVideo
Link copied to clipboard
inline fun <T> InputMedia.whenInputMediaVideo(block: (InputMediaVideo) -> T): T?
whenInputTextMessageContent
Link copied to clipboard
inline fun <T> InputMessageContent.whenInputTextMessageContent(block: (InputTextMessageContent) -> T): T?
whenInputVenueMessageContent
Link copied to clipboard
inline fun <T> InputMessageContent.whenInputVenueMessageContent(block: (InputVenueMessageContent) -> T): T?
whenInternalPassport
Link copied to clipboard
inline fun <T> EncryptedPassportElement.whenInternalPassport(block: (InternalPassport) -> T): T?
whenInternalPassportSecureValue
Link copied to clipboard
inline fun <T> SecureValue.whenInternalPassportSecureValue(block: (InternalPassportSecureValue) -> T): T?
whenInvoiceContent
Link copied to clipboard
inline fun <T> ResendableContent.whenInvoiceContent(block: (InvoiceContent) -> T): T?
whenItalicTextSource
Link copied to clipboard
inline fun <T> TextSource.whenItalicTextSource(block: (ItalicTextSource) -> T): T?
whenKickedChatMember
Link copied to clipboard
inline fun <T> ChatMember.whenKickedChatMember(block: (KickedChatMember) -> T): T?
whenLeftChatMember
Link copied to clipboard
inline fun <T> ChatMember.whenLeftChatMember(block: (LeftChatMember) -> T): T?
inline fun <T> ChatEvent.whenLeftChatMember(block: (LeftChatMember) -> T): T?
whenLiveLocation
Link copied to clipboard
inline fun <T> Location.whenLiveLocation(block: (LiveLocation) -> T): T?
whenLiveLocationContent
Link copied to clipboard
inline fun <T> ResendableContent.whenLiveLocationContent(block: (LiveLocationContent) -> T): T?
whenLocationContent
Link copied to clipboard
inline fun <T> ResendableContent.whenLocationContent(block: (LocationContent) -> T): T?
whenLocationInlineQuery
Link copied to clipboard
inline fun <T> InlineQuery.whenLocationInlineQuery(block: (LocationInlineQuery) -> T): T?
whenLoginURLInlineKeyboardButton
Link copied to clipboard
inline fun <T> InlineKeyboardButton.whenLoginURLInlineKeyboardButton(block: (LoginURLInlineKeyboardButton) -> T): T?
whenMediaCollectionContent
Link copied to clipboard
inline fun <T> ResendableContent.whenMediaCollectionContent(block: (MediaCollectionContent<TelegramMediaFile>) -> T): T?
whenMediaContent
Link copied to clipboard
inline fun <T> ResendableContent.whenMediaContent(block: (MediaContent) -> T): T?
whenMediaGroupContent
Link copied to clipboard
inline fun <T> ResendableContent.whenMediaGroupContent(block: (MediaGroupContent) -> T): T?
whenMediaGroupMemberInputMedia
Link copied to clipboard
inline fun <T> InputMedia.whenMediaGroupMemberInputMedia(block: (MediaGroupMemberInputMedia) -> T): T?
whenMediaGroupMessage
Link copied to clipboard
inline fun <T> Message.whenMediaGroupMessage(block: (MediaGroupMessage<MediaGroupContent>) -> T): T?
whenMediaGroupUpdate
Link copied to clipboard
inline fun <T> Update.whenMediaGroupUpdate(block: (MediaGroupUpdate) -> T): T?
whenMemberChatMember
Link copied to clipboard
inline fun <T> ChatMember.whenMemberChatMember(block: (MemberChatMember) -> T): T?
whenMentionTextSource
Link copied to clipboard
inline fun <T> TextSource.whenMentionTextSource(block: (MentionTextSource) -> T): T?
whenMessageAutoDeleteTimerChanged
Link copied to clipboard
inline fun <T> ChatEvent.whenMessageAutoDeleteTimerChanged(block: (MessageAutoDeleteTimerChanged) -> T): T?
whenMessageCallbackQuery
Link copied to clipboard
inline fun <T> CallbackQuery.whenMessageCallbackQuery(block: (MessageCallbackQuery) -> T): T?
whenMessageContent
Link copied to clipboard
inline fun <T> ResendableContent.whenMessageContent(block: (MessageContent) -> T): T?
whenMessageDataCallbackQuery
Link copied to clipboard
inline fun <T> CallbackQuery.whenMessageDataCallbackQuery(block: (MessageDataCallbackQuery) -> T): T?
whenMessageGameShortNameCallbackQuery
Link copied to clipboard
inline fun <T> CallbackQuery.whenMessageGameShortNameCallbackQuery(block: (MessageGameShortNameCallbackQuery) -> T): T?
whenMessageMediaGroupUpdate
Link copied to clipboard
inline fun <T> Update.whenMessageMediaGroupUpdate(block: (MessageMediaGroupUpdate) -> T): T?
whenMessageUpdate
Link copied to clipboard
inline fun <T> Update.whenMessageUpdate(block: (MessageUpdate) -> T): T?
whenMigratedToSupergroup
Link copied to clipboard
inline fun <T> ChatEvent.whenMigratedToSupergroup(block: (MigratedToSupergroup) -> T): T?
whenMimedMediaFile
Link copied to clipboard
inline fun <T> TelegramMediaFile.whenMimedMediaFile(block: (MimedMediaFile) -> T): T?
whenMultilevelTextSource
Link copied to clipboard
inline fun <T> TextSource.whenMultilevelTextSource(block: (MultilevelTextSource) -> T): T?
whenMultipleAnswersPoll
Link copied to clipboard
inline fun <T> Poll.whenMultipleAnswersPoll(block: (MultipleAnswersPoll) -> T): T?
whenMyChatMemberUpdatedUpdate
Link copied to clipboard
inline fun <T> Update.whenMyChatMemberUpdatedUpdate(block: (MyChatMemberUpdatedUpdate) -> T): T?
whenNewChatMembers
Link copied to clipboard
inline fun <T> ChatEvent.whenNewChatMembers(block: (NewChatMembers) -> T): T?
whenNewChatPhoto
Link copied to clipboard
inline fun <T> ChatEvent.whenNewChatPhoto(block: (NewChatPhoto) -> T): T?
whenNewChatTitle
Link copied to clipboard
inline fun <T> ChatEvent.whenNewChatTitle(block: (NewChatTitle) -> T): T?
whenOptionallyTitledInlineQueryResult
Link copied to clipboard
inline fun <T> InlineQueryResult.whenOptionallyTitledInlineQueryResult(block: (OptionallyTitledInlineQueryResult) -> T): T?
whenOtherDocumentsSecureValue
Link copied to clipboard
inline fun <T> SecureValue.whenOtherDocumentsSecureValue(block: (OtherDocumentsSecureValue) -> T): T?
whenPassport
Link copied to clipboard
inline fun <T> EncryptedPassportElement.whenPassport(block: (Passport) -> T): T?
whenPassportElementErrorDataField
Link copied to clipboard
inline fun <T> PassportElementError.whenPassportElementErrorDataField(block: (PassportElementErrorDataField) -> T): T?
whenPassportElementErrorFile
Link copied to clipboard
inline fun <T> PassportElementError.whenPassportElementErrorFile(block: (PassportElementErrorFile) -> T): T?
whenPassportElementErrorFiles
Link copied to clipboard
inline fun <T> PassportElementError.whenPassportElementErrorFiles(block: (PassportElementErrorFiles) -> T): T?
whenPassportElementErrorFrontSide
Link copied to clipboard
inline fun <T> PassportElementError.whenPassportElementErrorFrontSide(block: (PassportElementErrorFrontSide) -> T): T?
whenPassportElementErrorReverseSide
Link copied to clipboard
inline fun <T> PassportElementError.whenPassportElementErrorReverseSide(block: (PassportElementErrorReverseSide) -> T): T?
whenPassportElementErrorSelfie
Link copied to clipboard
inline fun <T> PassportElementError.whenPassportElementErrorSelfie(block: (PassportElementErrorSelfie) -> T): T?
whenPassportElementErrorTranslationFile
Link copied to clipboard
whenPassportElementErrorUnspecified
Link copied to clipboard
inline fun <T> PassportElementError.whenPassportElementErrorUnspecified(block: (PassportElementErrorUnspecified) -> T): T?
whenPassportElementFileError
Link copied to clipboard
inline fun <T> PassportElementError.whenPassportElementFileError(block: (PassportElementFileError) -> T): T?
whenPassportElementFilesError
Link copied to clipboard
inline fun <T> PassportElementError.whenPassportElementFilesError(block: (PassportElementFilesError) -> T): T?
whenPassportMessage
Link copied to clipboard
inline fun <T> Message.whenPassportMessage(block: (PassportMessage) -> T): T?
whenPassportMultipleElementsError
Link copied to clipboard
inline fun <T> PassportElementError.whenPassportMultipleElementsError(block: (PassportMultipleElementsError) -> T): T?
whenPassportRegistration
Link copied to clipboard
inline fun <T> EncryptedPassportElement.whenPassportRegistration(block: (PassportRegistration) -> T): T?
whenPassportRegistrationSecureValue
Link copied to clipboard
inline fun <T> SecureValue.whenPassportRegistrationSecureValue(block: (PassportRegistrationSecureValue) -> T): T?
whenPassportSecureValue
Link copied to clipboard
inline fun <T> SecureValue.whenPassportSecureValue(block: (PassportSecureValue) -> T): T?
whenPassportSingleElementError
Link copied to clipboard
inline fun <T> PassportElementError.whenPassportSingleElementError(block: (PassportSingleElementError) -> T): T?
whenPathedFile
Link copied to clipboard
inline fun <T> TelegramMediaFile.whenPathedFile(block: (PathedFile) -> T): T?
whenPayInlineKeyboardButton
Link copied to clipboard
inline fun <T> InlineKeyboardButton.whenPayInlineKeyboardButton(block: (PayInlineKeyboardButton) -> T): T?
whenPersonalDetailsSecureValue
Link copied to clipboard
inline fun <T> SecureValue.whenPersonalDetailsSecureValue(block: (PersonalDetailsSecureValue) -> T): T?
whenPhoneNumber
Link copied to clipboard
inline fun <T> EncryptedPassportElement.whenPhoneNumber(block: (PhoneNumber) -> T): T?
whenPhoneNumberTextSource
Link copied to clipboard
inline fun <T> TextSource.whenPhoneNumberTextSource(block: (PhoneNumberTextSource) -> T): T?
whenPhotoContent
Link copied to clipboard
inline fun <T> ResendableContent.whenPhotoContent(block: (PhotoContent) -> T): T?
whenPhotoSize
Link copied to clipboard
inline fun <T> TelegramMediaFile.whenPhotoSize(block: (PhotoSize) -> T): T?
whenPinnedMessage
Link copied to clipboard
inline fun <T> ChatEvent.whenPinnedMessage(block: (PinnedMessage) -> T): T?
whenPlayableMediaFile
Link copied to clipboard
inline fun <T> TelegramMediaFile.whenPlayableMediaFile(block: (PlayableMediaFile) -> T): T?
whenPollAnswerUpdate
Link copied to clipboard
inline fun <T> Update.whenPollAnswerUpdate(block: (PollAnswerUpdate) -> T): T?
whenPollContent
Link copied to clipboard
inline fun <T> ResendableContent.whenPollContent(block: (PollContent) -> T): T?
whenPollUpdate
Link copied to clipboard
inline fun <T> Update.whenPollUpdate(block: (PollUpdate) -> T): T?
whenPossiblyEditedMessage
Link copied to clipboard
inline fun <T> Message.whenPossiblyEditedMessage(block: (PossiblyEditedMessage) -> T): T?
whenPossiblyForwardedMessage
Link copied to clipboard
inline fun <T> Message.whenPossiblyForwardedMessage(block: (PossiblyForwardedMessage) -> T): T?
whenPossiblyPaymentMessage
Link copied to clipboard
inline fun <T> Message.whenPossiblyPaymentMessage(block: (PossiblyPaymentMessage) -> T): T?
whenPossiblyReplyMessage
Link copied to clipboard
inline fun <T> Message.whenPossiblyReplyMessage(block: (PossiblyReplyMessage) -> T): T?
whenPossiblySentViaBotCommonMessage
Link copied to clipboard
inline fun <T> Message.whenPossiblySentViaBotCommonMessage(block: (PossiblySentViaBotCommonMessage<MessageContent>) -> T): T?
whenPreCheckoutQueryUpdate
Link copied to clipboard
inline fun <T> Update.whenPreCheckoutQueryUpdate(block: (PreCheckoutQueryUpdate) -> T): T?
whenPreTextSource
Link copied to clipboard
inline fun <T> TextSource.whenPreTextSource(block: (PreTextSource) -> T): T?
whenPrimaryInviteLink
Link copied to clipboard
inline fun <T> ChatInviteLink.whenPrimaryInviteLink(block: (PrimaryInviteLink) -> T): T?
whenPrivateChat
Link copied to clipboard
inline fun <T> Chat.whenPrivateChat(block: (PrivateChat) -> T): T?
whenPrivateContentMessage
Link copied to clipboard
inline fun <T> Message.whenPrivateContentMessage(block: (PrivateContentMessage<MessageContent>) -> T): T?
whenPrivateContentMessageImpl
Link copied to clipboard
inline fun <T> Message.whenPrivateContentMessageImpl(block: (PrivateContentMessageImpl<MessageContent>) -> T): T?
whenPrivateEventMessage
Link copied to clipboard
inline fun <T> Message.whenPrivateEventMessage(block: (PrivateEventMessage<PrivateEvent>) -> T): T?
whenProximityAlertTriggered
Link copied to clipboard
inline fun <T> ChatEvent.whenProximityAlertTriggered(block: (ProximityAlertTriggered) -> T): T?
whenPublicChat
Link copied to clipboard
inline fun <T> Chat.whenPublicChat(block: (PublicChat) -> T): T?
whenPublicChatEvent
Link copied to clipboard
inline fun <T> ChatEvent.whenPublicChatEvent(block: (PublicChatEvent) -> T): T?
whenPublicContentMessage
Link copied to clipboard
inline fun <T> Message.whenPublicContentMessage(block: (PublicContentMessage<MessageContent>) -> T): T?
whenQuizPoll
Link copied to clipboard
inline fun <T> Poll.whenQuizPoll(block: (QuizPoll) -> T): T?
whenRecordVideoAction
Link copied to clipboard
inline fun <T> BotAction.whenRecordVideoAction(block: (RecordVideoAction) -> T): T?
whenRecordVideoNoteAction
Link copied to clipboard
inline fun <T> BotAction.whenRecordVideoNoteAction(block: (RecordVideoNoteAction) -> T): T?
whenRecordVoiceAction
Link copied to clipboard
inline fun <T> BotAction.whenRecordVoiceAction(block: (RecordVoiceAction) -> T): T?
whenRegularPoll
Link copied to clipboard
inline fun <T> Poll.whenRegularPoll(block: (RegularPoll) -> T): T?
whenRegularTextSource
Link copied to clipboard
inline fun <T> TextSource.whenRegularTextSource(block: (RegularTextSource) -> T): T?
whenRentalAgreement
Link copied to clipboard
inline fun <T> EncryptedPassportElement.whenRentalAgreement(block: (RentalAgreement) -> T): T?
whenRentalAgreementSecureValue
Link copied to clipboard
inline fun <T> SecureValue.whenRentalAgreementSecureValue(block: (RentalAgreementSecureValue) -> T): T?
whenReplyKeyboardMarkup
Link copied to clipboard
inline fun <T> KeyboardMarkup.whenReplyKeyboardMarkup(block: (ReplyKeyboardMarkup) -> T): T?
whenReplyKeyboardRemove
Link copied to clipboard
inline fun <T> KeyboardMarkup.whenReplyKeyboardRemove(block: (ReplyKeyboardRemove) -> T): T?
whenRestrictedChatMember
Link copied to clipboard
inline fun <T> ChatMember.whenRestrictedChatMember(block: (RestrictedChatMember) -> T): T?
whenSecondaryChatInviteLink
Link copied to clipboard
inline fun <T> ChatInviteLink.whenSecondaryChatInviteLink(block: (SecondaryChatInviteLink) -> T): T?
whenSecureValueIdentity
Link copied to clipboard
inline fun <T> SecureValue.whenSecureValueIdentity(block: (SecureValueIdentity) -> T): T?
whenSecureValueWithData
Link copied to clipboard
inline fun <T> SecureValue.whenSecureValueWithData(block: (SecureValueWithData) -> T): T?
whenSecureValueWithFiles
Link copied to clipboard
inline fun <T> SecureValue.whenSecureValueWithFiles(block: (SecureValueWithFiles) -> T): T?
whenSecureValueWithReverseSide
Link copied to clipboard
inline fun <T> SecureValue.whenSecureValueWithReverseSide(block: (SecureValueWithReverseSide) -> T): T?
whenSecureValueWithTranslations
Link copied to clipboard
inline fun <T> SecureValue.whenSecureValueWithTranslations(block: (SecureValueWithTranslations) -> T): T?
whenSendInvoice
Link copied to clipboard
inline fun <T> CommonSendInvoiceData.whenSendInvoice(block: (SendInvoice) -> T): T?
whenSentMediaGroupUpdate
Link copied to clipboard
inline fun <T> Update.whenSentMediaGroupUpdate(block: (SentMediaGroupUpdate) -> T): T?
whenShippingQueryUpdate
Link copied to clipboard
inline fun <T> Update.whenShippingQueryUpdate(block: (ShippingQueryUpdate) -> T): T?
whenSignedMessage
Link copied to clipboard
inline fun <T> Message.whenSignedMessage(block: (SignedMessage) -> T): T?
whenSizedInlineQueryResult
Link copied to clipboard
inline fun <T> InlineQueryResult.whenSizedInlineQueryResult(block: (SizedInlineQueryResult) -> T): T?
whenSizedInputMedia
Link copied to clipboard
inline fun <T> InputMedia.whenSizedInputMedia(block: (SizedInputMedia) -> T): T?
whenSizedMediaFile
Link copied to clipboard
inline fun <T> TelegramMediaFile.whenSizedMediaFile(block: (SizedMediaFile) -> T): T?
whenSlotMachineDiceAnimationType
Link copied to clipboard
inline fun <T> DiceAnimationType.whenSlotMachineDiceAnimationType(block: (SlotMachineDiceAnimationType) -> T): T?
whenSpecialRightsChatMember
Link copied to clipboard
inline fun <T> ChatMember.whenSpecialRightsChatMember(block: (SpecialRightsChatMember) -> T): T?
whenStaticLocation
Link copied to clipboard
inline fun <T> Location.whenStaticLocation(block: (StaticLocation) -> T): T?
whenStaticLocationContent
Link copied to clipboard
inline fun <T> ResendableContent.whenStaticLocationContent(block: (StaticLocationContent) -> T): T?
whenSticker
Link copied to clipboard
inline fun <T> TelegramMediaFile.whenSticker(block: (Sticker) -> T): T?
whenStickerContent
Link copied to clipboard
inline fun <T> ResendableContent.whenStickerContent(block: (StickerContent) -> T): T?
whenStrikethroughTextSource
Link copied to clipboard
inline fun <T> TextSource.whenStrikethroughTextSource(block: (StrikethroughTextSource) -> T): T?
whenSupergroupChat
Link copied to clipboard
inline fun <T> Chat.whenSupergroupChat(block: (SupergroupChat) -> T): T?
whenSupergroupChatCreated
Link copied to clipboard
inline fun <T> ChatEvent.whenSupergroupChatCreated(block: (SupergroupChatCreated) -> T): T?
whenSupergroupEvent
Link copied to clipboard
inline fun <T> ChatEvent.whenSupergroupEvent(block: (SupergroupEvent) -> T): T?
whenSupergroupEventMessage
Link copied to clipboard
inline fun <T> Message.whenSupergroupEventMessage(block: (SupergroupEventMessage<SupergroupEvent>) -> T): T?
whenSuperPublicChat
Link copied to clipboard
inline fun <T> Chat.whenSuperPublicChat(block: (SuperPublicChat) -> T): T?
whenTemporalRegistrationSecureValue
Link copied to clipboard
inline fun <T> SecureValue.whenTemporalRegistrationSecureValue(block: (TemporalRegistrationSecureValue) -> T): T?
whenTemporaryRegistration
Link copied to clipboard
inline fun <T> EncryptedPassportElement.whenTemporaryRegistration(block: (TemporaryRegistration) -> T): T?
whenTextContent
Link copied to clipboard
inline fun <T> ResendableContent.whenTextContent(block: (TextContent) -> T): T?
whenTextLinkTextSource
Link copied to clipboard
inline fun <T> TextSource.whenTextLinkTextSource(block: (TextLinkTextSource) -> T): T?
whenTextMentionTextSource
Link copied to clipboard
inline fun <T> TextSource.whenTextMentionTextSource(block: (TextMentionTextSource) -> T): T?
whenThumbedInlineQueryResult
Link copied to clipboard
inline fun <T> InlineQueryResult.whenThumbedInlineQueryResult(block: (ThumbedInlineQueryResult) -> T): T?
whenThumbedInputMedia
Link copied to clipboard
inline fun <T> InputMedia.whenThumbedInputMedia(block: (ThumbedInputMedia) -> T): T?
whenThumbedMediaFile
Link copied to clipboard
inline fun <T> TelegramMediaFile.whenThumbedMediaFile(block: (ThumbedMediaFile) -> T): T?
whenThumbSizedInlineQueryResult
Link copied to clipboard
inline fun <T> InlineQueryResult.whenThumbSizedInlineQueryResult(block: (ThumbSizedInlineQueryResult) -> T): T?
whenTitledInlineQueryResult
Link copied to clipboard
inline fun <T> InlineQueryResult.whenTitledInlineQueryResult(block: (TitledInlineQueryResult) -> T): T?
whenTitledInputMedia
Link copied to clipboard
inline fun <T> InputMedia.whenTitledInputMedia(block: (TitledInputMedia) -> T): T?
whenTypingAction
Link copied to clipboard
inline fun <T> BotAction.whenTypingAction(block: (TypingAction) -> T): T?
whenUnderlineTextSource
Link copied to clipboard
inline fun <T> TextSource.whenUnderlineTextSource(block: (UnderlineTextSource) -> T): T?
whenUnknownCallbackQueryType
Link copied to clipboard
inline fun <T> CallbackQuery.whenUnknownCallbackQueryType(block: (UnknownCallbackQueryType) -> T): T?
whenUnknownChatType
Link copied to clipboard
inline fun <T> Chat.whenUnknownChatType(block: (UnknownChatType) -> T): T?
whenUnknownEncryptedPassportElement
Link copied to clipboard
whenUnknownInlineKeyboardButton
Link copied to clipboard
inline fun <T> InlineKeyboardButton.whenUnknownInlineKeyboardButton(block: (UnknownInlineKeyboardButton) -> T): T?
whenUnknownMessageType
Link copied to clipboard
inline fun <T> Message.whenUnknownMessageType(block: (UnknownMessageType) -> T): T?
whenUnknownPassportElementError
Link copied to clipboard
inline fun <T> PassportElementError.whenUnknownPassportElementError(block: (UnknownPassportElementError) -> T): T?
whenUnknownPollType
Link copied to clipboard
inline fun <T> Poll.whenUnknownPollType(block: (UnknownPollType) -> T): T?
whenUnknownUpdate
Link copied to clipboard
inline fun <T> Update.whenUnknownUpdate(block: (UnknownUpdate) -> T): T?
whenUploadDocumentAction
Link copied to clipboard
inline fun <T> BotAction.whenUploadDocumentAction(block: (UploadDocumentAction) -> T): T?
whenUploadPhotoAction
Link copied to clipboard
inline fun <T> BotAction.whenUploadPhotoAction(block: (UploadPhotoAction) -> T): T?
whenUploadVideoAction
Link copied to clipboard
inline fun <T> BotAction.whenUploadVideoAction(block: (UploadVideoAction) -> T): T?
whenUploadVideoNoteAction
Link copied to clipboard
inline fun <T> BotAction.whenUploadVideoNoteAction(block: (UploadVideoNoteAction) -> T): T?
whenUploadVoiceAction
Link copied to clipboard
inline fun <T> BotAction.whenUploadVoiceAction(block: (UploadVoiceAction) -> T): T?
whenURLInlineKeyboardButton
Link copied to clipboard
inline fun <T> InlineKeyboardButton.whenURLInlineKeyboardButton(block: (URLInlineKeyboardButton) -> T): T?
whenUrlInlineQueryResult
Link copied to clipboard
inline fun <T> InlineQueryResult.whenUrlInlineQueryResult(block: (UrlInlineQueryResult) -> T): T?
whenURLTextSource
Link copied to clipboard
inline fun <T> TextSource.whenURLTextSource(block: (URLTextSource) -> T): T?
whenUser
Link copied to clipboard
inline fun <T> Chat.whenUser(block: (User) -> T): T?
whenUsernameChat
Link copied to clipboard
inline fun <T> Chat.whenUsernameChat(block: (UsernameChat) -> T): T?
whenUtilityBill
Link copied to clipboard
inline fun <T> EncryptedPassportElement.whenUtilityBill(block: (UtilityBill) -> T): T?
whenUtilityBillSecureValue
Link copied to clipboard
inline fun <T> SecureValue.whenUtilityBillSecureValue(block: (UtilityBillSecureValue) -> T): T?
whenVenueContent
Link copied to clipboard
inline fun <T> ResendableContent.whenVenueContent(block: (VenueContent) -> T): T?
whenVideoContent
Link copied to clipboard
inline fun <T> ResendableContent.whenVideoContent(block: (VideoContent) -> T): T?
whenVideoFile
Link copied to clipboard
inline fun <T> TelegramMediaFile.whenVideoFile(block: (VideoFile) -> T): T?
whenVideoNoteContent
Link copied to clipboard
inline fun <T> ResendableContent.whenVideoNoteContent(block: (VideoNoteContent) -> T): T?
whenVideoNoteFile
Link copied to clipboard
inline fun <T> TelegramMediaFile.whenVideoNoteFile(block: (VideoNoteFile) -> T): T?
whenVisualMediaGroupContent
Link copied to clipboard
inline fun <T> ResendableContent.whenVisualMediaGroupContent(block: (VisualMediaGroupContent) -> T): T?
whenVisualMediaGroupMemberInputMedia
Link copied to clipboard
inline fun <T> InputMedia.whenVisualMediaGroupMemberInputMedia(block: (VisualMediaGroupMemberInputMedia) -> T): T?
whenVoiceChatEnded
Link copied to clipboard
inline fun <T> ChatEvent.whenVoiceChatEnded(block: (VoiceChatEnded) -> T): T?
whenVoiceChatEvent
Link copied to clipboard
inline fun <T> ChatEvent.whenVoiceChatEvent(block: (VoiceChatEvent) -> T): T?
whenVoiceChatParticipantsInvited
Link copied to clipboard
inline fun <T> ChatEvent.whenVoiceChatParticipantsInvited(block: (VoiceChatParticipantsInvited) -> T): T?
whenVoiceChatStarted
Link copied to clipboard
inline fun <T> ChatEvent.whenVoiceChatStarted(block: (VoiceChatStarted) -> T): T?
whenVoiceContent
Link copied to clipboard
inline fun <T> ResendableContent.whenVoiceContent(block: (VoiceContent) -> T): T?
whenVoiceFile
Link copied to clipboard
inline fun <T> TelegramMediaFile.whenVoiceFile(block: (VoiceFile) -> T): T?
whenWithOptionalLanguageCode
Link copied to clipboard
inline fun <T> Any.whenWithOptionalLanguageCode(block: (WithOptionalLanguageCode) -> T): T?
whenWithUser
Link copied to clipboard
inline fun <T> Any.whenWithUser(block: (WithUser) -> T): T?
withContent
Link copied to clipboard
inline fun <T : MessageContent> ChannelContentMessage<*>.withContent(): ChannelContentMessage<T>?
inline fun <T : MessageContent> CommonGroupContentMessage<*>.withContent(): CommonGroupContentMessage<T>?
inline fun <T : MessageContent> CommonMessage<*>.withContent(): CommonMessage<T>?
inline fun <T : MessageContent> ContentMessage<*>.withContent(): ContentMessage<T>?
inline fun <T : MessageContent> GroupContentMessage<*>.withContent(): GroupContentMessage<T>?
inline fun <T : MediaGroupContent> MediaGroupMessage<*>.withContent(): MediaGroupMessage<T>?
inline fun <T : MessageContent> PrivateContentMessage<*>.withContent(): PrivateContentMessage<T>?
inline fun <T : MessageContent> PublicContentMessage<*>.withContent(): PublicContentMessage<T>?
withoutSentViaBot
Link copied to clipboard
fun <MC : MessageContent, M : ContentMessage<MC>> Flow<M>.withoutSentViaBot(): Flow<M>

Filter the messages and checking that incoming CommonMessage not is PossiblySentViaBotCommonMessage or its PossiblySentViaBotCommonMessage.senderBot is null

Properties

asSlotMachineReelImage
Link copied to clipboard
val Int.asSlotMachineReelImage: SlotMachineReelImage
asSlotMachineReelImage
Link copied to clipboard
val String.asSlotMachineReelImage: SlotMachineReelImage