Package dev.inmo.tgbotapi.extensions.utils

Types

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

Functions

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

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

Shortcut for onlyCommonMessages

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

Simple factory to convert ContentMessage to a CommonMessage

Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyContactContentMessages(): Flow<ContentMessage<ContactContent>>
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyDiceContentMessages(): Flow<ContentMessage<DiceContent>>
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyDocumentContentMessages(): Flow<ContentMessage<DocumentContent>>
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyGameContentMessages(): Flow<ContentMessage<GameContent>>
Link copied to clipboard
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyInvoiceContentMessages(): Flow<ContentMessage<InvoiceContent>>
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyLocationContentMessages(): Flow<ContentMessage<LocationContent>>
Link copied to clipboard
fun <T : CallbackQuery> Flow<T>.onlyMessageDataCallbackQueries(): Flow<MessageDataCallbackQuery>
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyPhotoContentMessages(): Flow<ContentMessage<PhotoContent>>
Link copied to clipboard
fun Flow<ContentMessage<*>>.onlyPollContentMessages(): Flow<ContentMessage<PollContent>>
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

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

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