Package-level declarations
Functions
Link copied to clipboard
inline fun TelegramBot.addStickerToSet(userId: Long, name: String, input: InputSticker): AddStickerToSetAction
inline fun TelegramBot.addStickerToSet(userId: Long, name: String, noinline input: () -> InputSticker): AddStickerToSetAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.answerInlineQuery(inlineQueryId: String, vararg result: InlineQueryResult): AnswerInlineQueryAction
inline fun TelegramBot.answerInlineQuery(inlineQueryId: String, noinline results: ListingBuilder<InlineQueryResult>.() -> Unit): AnswerInlineQueryAction
inline fun TelegramBot.answerInlineQuery(inlineQueryId: String, results: List<InlineQueryResult>): AnswerInlineQueryAction
Link copied to clipboard
inline fun TelegramBot.answerPreCheckoutQuery(preCheckoutQueryId: String, ok: Boolean, errorMessage: String? = null): AnswerPreCheckoutQueryAction
Link copied to clipboard
inline fun TelegramBot.answerShippingQuery(shippingQueryId: String, ok: Boolean, errorMessage: String? = null, vararg shippingOption: ShippingOption): AnswerShippingQueryAction
inline fun TelegramBot.answerShippingQuery(shippingQueryId: String, ok: Boolean, errorMessage: String? = null, noinline shippingOptions: ListingBuilder<ShippingOption>.() -> Unit): AnswerShippingQueryAction
inline fun TelegramBot.answerShippingQuery(shippingQueryId: String, ok: Boolean, shippingOptions: List<ShippingOption>? = null, errorMessage: String? = null): AnswerShippingQueryAction
Link copied to clipboard
inline fun TelegramBot.answerWebAppQuery(webAppQueryId: String, result: InlineQueryResult): AnswerWebAppQueryAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.banChatMember(user: User, untilDate: Instant? = null, revokeMessages: Boolean? = null): BanChatMemberAction
inline fun TelegramBot.banChatMember(userId: Long, untilDate: Instant? = null, revokeMessages: Boolean? = null): BanChatMemberAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.chatAction(action: ChatAction, messageThreadId: Int? = null): SendChatActionAction
inline fun TelegramBot.chatAction(messageThreadId: Int? = null, noinline block: () -> ChatAction): SendChatActionAction
Link copied to clipboard
Function to check is web app data is safe.
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 TelegramBot.copyMessages(fromChatId: Identifier, messageIds: List<Long>): CopyMessagesAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.createChatSubscriptionInviteLink(subscriptionPrice: Int, name: String? = null, subscriptionPeriod: Duration): CreateChatSubscriptionInviteLinkAction
Link copied to clipboard
inline fun TelegramBot.createForumTopic(name: String, iconColor: IconColor? = null, iconCustomEmojiId: String? = null): CreateForumTopicAction
Link copied to clipboard
inline fun TelegramBot.createInvoiceLink(title: String, description: String, currency: Currency, vararg prices: LabeledPrice, noinline payload: () -> String): CreateInvoiceLinkAction
inline fun TelegramBot.createInvoiceLink(title: String, description: String, payload: String, currency: Currency, prices: List<LabeledPrice>): CreateInvoiceLinkAction
Link copied to clipboard
inline fun TelegramBot.createNewStickerSet(userId: Long, name: String, title: String, stickers: List<InputSticker>): CreateNewStickerSetAction
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 TelegramBot.deleteMyCommands(languageCode: String? = null, scope: BotCommandScope? = null): DeleteMyCommandsAction
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 TelegramBot.editChatSubscriptionInviteLink(inviteLink: String, name: String? = null): EditChatSubscriptionInviteLinkAction
Link copied to clipboard
inline fun TelegramBot.editForumTopic(messageThreadId: Int, name: String? = null, iconCustomEmojiId: String? = null): EditForumTopicAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.editMessageLiveLocation(latitude: Float, longitude: Float): EditMessageLiveLocationAction
inline fun TelegramBot.editMessageLiveLocation(messageId: Long, latitude: Float, longitude: Float): EditMessageLiveLocationAction
Link copied to clipboard
inline fun TelegramBot.editMessageMedia(messageId: Long, inputMedia: InputMedia): EditMessageMediaAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.editMessageText(noinline block: EntitiesCtxBuilder<EditMessageTextAction>.() -> String): EditMessageTextAction
inline fun TelegramBot.editMessageText(messageId: Long, noinline block: () -> String): EditMessageTextAction
Link copied to clipboard
inline fun TelegramBot.editText(noinline block: EntitiesCtxBuilder<EditMessageTextAction>.() -> String): EditMessageTextAction
inline fun TelegramBot.editText(messageId: Long, noinline block: () -> String): EditMessageTextAction
Link copied to clipboard
inline fun TelegramBot.editUserStarSubscription(userId: Long, telegramPaymentChargeId: String, isCanceled: Boolean): EditUserStarSubscriptionAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.forwardMessage(fromChatId: Identifier, messageId: Long): ForwardMessageAction
Link copied to clipboard
inline fun TelegramBot.forwardMessages(fromChatId: User, vararg messageId: Long): ForwardMessagesAction
inline fun TelegramBot.forwardMessages(fromChatId: Chat, vararg messageId: Long): ForwardMessagesAction
inline fun TelegramBot.forwardMessages(fromChatId: Identifier, messageIds: List<Long>): ForwardMessagesAction
inline fun TelegramBot.forwardMessages(fromChatId: Long, vararg messageId: Long): ForwardMessagesAction
inline fun TelegramBot.forwardMessages(fromChatId: String, vararg messageId: Long): ForwardMessagesAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.getBusinessConnection(businessConnectionId: String): GetBusinessConnectionAction
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 TelegramBot.getCustomEmojiStickers(vararg customEmojiId: String): GetCustomEmojiStickersAction
inline fun TelegramBot.getCustomEmojiStickers(customEmojiIds: List<String>): GetCustomEmojiStickersAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.getMyCommands(languageCode: String? = null, scope: BotCommandScope? = null): GetMyCommandsAction
Link copied to clipboard
inline fun TelegramBot.getMyDefaultAdministratorRights(forChannel: Boolean? = null): GetMyDefaultAdministratorRightsAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.getMyShortDescription(languageCode: String? = null): GetMyShortDescriptionAction
Link copied to clipboard
inline fun TelegramBot.getStarTransactions(offset: Int? = null, limit: Int? = null): GetStarTransactionsAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.getUserProfilePhotos(user: User, offset: Int? = null, limit: Int? = null): GetUserProfilePhotosAction
inline fun TelegramBot.getUserProfilePhotos(userId: Long, offset: Int? = null, limit: Int? = null): GetUserProfilePhotosAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.invoice(title: String, description: String, payload: String, providerToken: String? = null, currency: Currency, prices: List<LabeledPrice>): SendInvoiceAction
inline fun TelegramBot.invoice(title: String, description: String, providerToken: String? = null, currency: Currency, vararg prices: LabeledPrice, noinline payload: () -> String): SendInvoiceAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.message(noinline block: EntitiesCtxBuilder<SendMessageAction>.() -> String): SendMessageAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.pinChatMessage(messageId: Long, disableNotification: Boolean? = null): PinChatMessageAction
Link copied to clipboard
inline fun TelegramBot.poll(question: String, noinline options: PollOptionsBuilder.() -> Unit): SendPollAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.refundStarPayment(telegramPaymentChargeId: String, userId: Long): RefundStarPaymentAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.replaceStickerInSet(userId: Long, name: String, oldSticker: String, sticker: InputSticker): ReplaceStickerInSetAction
Link copied to clipboard
inline fun TelegramBot.restrictChatMember(user: User, chatPermissions: ChatPermissions, untilDate: Instant? = null, useIndependentChatPermissions: Boolean? = null): RestrictChatMemberAction
inline fun TelegramBot.restrictChatMember(user: User, untilDate: Instant? = null, useIndependentChatPermissions: Boolean? = null, noinline chatPermissions: ChatPermissions.() -> Unit): RestrictChatMemberAction
inline fun TelegramBot.restrictChatMember(userId: Long, chatPermissions: ChatPermissions, untilDate: Instant? = null, useIndependentChatPermissions: Boolean? = null): RestrictChatMemberAction
inline fun TelegramBot.restrictChatMember(userId: Long, untilDate: Instant? = null, useIndependentChatPermissions: Boolean? = null, noinline chatPermissions: ChatPermissions.() -> Unit): RestrictChatMemberAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.savePreparedInlineMessage(userId: Long, result: InlineQueryResult): SavePreparedInlineMessageAction
inline fun TelegramBot.savePreparedInlineMessage(userId: Long, noinline result: () -> InlineQueryResult): SavePreparedInlineMessageAction
Link copied to clipboard
suspend fun <R> Action<R>.sendAnd(to: User, bot: TelegramBot, onFailure: suspend () -> Nothing = DEFAULT_FAILURE_ACTION, block: suspend R.() -> Unit)
suspend fun <R> Action<R>.sendAnd(to: Chat, bot: TelegramBot, onFailure: suspend () -> Nothing = DEFAULT_FAILURE_ACTION, block: suspend R.() -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.sendChatAction(action: ChatAction, messageThreadId: Int? = null): SendChatActionAction
inline fun TelegramBot.sendChatAction(messageThreadId: Int? = null, noinline block: () -> ChatAction): SendChatActionAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.sendGift(userId: Long, giftId: String, payForUpgrade: Boolean? = null, textParseMode: ParseMode? = null, noinline text: () -> String?): SendGiftAction
Link copied to clipboard
inline fun TelegramBot.sendInvoice(title: String, description: String, payload: String, providerToken: String? = null, currency: Currency, prices: List<LabeledPrice>): SendInvoiceAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.sendMessage(noinline block: EntitiesCtxBuilder<SendMessageAction>.() -> String): SendMessageAction
Link copied to clipboard
inline fun TelegramBot.sendPaidMedia(starCount: Int, vararg media: InputPaidMedia): SendPaidMediaAction
inline fun TelegramBot.sendPaidMedia(starCount: Int, noinline media: ListingBuilder<InputPaidMedia>.() -> Unit): SendPaidMediaAction
inline fun TelegramBot.sendPaidMedia(starCount: Int, media: List<InputPaidMedia>): SendPaidMediaAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.sendPoll(question: String, noinline options: PollOptionsBuilder.() -> Unit): SendPollAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.sendVenue(latitude: Float, longitude: Float, title: String, address: String): SendVenueAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.setChatAdministratorCustomTitle(user: User, customTitle: String): SetChatAdministratorCustomTitleAction
inline fun TelegramBot.setChatAdministratorCustomTitle(userId: Long, customTitle: String): SetChatAdministratorCustomTitleAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.setChatPermissions(permissions: ChatPermissions, useIndependentChatPermissions: Boolean? = null): SetChatPermissionsAction
inline fun TelegramBot.setChatPermissions(useIndependentChatPermissions: Boolean? = null, noinline permissions: ChatPermissions.() -> Unit): SetChatPermissionsAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.setCustomEmojiStickerSetThumbnail(name: String, customEmojiId: String? = null): SetCustomEmojiStickerSetThumbnailAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.setMessageReaction(messageId: Long, vararg reaction: ReactionType, isBig: Boolean? = null): SetMessageReactionAction
inline fun TelegramBot.setMessageReaction(messageId: Long, isBig: Boolean? = null, noinline reaction: ListingBuilder<ReactionType>.() -> Unit): SetMessageReactionAction
inline fun TelegramBot.setMessageReaction(messageId: Long, reaction: List<ReactionType>? = null, isBig: Boolean? = null): SetMessageReactionAction
Link copied to clipboard
inline fun TelegramBot.setMyCommands(languageCode: String? = null, scope: BotCommandScope? = null, vararg command: BotCommand): SetMyCommandsAction
inline fun TelegramBot.setMyCommands(languageCode: String? = null, scope: BotCommandScope? = null, noinline block: BotCommandsBuilder.() -> Unit): SetMyCommandsAction
inline fun TelegramBot.setMyCommands(languageCode: String? = null, scope: BotCommandScope? = null, command: List<BotCommand>): SetMyCommandsAction
Link copied to clipboard
inline fun TelegramBot.setMyDefaultAdministratorRights(rights: ChatAdministratorRights? = null, forChannel: Boolean? = null): SetMyDefaultAdministratorRightsAction
Link copied to clipboard
inline fun TelegramBot.setMyDescription(description: String? = null, languageCode: String? = null): SetMyDescriptionAction
Link copied to clipboard
inline fun TelegramBot.setMyName(name: String? = null, languageCode: String? = null): SetMyNameAction
Link copied to clipboard
inline fun TelegramBot.setMyShortDescription(description: String? = null, languageCode: String? = null): SetMyShortDescriptionAction
Link copied to clipboard
inline fun TelegramBot.setPassportDataError(userId: Long, vararg error: PassportElementError): SetPassportDataErrorsAction
Link copied to clipboard
inline fun TelegramBot.setPassportDataErrors(userId: Long, noinline errors: ListingBuilder<PassportElementError>.() -> Unit): SetPassportDataErrorsAction
inline fun TelegramBot.setPassportDataErrors(userId: Long, errors: List<PassportElementError>): SetPassportDataErrorsAction
Link copied to clipboard
inline fun TelegramBot.setStickerEmojiList(sticker: String, emojiList: List<String>): SetStickerEmojiListAction
Link copied to clipboard
inline fun TelegramBot.setStickerKeywords(sticker: String, keywords: List<String>? = null): SetStickerKeywordsAction
Link copied to clipboard
inline fun TelegramBot.setStickerMaskPosition(sticker: String, maskPosition: MaskPosition? = null): SetStickerMaskPositionAction
Link copied to clipboard
inline fun TelegramBot.setStickerPositionInSet(sticker: String, position: Int): SetStickerPositionInSetAction
Link copied to clipboard
inline fun TelegramBot.setStickerSetThumbnail(name: String, userId: Long, format: StickerFormat, thumbnail: ImplicitFile? = null): SetStickerSetThumbnailAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.setUserEmojiStatus(userId: Long, emojiStatusCustomEmojiId: String? = null, emojiStatusExpirationDate: Instant? = null): SetUserEmojiStatusAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.unbanChatMember(user: User, onlyIfBanned: Boolean? = null): UnbanChatMemberAction
inline fun TelegramBot.unbanChatMember(userId: Long, onlyIfBanned: Boolean? = null): UnbanChatMemberAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.unpinAllForumTopicMessages(messageThreadId: Int): UnpinAllForumTopicMessagesAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.uploadStickerFile(userId: Long, sticker: InputFile, stickerFormat: StickerFormat): UploadStickerFileAction
Link copied to clipboard
inline fun TelegramBot.venue(latitude: Float, longitude: Float, title: String, address: String): SendVenueAction
Link copied to clipboard
inline fun TelegramBot.verifyChat(chat: Chat, noinline customDescription: () -> String?): VerifyChatAction
inline fun TelegramBot.verifyChat(chatId: Long, noinline customDescription: () -> String?): VerifyChatAction
inline fun TelegramBot.verifyChat(chatId: Long, customDescription: String? = null): VerifyChatAction
Link copied to clipboard
inline fun TelegramBot.verifyUser(user: User, noinline customDescription: () -> String?): VerifyUserAction
inline fun TelegramBot.verifyUser(userId: Long, noinline customDescription: () -> String?): VerifyUserAction
inline fun TelegramBot.verifyUser(userId: Long, customDescription: String? = null): VerifyUserAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard