Package dev.inmo.tgbotapi.extensions.utils

Types

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

Functions

aggregateFlows
Link copied to clipboard
common
fun <T> aggregateFlows(withScope: CoroutineScope, vararg flows: Flow<T>, internalBufferSize: Int = 64): Flow<T>
Analog of merge function for Flows.
asAddressSecureValue
Link copied to clipboard
common
inline fun SecureValue.asAddressSecureValue(): AddressSecureValue?
asAdministratorChatMember
Link copied to clipboard
common
inline fun ChatMember.asAdministratorChatMember(): AdministratorChatMember?
asAnimationContent
Link copied to clipboard
common
inline fun ResendableContent.asAnimationContent(): AnimationContent?
asAnimationFile
Link copied to clipboard
common
inline fun TelegramMediaFile.asAnimationFile(): AnimationFile?
asAnonymousGroupContentMessage
Link copied to clipboard
common
asAnonymousGroupContentMessageImpl
Link copied to clipboard
asAudioContent
Link copied to clipboard
common
inline fun ResendableContent.asAudioContent(): AudioContent?
asAudioFile
Link copied to clipboard
common
inline fun TelegramMediaFile.asAudioFile(): AudioFile?
asAudioMediaGroupContent
Link copied to clipboard
common
inline fun ResendableContent.asAudioMediaGroupContent(): AudioMediaGroupContent?
asAudioMediaGroupMemberInputMedia
Link copied to clipboard
common
asBankStatement
Link copied to clipboard
common
inline fun EncryptedPassportElement.asBankStatement(): BankStatement?
asBankStatementSecureValue
Link copied to clipboard
common
inline fun SecureValue.asBankStatementSecureValue(): BankStatementSecureValue?
asBannedChatMember
Link copied to clipboard
common
inline fun ChatMember.asBannedChatMember(): BannedChatMember?
asBaseEditMessageUpdate
Link copied to clipboard
common
inline fun Update.asBaseEditMessageUpdate(): BaseEditMessageUpdate?
asBaseInlineQuery
Link copied to clipboard
common
inline fun InlineQuery.asBaseInlineQuery(): BaseInlineQuery?
asBaseMessageUpdate
Link copied to clipboard
common
inline fun Update.asBaseMessageUpdate(): BaseMessageUpdate?
asBaseSentMessageUpdate
Link copied to clipboard
common
inline fun Update.asBaseSentMessageUpdate(): BaseSentMessageUpdate?
asBasketballDiceAnimationType
Link copied to clipboard
common
asBoldTextSource
Link copied to clipboard
common
inline fun TextSource.asBoldTextSource(): BoldTextSource?
asBot
Link copied to clipboard
common
inline fun Chat.asBot(): Bot?
asBotCommandTextSource
Link copied to clipboard
common
inline fun TextSource.asBotCommandTextSource(): BotCommandTextSource?
asBowlingDiceAnimationType
Link copied to clipboard
common
asCallbackQueryUpdate
Link copied to clipboard
common
inline fun Update.asCallbackQueryUpdate(): CallbackQueryUpdate?
asCashTagTextSource
Link copied to clipboard
common
inline fun TextSource.asCashTagTextSource(): CashTagTextSource?
asChannelChat
Link copied to clipboard
common
inline fun Chat.asChannelChat(): ChannelChat?
asChannelChatCreated
Link copied to clipboard
common
inline fun ChatEvent.asChannelChatCreated(): ChannelChatCreated?
asChannelContentMessage
Link copied to clipboard
common
inline fun Message.asChannelContentMessage(): ChannelContentMessageImpl<MessageContent>?
asChannelContentMessageImpl
Link copied to clipboard
common
asChannelEvent
Link copied to clipboard
common
inline fun ChatEvent.asChannelEvent(): ChannelEvent?
asChannelEventMessage
Link copied to clipboard
common
inline fun Message.asChannelEventMessage(): ChannelEventMessage<ChannelEvent>?
asChannelMediaGroupMessage
Link copied to clipboard
common
asChannelPostMediaGroupUpdate
Link copied to clipboard
common
inline fun Update.asChannelPostMediaGroupUpdate(): ChannelPostMediaGroupUpdate?
asChannelPostUpdate
Link copied to clipboard
common
inline fun Update.asChannelPostUpdate(): ChannelPostUpdate?
asChatEventMessage
Link copied to clipboard
common
inline fun Message.asChatEventMessage(): ChatEventMessage<ChatEvent>?
asChatMemberUpdatedUpdate
Link copied to clipboard
common
inline fun Update.asChatMemberUpdatedUpdate(): ChatMemberUpdatedUpdate?
asChosenInlineResultUpdate
Link copied to clipboard
common
inline fun Update.asChosenInlineResultUpdate(): ChosenInlineResultUpdate?
asCodeTextSource
Link copied to clipboard
common
inline fun TextSource.asCodeTextSource(): CodeTextSource?
asCommonBot
Link copied to clipboard
common
inline fun Chat.asCommonBot(): CommonBot?
asCommonChatMemberUpdatedUpdate
Link copied to clipboard
common
inline fun Update.asCommonChatMemberUpdatedUpdate(): CommonChatMemberUpdatedUpdate?
asCommonEvent
Link copied to clipboard
common
inline fun ChatEvent.asCommonEvent(): CommonEvent?
asCommonGroupContentMessage
Link copied to clipboard
common
asCommonGroupEventMessage
Link copied to clipboard
common
inline fun Message.asCommonGroupEventMessage(): CommonGroupEventMessage<GroupEvent>?
asCommonMediaGroupMessage
Link copied to clipboard
common
asCommonMessage
Link copied to clipboard
common
inline fun Message.asCommonMessage(): CommonMessage<MessageContent>?
asCommonPassport
Link copied to clipboard
common
inline fun EncryptedPassportElement.asCommonPassport(): CommonPassport?
asCommonPassportSecureValue
Link copied to clipboard
common
inline fun SecureValue.asCommonPassportSecureValue(): CommonPassportSecureValue?
asCommonSupergroupEventMessage
Link copied to clipboard
common
asCommonUser
Link copied to clipboard
common
inline fun Chat.asCommonUser(): CommonUser?
asContactContent
Link copied to clipboard
common
inline fun ResendableContent.asContactContent(): ContactContent?
asContentMessage
Link copied to clipboard
common
inline fun Message.asContentMessage(): ContentMessage<MessageContent>?
asCreatorChatMember
Link copied to clipboard
common
inline fun ChatMember.asCreatorChatMember(): CreatorChatMember?
asCubeDiceAnimationType
Link copied to clipboard
common
inline fun DiceAnimationType.asCubeDiceAnimationType(): CubeDiceAnimationType?
asCustomDiceAnimationType
Link copied to clipboard
common
inline fun DiceAnimationType.asCustomDiceAnimationType(): CustomDiceAnimationType?
asDartsDiceAnimationType
Link copied to clipboard
common
inline fun DiceAnimationType.asDartsDiceAnimationType(): DartsDiceAnimationType?
asDataCallbackQuery
Link copied to clipboard
common
inline fun CallbackQuery.asDataCallbackQuery(): DataCallbackQuery?
asDeleteChatPhoto
Link copied to clipboard
common
inline fun ChatEvent.asDeleteChatPhoto(): DeleteChatPhoto?
asDescribedInlineQueryResult
Link copied to clipboard
common
asDiceContent
Link copied to clipboard
common
inline fun ResendableContent.asDiceContent(): DiceContent?
asDocumentContent
Link copied to clipboard
common
inline fun ResendableContent.asDocumentContent(): DocumentContent?
asDocumentFile
Link copied to clipboard
common
inline fun TelegramMediaFile.asDocumentFile(): DocumentFile?
asDocumentMediaGroupContent
Link copied to clipboard
common
asDocumentMediaGroupMemberInputMedia
Link copied to clipboard
asDriverLicense
Link copied to clipboard
common
inline fun EncryptedPassportElement.asDriverLicense(): DriverLicense?
asDriverLicenseSecureValue
Link copied to clipboard
common
inline fun SecureValue.asDriverLicenseSecureValue(): DriverLicenseSecureValue?
asDuratedInputMedia
Link copied to clipboard
common
inline fun InputMedia.asDuratedInputMedia(): DuratedInputMedia?
asEditChannelPostMediaGroupUpdate
Link copied to clipboard
common
asEditChannelPostUpdate
Link copied to clipboard
common
inline fun Update.asEditChannelPostUpdate(): EditChannelPostUpdate?
asEditMediaGroupUpdate
Link copied to clipboard
common
inline fun Update.asEditMediaGroupUpdate(): EditMediaGroupUpdate?
asEditMessageMediaGroupUpdate
Link copied to clipboard
common
inline fun Update.asEditMessageMediaGroupUpdate(): EditMessageMediaGroupUpdate?
asEditMessageUpdate
Link copied to clipboard
common
inline fun Update.asEditMessageUpdate(): EditMessageUpdate?
asEmail
Link copied to clipboard
common
inline fun EncryptedPassportElement.asEmail(): Email?
asEMailTextSource
Link copied to clipboard
common
inline fun TextSource.asEMailTextSource(): EMailTextSource?
asEncryptedAddress
Link copied to clipboard
common
inline fun EncryptedPassportElement.asEncryptedAddress(): EncryptedAddress?
asEncryptedPersonalDetails
Link copied to clipboard
common
asExtendedBot
Link copied to clipboard
common
inline fun Chat.asExtendedBot(): ExtendedBot?
asExtendedChannelChat
Link copied to clipboard
common
inline fun Chat.asExtendedChannelChat(): ExtendedChannelChat?
asExtendedChat
Link copied to clipboard
common
inline fun Chat.asExtendedChat(): ExtendedChat?
asExtendedGroupChat
Link copied to clipboard
common
inline fun Chat.asExtendedGroupChat(): ExtendedGroupChat?
asExtendedPrivateChat
Link copied to clipboard
common
inline fun Chat.asExtendedPrivateChat(): ExtendedPrivateChat?
asExtendedPublicChat
Link copied to clipboard
common
inline fun Chat.asExtendedPublicChat(): ExtendedPublicChat?
asExtendedSupergroupChat
Link copied to clipboard
common
inline fun Chat.asExtendedSupergroupChat(): ExtendedSupergroupChat?
asFile
Link copied to clipboard
common
inline fun TelegramMediaFile.asFile(): File?
asFileInlineQueryResult
Link copied to clipboard
common
inline fun InlineQueryResult.asFileInlineQueryResult(): FileInlineQueryResult?
asFindLocationAction
Link copied to clipboard
common
inline fun BotAction.asFindLocationAction(): FindLocationAction?
asFootballDiceAnimationType
Link copied to clipboard
common
asForceReply
Link copied to clipboard
common
inline fun KeyboardMarkup.asForceReply(): ReplyForce?
asFromChannelGroupContentMessage
Link copied to clipboard
asFromUserMessage
Link copied to clipboard
common
inline fun Message.asFromUserMessage(): FromUserMessage?
asGameContent
Link copied to clipboard
common
inline fun ResendableContent.asGameContent(): GameContent?
asGameShortNameCallbackQuery
Link copied to clipboard
common
asGroupChat
Link copied to clipboard
common
inline fun Chat.asGroupChat(): GroupChat?
asGroupChatCreated
Link copied to clipboard
common
inline fun ChatEvent.asGroupChatCreated(): GroupChatCreated?
asGroupContentMessage
Link copied to clipboard
common
inline fun Message.asGroupContentMessage(): GroupContentMessage<MessageContent>?
asGroupEvent
Link copied to clipboard
common
inline fun ChatEvent.asGroupEvent(): GroupEvent?
asGroupEventMessage
Link copied to clipboard
common
inline fun Message.asGroupEventMessage(): GroupEventMessage<GroupEvent>?
asHashTagTextSource
Link copied to clipboard
common
inline fun TextSource.asHashTagTextSource(): HashTagTextSource?
asIdentityCard
Link copied to clipboard
common
inline fun EncryptedPassportElement.asIdentityCard(): IdentityCard?
asIdentityCardSecureValue
Link copied to clipboard
common
inline fun SecureValue.asIdentityCardSecureValue(): IdentityCardSecureValue?
asIdentityWithReverseSideSecureValue
Link copied to clipboard
asInlineKeyboardMarkup
Link copied to clipboard
common
inline fun KeyboardMarkup.asInlineKeyboardMarkup(): InlineKeyboardMarkup?
asInlineMessageIdCallbackQuery
Link copied to clipboard
common
asInlineMessageIdDataCallbackQuery
Link copied to clipboard
common
asInlineQueryResultArticle
Link copied to clipboard
common
asInlineQueryResultAudio
Link copied to clipboard
common
inline fun InlineQueryResult.asInlineQueryResultAudio(): InlineQueryResultAudio?
asInlineQueryResultAudioCached
Link copied to clipboard
common
asInlineQueryResultAudioCommon
Link copied to clipboard
common
asInlineQueryResultContact
Link copied to clipboard
common
asInlineQueryResultDocument
Link copied to clipboard
common
asInlineQueryResultDocumentCached
Link copied to clipboard
asInlineQueryResultDocumentCommon
Link copied to clipboard
asInlineQueryResultGame
Link copied to clipboard
common
inline fun InlineQueryResult.asInlineQueryResultGame(): InlineQueryResultGame?
asInlineQueryResultGif
Link copied to clipboard
common
inline fun InlineQueryResult.asInlineQueryResultGif(): InlineQueryResultGif?
asInlineQueryResultGifCached
Link copied to clipboard
common
asInlineQueryResultGifCommon
Link copied to clipboard
common
asInlineQueryResultLocation
Link copied to clipboard
common
asInlineQueryResultMpeg4Gif
Link copied to clipboard
common
asInlineQueryResultMpeg4GifCached
Link copied to clipboard
asInlineQueryResultMpeg4GifCommon
Link copied to clipboard
asInlineQueryResultPhoto
Link copied to clipboard
common
inline fun InlineQueryResult.asInlineQueryResultPhoto(): InlineQueryResultPhoto?
asInlineQueryResultPhotoCached
Link copied to clipboard
common
asInlineQueryResultPhotoCommon
Link copied to clipboard
common
asInlineQueryResultStickerCached
Link copied to clipboard
common
asInlineQueryResultVenue
Link copied to clipboard
common
inline fun InlineQueryResult.asInlineQueryResultVenue(): InlineQueryResultVenue?
asInlineQueryResultVideo
Link copied to clipboard
common
inline fun InlineQueryResult.asInlineQueryResultVideo(): InlineQueryResultVideo?
asInlineQueryResultVideoCached
Link copied to clipboard
common
asInlineQueryResultVideoCommon
Link copied to clipboard
common
asInlineQueryResultVoice
Link copied to clipboard
common
inline fun InlineQueryResult.asInlineQueryResultVoice(): InlineQueryResultVoice?
asInlineQueryResultVoiceCached
Link copied to clipboard
common
asInlineQueryResultVoiceCommon
Link copied to clipboard
common
asInlineQueryUpdate
Link copied to clipboard
common
inline fun Update.asInlineQueryUpdate(): InlineQueryUpdate?
asInputContactMessageContent
Link copied to clipboard
common
asInputInvoiceMessageContent
Link copied to clipboard
asInputLocationMessageContent
Link copied to clipboard
common
asInputMediaAnimation
Link copied to clipboard
common
inline fun InputMedia.asInputMediaAnimation(): InputMediaAnimation?
asInputMediaAudio
Link copied to clipboard
common
inline fun InputMedia.asInputMediaAudio(): InputMediaAudio?
asInputMediaDocument
Link copied to clipboard
common
inline fun InputMedia.asInputMediaDocument(): InputMediaDocument?
asInputMediaPhoto
Link copied to clipboard
common
inline fun InputMedia.asInputMediaPhoto(): InputMediaPhoto?
asInputMediaVideo
Link copied to clipboard
common
inline fun InputMedia.asInputMediaVideo(): InputMediaVideo?
asInputTextMessageContent
Link copied to clipboard
common
asInputVenueMessageContent
Link copied to clipboard
common
asInternalPassport
Link copied to clipboard
common
inline fun EncryptedPassportElement.asInternalPassport(): InternalPassport?
asInternalPassportSecureValue
Link copied to clipboard
common
asInvoiceContent
Link copied to clipboard
common
inline fun ResendableContent.asInvoiceContent(): InvoiceContent?
asItalicTextSource
Link copied to clipboard
common
inline fun TextSource.asItalicTextSource(): ItalicTextSource?
asKickedChatMember
Link copied to clipboard
common
inline fun ChatMember.asKickedChatMember(): KickedChatMember?
asLeftChatMember
Link copied to clipboard
common
inline fun ChatMember.asLeftChatMember(): LeftChatMember?
inline fun ChatEvent.asLeftChatMember(): LeftChatMember?
asLocationContent
Link copied to clipboard
common
inline fun ResendableContent.asLocationContent(): LocationContent?
asLocationInlineQuery
Link copied to clipboard
common
inline fun InlineQuery.asLocationInlineQuery(): LocationInlineQuery?
asLoginURLInlineKeyboardButton
Link copied to clipboard
common
asMediaCollectionContent
Link copied to clipboard
common
asMediaContent
Link copied to clipboard
common
inline fun ResendableContent.asMediaContent(): MediaContent?
asMediaGroupContent
Link copied to clipboard
common
inline fun ResendableContent.asMediaGroupContent(): MediaGroupContent?
asMediaGroupMemberInputMedia
Link copied to clipboard
common
inline fun InputMedia.asMediaGroupMemberInputMedia(): MediaGroupMemberInputMedia?
asMediaGroupMessage
Link copied to clipboard
common
inline fun Message.asMediaGroupMessage(): MediaGroupMessage<MediaGroupContent>?
asMediaGroupUpdate
Link copied to clipboard
common
inline fun Update.asMediaGroupUpdate(): MediaGroupUpdate?
asMemberChatMember
Link copied to clipboard
common
inline fun ChatMember.asMemberChatMember(): MemberChatMember?
asMentionTextSource
Link copied to clipboard
common
inline fun TextSource.asMentionTextSource(): MentionTextSource?
asMessageAutoDeleteTimerChanged
Link copied to clipboard
common
asMessageCallbackQuery
Link copied to clipboard
common
inline fun CallbackQuery.asMessageCallbackQuery(): MessageCallbackQuery?
asMessageContent
Link copied to clipboard
common
inline fun ResendableContent.asMessageContent(): MessageContent?
asMessageDataCallbackQuery
Link copied to clipboard
common
inline fun CallbackQuery.asMessageDataCallbackQuery(): MessageDataCallbackQuery?
asMessageGameShortNameCallbackQuery
Link copied to clipboard
asMessageMediaGroupUpdate
Link copied to clipboard
common
inline fun Update.asMessageMediaGroupUpdate(): MessageMediaGroupUpdate?
asMessageUpdate
Link copied to clipboard
common
inline fun Update.asMessageUpdate(): MessageUpdate?
asMimedMediaFile
Link copied to clipboard
common
inline fun TelegramMediaFile.asMimedMediaFile(): MimedMediaFile?
asMultilevelTextSource
Link copied to clipboard
common
inline fun TextSource.asMultilevelTextSource(): MultilevelTextSource?
asMultipleAnswersPoll
Link copied to clipboard
common
inline fun Poll.asMultipleAnswersPoll(): MultipleAnswersPoll?
asMyChatMemberUpdatedUpdate
Link copied to clipboard
common
inline fun Update.asMyChatMemberUpdatedUpdate(): MyChatMemberUpdatedUpdate?
asNewChatMembers
Link copied to clipboard
common
inline fun ChatEvent.asNewChatMembers(): NewChatMembers?
asNewChatPhoto
Link copied to clipboard
common
inline fun ChatEvent.asNewChatPhoto(): NewChatPhoto?
asNewChatTitle
Link copied to clipboard
common
inline fun ChatEvent.asNewChatTitle(): NewChatTitle?
asOtherDocumentsSecureValue
Link copied to clipboard
common
inline fun SecureValue.asOtherDocumentsSecureValue(): OtherDocumentsSecureValue?
asPassport
Link copied to clipboard
common
inline fun EncryptedPassportElement.asPassport(): Passport?
asPassportElementErrorDataField
Link copied to clipboard
asPassportElementErrorFile
Link copied to clipboard
common
asPassportElementErrorFiles
Link copied to clipboard
common
asPassportElementErrorFrontSide
Link copied to clipboard
asPassportElementErrorReverseSide
Link copied to clipboard
asPassportElementErrorSelfie
Link copied to clipboard
common
asPassportElementErrorUnspecified
Link copied to clipboard
asPassportElementFileError
Link copied to clipboard
common
asPassportElementFilesError
Link copied to clipboard
common
asPassportMessage
Link copied to clipboard
common
inline fun Message.asPassportMessage(): PassportMessage?
asPassportMultipleElementsError
Link copied to clipboard
asPassportRegistration
Link copied to clipboard
common
inline fun EncryptedPassportElement.asPassportRegistration(): PassportRegistration?
asPassportRegistrationSecureValue
Link copied to clipboard
common
asPassportSecureValue
Link copied to clipboard
common
inline fun SecureValue.asPassportSecureValue(): PassportSecureValue?
asPassportSingleElementError
Link copied to clipboard
common
asPathedFile
Link copied to clipboard
common
inline fun TelegramMediaFile.asPathedFile(): PathedFile?
asPayInlineKeyboardButton
Link copied to clipboard
common
asPersonalDetailsSecureValue
Link copied to clipboard
common
inline fun SecureValue.asPersonalDetailsSecureValue(): PersonalDetailsSecureValue?
asPhoneNumber
Link copied to clipboard
common
inline fun EncryptedPassportElement.asPhoneNumber(): PhoneNumber?
asPhoneNumberTextSource
Link copied to clipboard
common
inline fun TextSource.asPhoneNumberTextSource(): PhoneNumberTextSource?
asPhotoContent
Link copied to clipboard
common
inline fun ResendableContent.asPhotoContent(): PhotoContent?
asPhotoSize
Link copied to clipboard
common
inline fun TelegramMediaFile.asPhotoSize(): PhotoSize?
asPinnedMessage
Link copied to clipboard
common
inline fun ChatEvent.asPinnedMessage(): PinnedMessage?
asPlayableMediaFile
Link copied to clipboard
common
inline fun TelegramMediaFile.asPlayableMediaFile(): PlayableMediaFile?
asPollAnswerUpdate
Link copied to clipboard
common
inline fun Update.asPollAnswerUpdate(): PollAnswerUpdate?
asPollContent
Link copied to clipboard
common
inline fun ResendableContent.asPollContent(): PollContent?
asPollUpdate
Link copied to clipboard
common
inline fun Update.asPollUpdate(): PollUpdate?
asPossiblyEditedMessage
Link copied to clipboard
common
inline fun Message.asPossiblyEditedMessage(): PossiblyEditedMessage?
asPossiblyForwardedMessage
Link copied to clipboard
common
inline fun Message.asPossiblyForwardedMessage(): PossiblyForwardedMessage?
asPossiblyPaymentMessage
Link copied to clipboard
common
inline fun Message.asPossiblyPaymentMessage(): PossiblyPaymentMessage?
asPossiblySentViaBotCommonMessage
Link copied to clipboard
asPreCheckoutQueryUpdate
Link copied to clipboard
common
inline fun Update.asPreCheckoutQueryUpdate(): PreCheckoutQueryUpdate?
asPreTextSource
Link copied to clipboard
common
inline fun TextSource.asPreTextSource(): PreTextSource?
asPrivateChat
Link copied to clipboard
common
inline fun Chat.asPrivateChat(): PrivateChat?
asPrivateContentMessage
Link copied to clipboard
common
inline fun Message.asPrivateContentMessage(): PrivateContentMessage<MessageContent>?
asPrivateContentMessageImpl
Link copied to clipboard
common
asProximityAlertTriggered
Link copied to clipboard
common
inline fun ChatEvent.asProximityAlertTriggered(): ProximityAlertTriggered?
asPublicChat
Link copied to clipboard
common
inline fun Chat.asPublicChat(): PublicChat?
asPublicContentMessage
Link copied to clipboard
common
inline fun Message.asPublicContentMessage(): PublicContentMessage<MessageContent>?
asQuizPoll
Link copied to clipboard
common
inline fun Poll.asQuizPoll(): QuizPoll?
asRecordVideoAction
Link copied to clipboard
common
inline fun BotAction.asRecordVideoAction(): RecordVideoAction?
asRecordVideoNoteAction
Link copied to clipboard
common
inline fun BotAction.asRecordVideoNoteAction(): RecordVideoNoteAction?
asRecordVoiceAction
Link copied to clipboard
common
inline fun BotAction.asRecordVoiceAction(): RecordVoiceAction?
asRegularPoll
Link copied to clipboard
common
inline fun Poll.asRegularPoll(): RegularPoll?
asRegularTextSource
Link copied to clipboard
common
inline fun TextSource.asRegularTextSource(): RegularTextSource?
asRentalAgreement
Link copied to clipboard
common
inline fun EncryptedPassportElement.asRentalAgreement(): RentalAgreement?
asRentalAgreementSecureValue
Link copied to clipboard
common
inline fun SecureValue.asRentalAgreementSecureValue(): RentalAgreementSecureValue?
asReplyKeyboardMarkup
Link copied to clipboard
common
inline fun KeyboardMarkup.asReplyKeyboardMarkup(): ReplyKeyboardMarkup?
asReplyKeyboardRemove
Link copied to clipboard
common
inline fun KeyboardMarkup.asReplyKeyboardRemove(): ReplyKeyboardRemove?
asRestrictedChatMember
Link copied to clipboard
common
inline fun ChatMember.asRestrictedChatMember(): RestrictedChatMember?
asSecureValueIdentity
Link copied to clipboard
common
inline fun SecureValue.asSecureValueIdentity(): SecureValueIdentity?
asSecureValueWithData
Link copied to clipboard
common
inline fun SecureValue.asSecureValueWithData(): SecureValueWithData?
asSecureValueWithFiles
Link copied to clipboard
common
inline fun SecureValue.asSecureValueWithFiles(): SecureValueWithFiles?
asSecureValueWithReverseSide
Link copied to clipboard
common
inline fun SecureValue.asSecureValueWithReverseSide(): SecureValueWithReverseSide?
asSecureValueWithTranslations
Link copied to clipboard
common
asSendInvoice
Link copied to clipboard
common
inline fun CommonSendInvoiceData.asSendInvoice(): SendInvoice?
asSentMediaGroupUpdate
Link copied to clipboard
common
inline fun Update.asSentMediaGroupUpdate(): SentMediaGroupUpdate?
asShippingQueryUpdate
Link copied to clipboard
common
inline fun Update.asShippingQueryUpdate(): ShippingQueryUpdate?
asSignedMessage
Link copied to clipboard
common
inline fun Message.asSignedMessage(): SignedMessage?
asSizedInlineQueryResult
Link copied to clipboard
common
inline fun InlineQueryResult.asSizedInlineQueryResult(): SizedInlineQueryResult?
asSizedInputMedia
Link copied to clipboard
common
inline fun InputMedia.asSizedInputMedia(): SizedInputMedia?
asSizedMediaFile
Link copied to clipboard
common
inline fun TelegramMediaFile.asSizedMediaFile(): SizedMediaFile?
asSlotMachineDiceAnimationType
Link copied to clipboard
common
asSpecialRightsChatMember
Link copied to clipboard
common
inline fun ChatMember.asSpecialRightsChatMember(): SpecialRightsChatMember?
asSticker
Link copied to clipboard
common
inline fun TelegramMediaFile.asSticker(): Sticker?
asStickerContent
Link copied to clipboard
common
inline fun ResendableContent.asStickerContent(): StickerContent?
asStrikethroughTextSource
Link copied to clipboard
common
inline fun TextSource.asStrikethroughTextSource(): StrikethroughTextSource?
asSupergroupChat
Link copied to clipboard
common
inline fun Chat.asSupergroupChat(): SupergroupChat?
asSupergroupChatCreated
Link copied to clipboard
common
inline fun ChatEvent.asSupergroupChatCreated(): SupergroupChatCreated?
asSupergroupEvent
Link copied to clipboard
common
inline fun ChatEvent.asSupergroupEvent(): SupergroupEvent?
asSupergroupEventMessage
Link copied to clipboard
common
inline fun Message.asSupergroupEventMessage(): SupergroupEventMessage<SupergroupEvent>?
asSuperPublicChat
Link copied to clipboard
common
inline fun Chat.asSuperPublicChat(): SuperPublicChat?
asTemporalRegistrationSecureValue
Link copied to clipboard
common
asTemporaryRegistration
Link copied to clipboard
common
asTextContent
Link copied to clipboard
common
inline fun ResendableContent.asTextContent(): TextContent?
asTextLinkTextSource
Link copied to clipboard
common
inline fun TextSource.asTextLinkTextSource(): TextLinkTextSource?
asTextMentionTextSource
Link copied to clipboard
common
inline fun TextSource.asTextMentionTextSource(): TextMentionTextSource?
asThumbedInlineQueryResult
Link copied to clipboard
common
asThumbedInputMedia
Link copied to clipboard
common
inline fun InputMedia.asThumbedInputMedia(): ThumbedInputMedia?
asThumbedMediaFile
Link copied to clipboard
common
inline fun TelegramMediaFile.asThumbedMediaFile(): ThumbedMediaFile?
asThumbSizedInlineQueryResult
Link copied to clipboard
common
asTitledInlineQueryResult
Link copied to clipboard
common
inline fun InlineQueryResult.asTitledInlineQueryResult(): TitledInlineQueryResult?
asTitledInputMedia
Link copied to clipboard
common
inline fun InputMedia.asTitledInputMedia(): TitledInputMedia?
asTypingAction
Link copied to clipboard
common
inline fun BotAction.asTypingAction(): TypingAction?
asUnderlineTextSource
Link copied to clipboard
common
inline fun TextSource.asUnderlineTextSource(): UnderlineTextSource?
asUnknownCallbackQueryType
Link copied to clipboard
common
inline fun CallbackQuery.asUnknownCallbackQueryType(): UnknownCallbackQueryType?
asUnknownChatType
Link copied to clipboard
common
inline fun Chat.asUnknownChatType(): UnknownChatType?
asUnknownInlineKeyboardButton
Link copied to clipboard
common
asUnknownMessageType
Link copied to clipboard
common
inline fun Message.asUnknownMessageType(): UnknownMessageType?
asUnknownPassportElementError
Link copied to clipboard
common
asUnknownPollType
Link copied to clipboard
common
inline fun Poll.asUnknownPollType(): UnknownPollType?
asUnknownUpdate
Link copied to clipboard
common
inline fun Update.asUnknownUpdate(): UnknownUpdate?
asUploadDocumentAction
Link copied to clipboard
common
inline fun BotAction.asUploadDocumentAction(): UploadDocumentAction?
asUploadPhotoAction
Link copied to clipboard
common
inline fun BotAction.asUploadPhotoAction(): UploadPhotoAction?
asUploadVideoAction
Link copied to clipboard
common
inline fun BotAction.asUploadVideoAction(): UploadVideoAction?
asUploadVideoNoteAction
Link copied to clipboard
common
inline fun BotAction.asUploadVideoNoteAction(): UploadVideoNoteAction?
asUploadVoiceAction
Link copied to clipboard
common
inline fun BotAction.asUploadVoiceAction(): UploadVoiceAction?
asURLInlineKeyboardButton
Link copied to clipboard
common
asUrlInlineQueryResult
Link copied to clipboard
common
inline fun InlineQueryResult.asUrlInlineQueryResult(): UrlInlineQueryResult?
asURLTextSource
Link copied to clipboard
common
inline fun TextSource.asURLTextSource(): URLTextSource?
asUser
Link copied to clipboard
common
inline fun Chat.asUser(): User?
asUsernameChat
Link copied to clipboard
common
inline fun Chat.asUsernameChat(): UsernameChat?
asUtilityBill
Link copied to clipboard
common
inline fun EncryptedPassportElement.asUtilityBill(): UtilityBill?
asUtilityBillSecureValue
Link copied to clipboard
common
inline fun SecureValue.asUtilityBillSecureValue(): UtilityBillSecureValue?
asVenueContent
Link copied to clipboard
common
inline fun ResendableContent.asVenueContent(): VenueContent?
asVideoContent
Link copied to clipboard
common
inline fun ResendableContent.asVideoContent(): VideoContent?
asVideoFile
Link copied to clipboard
common
inline fun TelegramMediaFile.asVideoFile(): VideoFile?
asVideoNoteContent
Link copied to clipboard
common
inline fun ResendableContent.asVideoNoteContent(): VideoNoteContent?
asVideoNoteFile
Link copied to clipboard
common
inline fun TelegramMediaFile.asVideoNoteFile(): VideoNoteFile?
asVisualMediaGroupContent
Link copied to clipboard
common
inline fun ResendableContent.asVisualMediaGroupContent(): VisualMediaGroupContent?
asVisualMediaGroupMemberInputMedia
Link copied to clipboard
common
asVoiceChatEnded
Link copied to clipboard
common
inline fun ChatEvent.asVoiceChatEnded(): VoiceChatEnded?
asVoiceChatEvent
Link copied to clipboard
common
inline fun ChatEvent.asVoiceChatEvent(): VoiceChatEvent?
asVoiceChatParticipantsInvited
Link copied to clipboard
common
asVoiceChatStarted
Link copied to clipboard
common
inline fun ChatEvent.asVoiceChatStarted(): VoiceChatStarted?
asVoiceContent
Link copied to clipboard
common
inline fun ResendableContent.asVoiceContent(): VoiceContent?
asVoiceFile
Link copied to clipboard
common
inline fun TelegramMediaFile.asVoiceFile(): VoiceFile?
calculateSlotMachineResult
Link copied to clipboard
common
fun Dice.calculateSlotMachineResult(): SlotMachineResult?
commonMessages
Link copied to clipboard
common
inline fun <C : MessageContent, T : ContentMessage<C>> Flow<T>.commonMessages(): Flow<CommonMessage<C>>
Shortcut for onlyCommonMessages
flatMap
Link copied to clipboard
common
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
common
fun Flow<ContentMessage<*>>.onlyAnimationContentMessages(): Flow<ContentMessage<AnimationContent>>
onlyAudioContentMessages
Link copied to clipboard
common
fun Flow<ContentMessage<*>>.onlyAudioContentMessages(): Flow<ContentMessage<AudioContent>>
onlyCommonMessages
Link copied to clipboard
common
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
common
fun Flow<ContentMessage<*>>.onlyContactContentMessages(): Flow<ContentMessage<ContactContent>>
onlyDiceContentMessages
Link copied to clipboard
common
fun Flow<ContentMessage<*>>.onlyDiceContentMessages(): Flow<ContentMessage<DiceContent>>
onlyDocumentContentMessages
Link copied to clipboard
common
fun Flow<ContentMessage<*>>.onlyDocumentContentMessages(): Flow<ContentMessage<DocumentContent>>
onlyGameContentMessages
Link copied to clipboard
common
fun Flow<ContentMessage<*>>.onlyGameContentMessages(): Flow<ContentMessage<GameContent>>
onlyInlineMessageIdDataCallbackQueries
Link copied to clipboard
common
onlyInvoiceContentMessages
Link copied to clipboard
common
fun Flow<ContentMessage<*>>.onlyInvoiceContentMessages(): Flow<ContentMessage<InvoiceContent>>
onlyLocationContentMessages
Link copied to clipboard
common
fun Flow<ContentMessage<*>>.onlyLocationContentMessages(): Flow<ContentMessage<LocationContent>>
onlyMessageDataCallbackQueries
Link copied to clipboard
common
fun <T : CallbackQuery> Flow<T>.onlyMessageDataCallbackQueries(): Flow<MessageDataCallbackQuery>
onlyPhotoContentMessages
Link copied to clipboard
common
fun Flow<ContentMessage<*>>.onlyPhotoContentMessages(): Flow<ContentMessage<PhotoContent>>
onlyPollContentMessages
Link copied to clipboard
common
fun Flow<ContentMessage<*>>.onlyPollContentMessages(): Flow<ContentMessage<PollContent>>
onlySentViaBot
Link copied to clipboard
common
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
common
fun Flow<ContentMessage<*>>.onlyStickerContentMessages(): Flow<ContentMessage<StickerContent>>
onlyTextContentMessages
Link copied to clipboard
common
fun Flow<ContentMessage<*>>.onlyTextContentMessages(): Flow<ContentMessage<TextContent>>
onlyVenueContentMessages
Link copied to clipboard
common
fun Flow<ContentMessage<*>>.onlyVenueContentMessages(): Flow<ContentMessage<VenueContent>>
onlyVideoContentMessages
Link copied to clipboard
common
fun Flow<ContentMessage<*>>.onlyVideoContentMessages(): Flow<ContentMessage<VideoContent>>
onlyVideoNoteContentMessages
Link copied to clipboard
common
fun Flow<ContentMessage<*>>.onlyVideoNoteContentMessages(): Flow<ContentMessage<VideoNoteContent>>
onlyVoiceContentMessages
Link copied to clipboard
common
fun Flow<ContentMessage<*>>.onlyVoiceContentMessages(): Flow<ContentMessage<VoiceContent>>
requireAddressSecureValue
Link copied to clipboard
common
inline fun SecureValue.requireAddressSecureValue(): AddressSecureValue
requireAdministratorChatMember
Link copied to clipboard
common
inline fun ChatMember.requireAdministratorChatMember(): AdministratorChatMember
requireAnimationContent
Link copied to clipboard
common
inline fun ResendableContent.requireAnimationContent(): AnimationContent
requireAnimationFile
Link copied to clipboard
common
inline fun TelegramMediaFile.requireAnimationFile(): AnimationFile
requireAnonymousGroupContentMessage
Link copied to clipboard
requireAudioContent
Link copied to clipboard
common
inline fun ResendableContent.requireAudioContent(): AudioContent
requireAudioFile
Link copied to clipboard
common
inline fun TelegramMediaFile.requireAudioFile(): AudioFile
requireAudioMediaGroupContent
Link copied to clipboard
common
requireAudioMediaGroupMemberInputMedia
Link copied to clipboard
requireBankStatement
Link copied to clipboard
common
inline fun EncryptedPassportElement.requireBankStatement(): BankStatement
requireBankStatementSecureValue
Link copied to clipboard
common
requireBannedChatMember
Link copied to clipboard
common
inline fun ChatMember.requireBannedChatMember(): BannedChatMember
requireBaseEditMessageUpdate
Link copied to clipboard
common
inline fun Update.requireBaseEditMessageUpdate(): BaseEditMessageUpdate
requireBaseInlineQuery
Link copied to clipboard
common
inline fun InlineQuery.requireBaseInlineQuery(): BaseInlineQuery
requireBaseMessageUpdate
Link copied to clipboard
common
inline fun Update.requireBaseMessageUpdate(): BaseMessageUpdate
requireBaseSentMessageUpdate
Link copied to clipboard
common
inline fun Update.requireBaseSentMessageUpdate(): BaseSentMessageUpdate
requireBasketballDiceAnimationType
Link copied to clipboard
common
requireBoldTextSource
Link copied to clipboard
common
inline fun TextSource.requireBoldTextSource(): BoldTextSource
requireBot
Link copied to clipboard
common
inline fun Chat.requireBot(): Bot
requireBotCommandTextSource
Link copied to clipboard
common
inline fun TextSource.requireBotCommandTextSource(): BotCommandTextSource
requireBowlingDiceAnimationType
Link copied to clipboard
common
requireCallbackQueryUpdate
Link copied to clipboard
common
inline fun Update.requireCallbackQueryUpdate(): CallbackQueryUpdate
requireCashTagTextSource
Link copied to clipboard
common
inline fun TextSource.requireCashTagTextSource(): CashTagTextSource
requireChannelChat
Link copied to clipboard
common
inline fun Chat.requireChannelChat(): ChannelChat
requireChannelChatCreated
Link copied to clipboard
common
inline fun ChatEvent.requireChannelChatCreated(): ChannelChatCreated
requireChannelContentMessage
Link copied to clipboard
common
requireChannelContentMessageImpl
Link copied to clipboard
common
requireChannelEvent
Link copied to clipboard
common
inline fun ChatEvent.requireChannelEvent(): ChannelEvent
requireChannelEventMessage
Link copied to clipboard
common
inline fun Message.requireChannelEventMessage(): ChannelEventMessage<ChannelEvent>
requireChannelMediaGroupMessage
Link copied to clipboard
common
requireChannelPostMediaGroupUpdate
Link copied to clipboard
common
requireChannelPostUpdate
Link copied to clipboard
common
inline fun Update.requireChannelPostUpdate(): ChannelPostUpdate
requireChatEventMessage
Link copied to clipboard
common
inline fun Message.requireChatEventMessage(): ChatEventMessage<ChatEvent>
requireChatMemberUpdatedUpdate
Link copied to clipboard
common
inline fun Update.requireChatMemberUpdatedUpdate(): ChatMemberUpdatedUpdate
requireChosenInlineResultUpdate
Link copied to clipboard
common
inline fun Update.requireChosenInlineResultUpdate(): ChosenInlineResultUpdate
requireCodeTextSource
Link copied to clipboard
common
inline fun TextSource.requireCodeTextSource(): CodeTextSource
requireCommonBot
Link copied to clipboard
common
inline fun Chat.requireCommonBot(): CommonBot
requireCommonChatMemberUpdatedUpdate
Link copied to clipboard
common
requireCommonEvent
Link copied to clipboard
common
inline fun ChatEvent.requireCommonEvent(): CommonEvent
requireCommonGroupContentMessage
Link copied to clipboard
common
requireCommonGroupEventMessage
Link copied to clipboard
common
requireCommonMediaGroupMessage
Link copied to clipboard
common
requireCommonMessage
Link copied to clipboard
common
inline fun Message.requireCommonMessage(): CommonMessage<MessageContent>
requireCommonPassport
Link copied to clipboard
common
inline fun EncryptedPassportElement.requireCommonPassport(): CommonPassport
requireCommonPassportSecureValue
Link copied to clipboard
common
requireCommonSupergroupEventMessage
Link copied to clipboard
requireCommonUser
Link copied to clipboard
common
inline fun Chat.requireCommonUser(): CommonUser
requireContactContent
Link copied to clipboard
common
inline fun ResendableContent.requireContactContent(): ContactContent
requireContentMessage
Link copied to clipboard
common
inline fun Message.requireContentMessage(): ContentMessage<MessageContent>
requireCreatorChatMember
Link copied to clipboard
common
inline fun ChatMember.requireCreatorChatMember(): CreatorChatMember
requireCubeDiceAnimationType
Link copied to clipboard
common
requireCustomDiceAnimationType
Link copied to clipboard
common
requireDartsDiceAnimationType
Link copied to clipboard
common
requireDataCallbackQuery
Link copied to clipboard
common
inline fun CallbackQuery.requireDataCallbackQuery(): DataCallbackQuery
requireDeleteChatPhoto
Link copied to clipboard
common
inline fun ChatEvent.requireDeleteChatPhoto(): DeleteChatPhoto
requireDescribedInlineQueryResult
Link copied to clipboard
common
requireDiceContent
Link copied to clipboard
common
inline fun ResendableContent.requireDiceContent(): DiceContent
requireDocumentContent
Link copied to clipboard
common
inline fun ResendableContent.requireDocumentContent(): DocumentContent
requireDocumentFile
Link copied to clipboard
common
inline fun TelegramMediaFile.requireDocumentFile(): DocumentFile
requireDocumentMediaGroupContent
Link copied to clipboard
common
requireDriverLicense
Link copied to clipboard
common
inline fun EncryptedPassportElement.requireDriverLicense(): DriverLicense
requireDriverLicenseSecureValue
Link copied to clipboard
common
requireDuratedInputMedia
Link copied to clipboard
common
inline fun InputMedia.requireDuratedInputMedia(): DuratedInputMedia
requireEditChannelPostMediaGroupUpdate
Link copied to clipboard
common
requireEditChannelPostUpdate
Link copied to clipboard
common
inline fun Update.requireEditChannelPostUpdate(): EditChannelPostUpdate
requireEditMediaGroupUpdate
Link copied to clipboard
common
inline fun Update.requireEditMediaGroupUpdate(): EditMediaGroupUpdate
requireEditMessageMediaGroupUpdate
Link copied to clipboard
common
requireEditMessageUpdate
Link copied to clipboard
common
inline fun Update.requireEditMessageUpdate(): EditMessageUpdate
requireEmail
Link copied to clipboard
common
inline fun EncryptedPassportElement.requireEmail(): Email
requireEMailTextSource
Link copied to clipboard
common
inline fun TextSource.requireEMailTextSource(): EMailTextSource
requireEncryptedAddress
Link copied to clipboard
common
inline fun EncryptedPassportElement.requireEncryptedAddress(): EncryptedAddress
requireEncryptedPersonalDetails
Link copied to clipboard
requireExtendedBot
Link copied to clipboard
common
inline fun Chat.requireExtendedBot(): ExtendedBot
requireExtendedChannelChat
Link copied to clipboard
common
inline fun Chat.requireExtendedChannelChat(): ExtendedChannelChat
requireExtendedChat
Link copied to clipboard
common
inline fun Chat.requireExtendedChat(): ExtendedChat
requireExtendedGroupChat
Link copied to clipboard
common
inline fun Chat.requireExtendedGroupChat(): ExtendedGroupChat
requireExtendedPrivateChat
Link copied to clipboard
common
inline fun Chat.requireExtendedPrivateChat(): ExtendedPrivateChat
requireExtendedPublicChat
Link copied to clipboard
common
inline fun Chat.requireExtendedPublicChat(): ExtendedPublicChat
requireExtendedSupergroupChat
Link copied to clipboard
common
inline fun Chat.requireExtendedSupergroupChat(): ExtendedSupergroupChat
requireFile
Link copied to clipboard
common
inline fun TelegramMediaFile.requireFile(): File
requireFileInlineQueryResult
Link copied to clipboard
common
requireFindLocationAction
Link copied to clipboard
common
inline fun BotAction.requireFindLocationAction(): FindLocationAction
requireFootballDiceAnimationType
Link copied to clipboard
common
requireForceReply
Link copied to clipboard
common
inline fun KeyboardMarkup.requireForceReply(): ReplyForce
requireFromUserMessage
Link copied to clipboard
common
inline fun Message.requireFromUserMessage(): FromUserMessage
requireGameContent
Link copied to clipboard
common
inline fun ResendableContent.requireGameContent(): GameContent
requireGameShortNameCallbackQuery
Link copied to clipboard
common
requireGroupChat
Link copied to clipboard
common
inline fun Chat.requireGroupChat(): GroupChat
requireGroupChatCreated
Link copied to clipboard
common
inline fun ChatEvent.requireGroupChatCreated(): GroupChatCreated
requireGroupContentMessage
Link copied to clipboard
common
inline fun Message.requireGroupContentMessage(): GroupContentMessage<MessageContent>
requireGroupEvent
Link copied to clipboard
common
inline fun ChatEvent.requireGroupEvent(): GroupEvent
requireGroupEventMessage
Link copied to clipboard
common
inline fun Message.requireGroupEventMessage(): GroupEventMessage<GroupEvent>
requireHashTagTextSource
Link copied to clipboard
common
inline fun TextSource.requireHashTagTextSource(): HashTagTextSource
requireIdentityCard
Link copied to clipboard
common
inline fun EncryptedPassportElement.requireIdentityCard(): IdentityCard
requireIdentityCardSecureValue
Link copied to clipboard
common
inline fun SecureValue.requireIdentityCardSecureValue(): IdentityCardSecureValue
requireInlineKeyboardMarkup
Link copied to clipboard
common
inline fun KeyboardMarkup.requireInlineKeyboardMarkup(): InlineKeyboardMarkup
requireInlineMessageIdCallbackQuery
Link copied to clipboard
common
requireInlineQueryResultArticle
Link copied to clipboard
common
requireInlineQueryResultAudio
Link copied to clipboard
common
requireInlineQueryResultAudioCached
Link copied to clipboard
requireInlineQueryResultAudioCommon
Link copied to clipboard
requireInlineQueryResultContact
Link copied to clipboard
common
requireInlineQueryResultDocument
Link copied to clipboard
common
requireInlineQueryResultGame
Link copied to clipboard
common
requireInlineQueryResultGif
Link copied to clipboard
common
inline fun InlineQueryResult.requireInlineQueryResultGif(): InlineQueryResultGif
requireInlineQueryResultGifCached
Link copied to clipboard
common
requireInlineQueryResultGifCommon
Link copied to clipboard
common
requireInlineQueryResultLocation
Link copied to clipboard
common
requireInlineQueryResultMpeg4Gif
Link copied to clipboard
common
requireInlineQueryResultPhoto
Link copied to clipboard
common
requireInlineQueryResultPhotoCached
Link copied to clipboard
requireInlineQueryResultPhotoCommon
Link copied to clipboard
requireInlineQueryResultVenue
Link copied to clipboard
common
requireInlineQueryResultVideo
Link copied to clipboard
common
requireInlineQueryResultVideoCached
Link copied to clipboard
requireInlineQueryResultVideoCommon
Link copied to clipboard
requireInlineQueryResultVoice
Link copied to clipboard
common
requireInlineQueryResultVoiceCached
Link copied to clipboard
requireInlineQueryResultVoiceCommon
Link copied to clipboard
requireInlineQueryUpdate
Link copied to clipboard
common
inline fun Update.requireInlineQueryUpdate(): InlineQueryUpdate
requireInputContactMessageContent
Link copied to clipboard
common
requireInputLocationMessageContent
Link copied to clipboard
requireInputMediaAnimation
Link copied to clipboard
common
inline fun InputMedia.requireInputMediaAnimation(): InputMediaAnimation
requireInputMediaAudio
Link copied to clipboard
common
inline fun InputMedia.requireInputMediaAudio(): InputMediaAudio
requireInputMediaDocument
Link copied to clipboard
common
inline fun InputMedia.requireInputMediaDocument(): InputMediaDocument
requireInputMediaPhoto
Link copied to clipboard
common
inline fun InputMedia.requireInputMediaPhoto(): InputMediaPhoto
requireInputMediaVideo
Link copied to clipboard
common
inline fun InputMedia.requireInputMediaVideo(): InputMediaVideo
requireInputTextMessageContent
Link copied to clipboard
common
requireInputVenueMessageContent
Link copied to clipboard
common
requireInternalPassport
Link copied to clipboard
common
inline fun EncryptedPassportElement.requireInternalPassport(): InternalPassport
requireInternalPassportSecureValue
Link copied to clipboard
common
requireInvoiceContent
Link copied to clipboard
common
inline fun ResendableContent.requireInvoiceContent(): InvoiceContent
requireItalicTextSource
Link copied to clipboard
common
inline fun TextSource.requireItalicTextSource(): ItalicTextSource
requireKickedChatMember
Link copied to clipboard
common
inline fun ChatMember.requireKickedChatMember(): KickedChatMember
requireLeftChatMember
Link copied to clipboard
common
inline fun ChatMember.requireLeftChatMember(): LeftChatMember
inline fun ChatEvent.requireLeftChatMember(): LeftChatMember
requireLocationContent
Link copied to clipboard
common
inline fun ResendableContent.requireLocationContent(): LocationContent
requireLocationInlineQuery
Link copied to clipboard
common
inline fun InlineQuery.requireLocationInlineQuery(): LocationInlineQuery
requireMediaCollectionContent
Link copied to clipboard
requireMediaContent
Link copied to clipboard
common
inline fun ResendableContent.requireMediaContent(): MediaContent
requireMediaGroupContent
Link copied to clipboard
common
inline fun ResendableContent.requireMediaGroupContent(): MediaGroupContent
requireMediaGroupMemberInputMedia
Link copied to clipboard
common
requireMediaGroupMessage
Link copied to clipboard
common
inline fun Message.requireMediaGroupMessage(): MediaGroupMessage<MediaGroupContent>
requireMediaGroupUpdate
Link copied to clipboard
common
inline fun Update.requireMediaGroupUpdate(): MediaGroupUpdate
requireMemberChatMember
Link copied to clipboard
common
inline fun ChatMember.requireMemberChatMember(): MemberChatMember
requireMentionTextSource
Link copied to clipboard
common
inline fun TextSource.requireMentionTextSource(): MentionTextSource
requireMessageAutoDeleteTimerChanged
Link copied to clipboard
common
requireMessageCallbackQuery
Link copied to clipboard
common
inline fun CallbackQuery.requireMessageCallbackQuery(): MessageCallbackQuery
requireMessageContent
Link copied to clipboard
common
inline fun ResendableContent.requireMessageContent(): MessageContent
requireMessageDataCallbackQuery
Link copied to clipboard
common
requireMessageMediaGroupUpdate
Link copied to clipboard
common
inline fun Update.requireMessageMediaGroupUpdate(): MessageMediaGroupUpdate
requireMessageUpdate
Link copied to clipboard
common
inline fun Update.requireMessageUpdate(): MessageUpdate
requireMimedMediaFile
Link copied to clipboard
common
inline fun TelegramMediaFile.requireMimedMediaFile(): MimedMediaFile
requireMultilevelTextSource
Link copied to clipboard
common
inline fun TextSource.requireMultilevelTextSource(): MultilevelTextSource
requireMultipleAnswersPoll
Link copied to clipboard
common
inline fun Poll.requireMultipleAnswersPoll(): MultipleAnswersPoll
requireMyChatMemberUpdatedUpdate
Link copied to clipboard
common
inline fun Update.requireMyChatMemberUpdatedUpdate(): MyChatMemberUpdatedUpdate
requireNewChatMembers
Link copied to clipboard
common
inline fun ChatEvent.requireNewChatMembers(): NewChatMembers
requireNewChatPhoto
Link copied to clipboard
common
inline fun ChatEvent.requireNewChatPhoto(): NewChatPhoto
requireNewChatTitle
Link copied to clipboard
common
inline fun ChatEvent.requireNewChatTitle(): NewChatTitle
requireOtherDocumentsSecureValue
Link copied to clipboard
common
requirePassport
Link copied to clipboard
common
inline fun EncryptedPassportElement.requirePassport(): Passport
requirePassportElementErrorFile
Link copied to clipboard
common
requirePassportElementErrorFiles
Link copied to clipboard
common
requirePassportElementErrorSelfie
Link copied to clipboard
requirePassportElementFileError
Link copied to clipboard
common
requirePassportElementFilesError
Link copied to clipboard
common
requirePassportMessage
Link copied to clipboard
common
inline fun Message.requirePassportMessage(): PassportMessage
requirePassportRegistration
Link copied to clipboard
common
requirePassportSecureValue
Link copied to clipboard
common
inline fun SecureValue.requirePassportSecureValue(): PassportSecureValue
requirePassportSingleElementError
Link copied to clipboard
requirePathedFile
Link copied to clipboard
common
inline fun TelegramMediaFile.requirePathedFile(): PathedFile
requirePayInlineKeyboardButton
Link copied to clipboard
common
requirePersonalDetailsSecureValue
Link copied to clipboard
common
requirePhoneNumber
Link copied to clipboard
common
inline fun EncryptedPassportElement.requirePhoneNumber(): PhoneNumber
requirePhoneNumberTextSource
Link copied to clipboard
common
inline fun TextSource.requirePhoneNumberTextSource(): PhoneNumberTextSource
requirePhotoContent
Link copied to clipboard
common
inline fun ResendableContent.requirePhotoContent(): PhotoContent
requirePhotoSize
Link copied to clipboard
common
inline fun TelegramMediaFile.requirePhotoSize(): PhotoSize
requirePinnedMessage
Link copied to clipboard
common
inline fun ChatEvent.requirePinnedMessage(): PinnedMessage
requirePlayableMediaFile
Link copied to clipboard
common
inline fun TelegramMediaFile.requirePlayableMediaFile(): PlayableMediaFile
requirePollAnswerUpdate
Link copied to clipboard
common
inline fun Update.requirePollAnswerUpdate(): PollAnswerUpdate
requirePollContent
Link copied to clipboard
common
inline fun ResendableContent.requirePollContent(): PollContent
requirePollUpdate
Link copied to clipboard
common
inline fun Update.requirePollUpdate(): PollUpdate
requirePossiblyEditedMessage
Link copied to clipboard
common
inline fun Message.requirePossiblyEditedMessage(): PossiblyEditedMessage
requirePossiblyForwardedMessage
Link copied to clipboard
common
inline fun Message.requirePossiblyForwardedMessage(): PossiblyForwardedMessage
requirePossiblyPaymentMessage
Link copied to clipboard
common
inline fun Message.requirePossiblyPaymentMessage(): PossiblyPaymentMessage
requirePreCheckoutQueryUpdate
Link copied to clipboard
common
inline fun Update.requirePreCheckoutQueryUpdate(): PreCheckoutQueryUpdate
requirePreTextSource
Link copied to clipboard
common
inline fun TextSource.requirePreTextSource(): PreTextSource
requirePrivateChat
Link copied to clipboard
common
inline fun Chat.requirePrivateChat(): PrivateChat
requirePrivateContentMessage
Link copied to clipboard
common
requirePrivateContentMessageImpl
Link copied to clipboard
common
requireProximityAlertTriggered
Link copied to clipboard
common
inline fun ChatEvent.requireProximityAlertTriggered(): ProximityAlertTriggered
requirePublicChat
Link copied to clipboard
common
inline fun Chat.requirePublicChat(): PublicChat
requirePublicContentMessage
Link copied to clipboard
common
requireQuizPoll
Link copied to clipboard
common
inline fun Poll.requireQuizPoll(): QuizPoll
requireRecordVideoAction
Link copied to clipboard
common
inline fun BotAction.requireRecordVideoAction(): RecordVideoAction
requireRecordVideoNoteAction
Link copied to clipboard
common
inline fun BotAction.requireRecordVideoNoteAction(): RecordVideoNoteAction
requireRecordVoiceAction
Link copied to clipboard
common
inline fun BotAction.requireRecordVoiceAction(): RecordVoiceAction
requireRegularPoll
Link copied to clipboard
common
inline fun Poll.requireRegularPoll(): RegularPoll
requireRegularTextSource
Link copied to clipboard
common
inline fun TextSource.requireRegularTextSource(): RegularTextSource
requireRentalAgreement
Link copied to clipboard
common
inline fun EncryptedPassportElement.requireRentalAgreement(): RentalAgreement
requireRentalAgreementSecureValue
Link copied to clipboard
common
requireReplyKeyboardMarkup
Link copied to clipboard
common
inline fun KeyboardMarkup.requireReplyKeyboardMarkup(): ReplyKeyboardMarkup
requireReplyKeyboardRemove
Link copied to clipboard
common
inline fun KeyboardMarkup.requireReplyKeyboardRemove(): ReplyKeyboardRemove
requireRestrictedChatMember
Link copied to clipboard
common
inline fun ChatMember.requireRestrictedChatMember(): RestrictedChatMember
requireSecureValueIdentity
Link copied to clipboard
common
inline fun SecureValue.requireSecureValueIdentity(): SecureValueIdentity
requireSecureValueWithData
Link copied to clipboard
common
inline fun SecureValue.requireSecureValueWithData(): SecureValueWithData
requireSecureValueWithFiles
Link copied to clipboard
common
inline fun SecureValue.requireSecureValueWithFiles(): SecureValueWithFiles
requireSecureValueWithReverseSide
Link copied to clipboard
common
requireSecureValueWithTranslations
Link copied to clipboard
common
requireSentMediaGroupUpdate
Link copied to clipboard
common
inline fun Update.requireSentMediaGroupUpdate(): SentMediaGroupUpdate
requireShippingQueryUpdate
Link copied to clipboard
common
inline fun Update.requireShippingQueryUpdate(): ShippingQueryUpdate
requireSignedMessage
Link copied to clipboard
common
inline fun Message.requireSignedMessage(): SignedMessage
requireSizedInlineQueryResult
Link copied to clipboard
common
requireSizedInputMedia
Link copied to clipboard
common
inline fun InputMedia.requireSizedInputMedia(): SizedInputMedia
requireSizedMediaFile
Link copied to clipboard
common
inline fun TelegramMediaFile.requireSizedMediaFile(): SizedMediaFile
requireSlotMachineDiceAnimationType
Link copied to clipboard
requireSpecialRightsChatMember
Link copied to clipboard
common
inline fun ChatMember.requireSpecialRightsChatMember(): SpecialRightsChatMember
requireSticker
Link copied to clipboard
common
inline fun TelegramMediaFile.requireSticker(): Sticker
requireStickerContent
Link copied to clipboard
common
inline fun ResendableContent.requireStickerContent(): StickerContent
requireStrikethroughTextSource
Link copied to clipboard
common
inline fun TextSource.requireStrikethroughTextSource(): StrikethroughTextSource
requireSupergroupChat
Link copied to clipboard
common
inline fun Chat.requireSupergroupChat(): SupergroupChat
requireSupergroupChatCreated
Link copied to clipboard
common
inline fun ChatEvent.requireSupergroupChatCreated(): SupergroupChatCreated
requireSupergroupEvent
Link copied to clipboard
common
inline fun ChatEvent.requireSupergroupEvent(): SupergroupEvent
requireSupergroupEventMessage
Link copied to clipboard
common
requireSuperPublicChat
Link copied to clipboard
common
inline fun Chat.requireSuperPublicChat(): SuperPublicChat
requireTemporaryRegistration
Link copied to clipboard
common
requireTextContent
Link copied to clipboard
common
inline fun ResendableContent.requireTextContent(): TextContent
requireTextLinkTextSource
Link copied to clipboard
common
inline fun TextSource.requireTextLinkTextSource(): TextLinkTextSource
requireTextMentionTextSource
Link copied to clipboard
common
inline fun TextSource.requireTextMentionTextSource(): TextMentionTextSource
requireThumbedInlineQueryResult
Link copied to clipboard
common
requireThumbedInputMedia
Link copied to clipboard
common
inline fun InputMedia.requireThumbedInputMedia(): ThumbedInputMedia
requireThumbedMediaFile
Link copied to clipboard
common
inline fun TelegramMediaFile.requireThumbedMediaFile(): ThumbedMediaFile
requireThumbSizedInlineQueryResult
Link copied to clipboard
common
requireTitledInlineQueryResult
Link copied to clipboard
common
requireTitledInputMedia
Link copied to clipboard
common
inline fun InputMedia.requireTitledInputMedia(): TitledInputMedia
requireTypingAction
Link copied to clipboard
common
inline fun BotAction.requireTypingAction(): TypingAction
requireUnderlineTextSource
Link copied to clipboard
common
inline fun TextSource.requireUnderlineTextSource(): UnderlineTextSource
requireUnknownCallbackQueryType
Link copied to clipboard
common
requireUnknownChatType
Link copied to clipboard
common
inline fun Chat.requireUnknownChatType(): UnknownChatType
requireUnknownInlineKeyboardButton
Link copied to clipboard
requireUnknownMessageType
Link copied to clipboard
common
inline fun Message.requireUnknownMessageType(): UnknownMessageType
requireUnknownPassportElementError
Link copied to clipboard
requireUnknownPollType
Link copied to clipboard
common
inline fun Poll.requireUnknownPollType(): UnknownPollType
requireUnknownUpdate
Link copied to clipboard
common
inline fun Update.requireUnknownUpdate(): UnknownUpdate
requireUploadDocumentAction
Link copied to clipboard
common
inline fun BotAction.requireUploadDocumentAction(): UploadDocumentAction
requireUploadPhotoAction
Link copied to clipboard
common
inline fun BotAction.requireUploadPhotoAction(): UploadPhotoAction
requireUploadVideoAction
Link copied to clipboard
common
inline fun BotAction.requireUploadVideoAction(): UploadVideoAction
requireUploadVideoNoteAction
Link copied to clipboard
common
inline fun BotAction.requireUploadVideoNoteAction(): UploadVideoNoteAction
requireUploadVoiceAction
Link copied to clipboard
common
inline fun BotAction.requireUploadVoiceAction(): UploadVoiceAction
requireURLInlineKeyboardButton
Link copied to clipboard
common
requireUrlInlineQueryResult
Link copied to clipboard
common
inline fun InlineQueryResult.requireUrlInlineQueryResult(): UrlInlineQueryResult
requireURLTextSource
Link copied to clipboard
common
inline fun TextSource.requireURLTextSource(): URLTextSource
requireUser
Link copied to clipboard
common
inline fun Chat.requireUser(): User
requireUsernameChat
Link copied to clipboard
common
inline fun Chat.requireUsernameChat(): UsernameChat
requireUtilityBill
Link copied to clipboard
common
inline fun EncryptedPassportElement.requireUtilityBill(): UtilityBill
requireUtilityBillSecureValue
Link copied to clipboard
common
inline fun SecureValue.requireUtilityBillSecureValue(): UtilityBillSecureValue
requireVenueContent
Link copied to clipboard
common
inline fun ResendableContent.requireVenueContent(): VenueContent
requireVideoContent
Link copied to clipboard
common
inline fun ResendableContent.requireVideoContent(): VideoContent
requireVideoFile
Link copied to clipboard
common
inline fun TelegramMediaFile.requireVideoFile(): VideoFile
requireVideoNoteContent
Link copied to clipboard
common
inline fun ResendableContent.requireVideoNoteContent(): VideoNoteContent
requireVideoNoteFile
Link copied to clipboard
common
inline fun TelegramMediaFile.requireVideoNoteFile(): VideoNoteFile
requireVisualMediaGroupContent
Link copied to clipboard
common
requireVoiceChatEnded
Link copied to clipboard
common
inline fun ChatEvent.requireVoiceChatEnded(): VoiceChatEnded
requireVoiceChatEvent
Link copied to clipboard
common
inline fun ChatEvent.requireVoiceChatEvent(): VoiceChatEvent
requireVoiceChatParticipantsInvited
Link copied to clipboard
common
requireVoiceChatStarted
Link copied to clipboard
common
inline fun ChatEvent.requireVoiceChatStarted(): VoiceChatStarted
requireVoiceContent
Link copied to clipboard
common
inline fun ResendableContent.requireVoiceContent(): VoiceContent
requireVoiceFile
Link copied to clipboard
common
inline fun TelegramMediaFile.requireVoiceFile(): VoiceFile
requireWithContent
Link copied to clipboard
common
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>
withContent
Link copied to clipboard
common
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
common
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
common
val Int.asSlotMachineReelImage: SlotMachineReelImage
asSlotMachineReelImage
Link copied to clipboard
common
val String.asSlotMachineReelImage: SlotMachineReelImage