docs / com.github.insanusmokrassar.TelegramBotAPI.bot / BaseRequestsExecutor

BaseRequestsExecutor

(common) abstract class BaseRequestsExecutor : RequestsExecutor (source)

Constructors

(common)

<init>

BaseRequestsExecutor(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper)

Properties

(common)

telegramAPIUrlsKeeper

val telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper

Extension Functions

(common)

addAnimatedStickerToSet

suspend fun RequestsExecutor.addAnimatedStickerToSet(userId: UserId, stickerSetName: String, sticker: FileId, emojis: String, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.addAnimatedStickerToSet(userId: UserId, stickerSetName: String, sticker: MultipartFile, emojis: String, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.addAnimatedStickerToSet(user: CommonUser, stickerSetName: String, sticker: FileId, emojis: String, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.addAnimatedStickerToSet(user: CommonUser, stickerSetName: String, sticker: MultipartFile, emojis: String, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.addAnimatedStickerToSet(userId: UserId, stickerSet: StickerSet, sticker: FileId, emojis: String, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.addAnimatedStickerToSet(userId: UserId, stickerSet: StickerSet, sticker: MultipartFile, emojis: String, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.addAnimatedStickerToSet(user: CommonUser, stickerSet: StickerSet, sticker: FileId, emojis: String, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.addAnimatedStickerToSet(user: CommonUser, stickerSet: StickerSet, sticker: MultipartFile, emojis: String, maskPosition: MaskPosition? = null): Boolean
(common)

addStaticStickerToSet

suspend fun RequestsExecutor.addStaticStickerToSet(userId: UserId, stickerSetName: String, sticker: FileId, emojis: String, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.addStaticStickerToSet(userId: UserId, stickerSetName: String, sticker: MultipartFile, emojis: String, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.addStaticStickerToSet(user: CommonUser, stickerSetName: String, sticker: FileId, emojis: String, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.addStaticStickerToSet(user: CommonUser, stickerSetName: String, sticker: MultipartFile, emojis: String, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.addStaticStickerToSet(userId: UserId, stickerSet: StickerSet, sticker: FileId, emojis: String, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.addStaticStickerToSet(userId: UserId, stickerSet: StickerSet, sticker: MultipartFile, emojis: String, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.addStaticStickerToSet(user: CommonUser, stickerSet: StickerSet, sticker: FileId, emojis: String, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.addStaticStickerToSet(user: CommonUser, stickerSet: StickerSet, sticker: MultipartFile, emojis: String, maskPosition: MaskPosition? = null): Boolean
(common)

answerCallbackQuery

suspend fun RequestsExecutor.answerCallbackQuery(callbackQueryId: CallbackQueryIdentifier, text: String? = null, showAlert: Boolean? = null, url: String? = null, cachedTimeSeconds: Int? = null): Boolean
suspend fun RequestsExecutor.answerCallbackQuery(callbackQuery: CallbackQuery, text: String? = null, showAlert: Boolean? = null, url: String? = null, cachedTimeSeconds: Int? = null): Boolean
(common)

answerInlineQuery

suspend fun RequestsExecutor.answerInlineQuery(inlineQueryID: InlineQueryIdentifier, results: List<InlineQueryResult> = emptyList(), cachedTime: Int? = null, isPersonal: Boolean? = null, nextOffset: String? = null, switchPmText: String? = null, switchPmParameter: String? = null): Boolean
suspend fun RequestsExecutor.answerInlineQuery(inlineQuery: InlineQuery, results: List<InlineQueryResult> = emptyList(), cachedTime: Int? = null, isPersonal: Boolean? = null, nextOffset: String? = null, switchPmText: String? = null, switchPmParameter: String? = null): Boolean
(common)

answerPreCheckoutQueryError

suspend fun RequestsExecutor.answerPreCheckoutQueryError(id: PreCheckoutQueryId, error: String): Boolean
suspend fun RequestsExecutor.answerPreCheckoutQueryError(preCheckoutQuery: PreCheckoutQuery, error: String): Boolean
(common)

answerPreCheckoutQueryOk

suspend fun RequestsExecutor.answerPreCheckoutQueryOk(id: PreCheckoutQueryId): Boolean
suspend fun RequestsExecutor.answerPreCheckoutQueryOk(preCheckoutQuery: PreCheckoutQuery): Boolean
(common)

answerShippingQueryError

suspend fun RequestsExecutor.answerShippingQueryError(id: ShippingQueryIdentifier, error: String): Boolean
suspend fun RequestsExecutor.answerShippingQueryError(shippingQuery: ShippingQuery, error: String): Boolean
(common)

answerShippingQueryOk

suspend fun RequestsExecutor.answerShippingQueryOk(id: ShippingQueryIdentifier, shippingOptions: List<ShippingOption>): Boolean
suspend fun RequestsExecutor.answerShippingQueryOk(shippingQuery: ShippingQuery, shippingOptions: List<ShippingOption>): Boolean
(common)

createNewAnimatedStickerSet

suspend fun RequestsExecutor.createNewAnimatedStickerSet(userId: UserId, name: String, sticker: FileId, emojis: String, containsMasks: Boolean? = null, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.createNewAnimatedStickerSet(userId: UserId, name: String, sticker: MultipartFile, emojis: String, containsMasks: Boolean? = null, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.createNewAnimatedStickerSet(user: CommonUser, name: String, sticker: FileId, emojis: String, containsMasks: Boolean? = null, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.createNewAnimatedStickerSet(user: CommonUser, name: String, sticker: MultipartFile, emojis: String, containsMasks: Boolean? = null, maskPosition: MaskPosition? = null): Boolean
(common)

createNewStaticStickerSet

suspend fun RequestsExecutor.createNewStaticStickerSet(userId: UserId, name: String, sticker: FileId, emojis: String, containsMasks: Boolean? = null, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.createNewStaticStickerSet(userId: UserId, name: String, sticker: MultipartFile, emojis: String, containsMasks: Boolean? = null, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.createNewStaticStickerSet(user: CommonUser, name: String, sticker: FileId, emojis: String, containsMasks: Boolean? = null, maskPosition: MaskPosition? = null): Boolean
suspend fun RequestsExecutor.createNewStaticStickerSet(user: CommonUser, name: String, sticker: MultipartFile, emojis: String, containsMasks: Boolean? = null, maskPosition: MaskPosition? = null): Boolean
(common)

deleteChatPhoto

suspend fun RequestsExecutor.deleteChatPhoto(chatId: ChatIdentifier): Boolean
suspend fun RequestsExecutor.deleteChatPhoto(chat: PublicChat): Boolean
(common)

deleteChatStickerSet

suspend fun RequestsExecutor.deleteChatStickerSet(chatId: ChatIdentifier): Boolean
suspend fun RequestsExecutor.deleteChatStickerSet(chat: SupergroupChat): Boolean
(common)

deleteMessage

suspend fun RequestsExecutor.deleteMessage(chatId: ChatIdentifier, messageId: MessageIdentifier): Boolean
suspend fun RequestsExecutor.deleteMessage(chat: Chat, messageId: MessageIdentifier): Boolean
suspend fun RequestsExecutor.deleteMessage(message: Message): Boolean
(common)

deleteStickerFromSet

suspend fun RequestsExecutor.deleteStickerFromSet(sticker: FileId): Boolean
suspend fun RequestsExecutor.deleteStickerFromSet(sticker: Sticker): Boolean
(common)

deleteWebhook

suspend fun RequestsExecutor.deleteWebhook(): Boolean
(common)

editLiveLocation

suspend fun RequestsExecutor.editLiveLocation(chatId: ChatIdentifier, messageId: MessageIdentifier, latitude: Double, longitude: Double, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun RequestsExecutor.editLiveLocation(chat: Chat, messageId: MessageIdentifier, latitude: Double, longitude: Double, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun RequestsExecutor.editLiveLocation(message: ContentMessage<LocationContent>, latitude: Double, longitude: Double, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun RequestsExecutor.editLiveLocation(chatId: ChatIdentifier, messageId: MessageIdentifier, location: Location, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun RequestsExecutor.editLiveLocation(chat: Chat, messageId: MessageIdentifier, location: Location, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun RequestsExecutor.editLiveLocation(message: ContentMessage<LocationContent>, location: Location, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun RequestsExecutor.editLiveLocation(inlineMessageId: InlineMessageIdentifier, latitude: Double, longitude: Double, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun RequestsExecutor.editLiveLocation(inlineMessageId: InlineMessageIdentifier, location: Location, replyMarkup: InlineKeyboardMarkup? = null): Boolean
(common)

editMessageCaption

suspend fun RequestsExecutor.editMessageCaption(chatId: ChatIdentifier, messageId: MessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun RequestsExecutor.editMessageCaption(chat: Chat, messageId: MessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T> RequestsExecutor.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent> where T : CaptionedInput, T : MediaContent
suspend fun RequestsExecutor.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
(common)

editMessageCaption

suspend fun RequestsExecutor.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: InputMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
(common)

editMessageMedia

suspend fun RequestsExecutor.editMessageMedia(chatId: ChatIdentifier, messageId: MessageIdentifier, media: InputMedia, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun RequestsExecutor.editMessageMedia(chat: Chat, messageId: MessageIdentifier, media: InputMedia, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun RequestsExecutor.editMessageMedia(message: ContentMessage<out MediaContent>, media: InputMedia, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
(common)

editMessageReplyMarkup

suspend fun RequestsExecutor.editMessageReplyMarkup(chatId: ChatIdentifier, messageId: MessageIdentifier, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MessageContent>
suspend fun RequestsExecutor.editMessageReplyMarkup(chat: Chat, messageId: MessageIdentifier, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MessageContent>
suspend fun RequestsExecutor.editMessageReplyMarkup(message: Message, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MessageContent>
suspend fun RequestsExecutor.editMessageReplyMarkup(inlineMessageId: InlineMessageIdentifier, replyMarkup: InlineKeyboardMarkup? = null): Boolean
(common)

editMessageText

suspend fun RequestsExecutor.editMessageText(chatId: ChatIdentifier, messageId: MessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun RequestsExecutor.editMessageText(chat: Chat, messageId: MessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun RequestsExecutor.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun RequestsExecutor.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
(common)

executeAsync

fun <T : Any> RequestsExecutor.executeAsync(request: Request<T>, onFail: (suspend (Response) -> Unit)? = null, scope: CoroutineScope = GlobalScope, onSuccess: (suspend (T) -> Unit)? = null): Job
fun <T : Any> RequestsExecutor.executeAsync(request: Request<T>, scope: CoroutineScope = GlobalScope): Deferred<T>
(common)

executeUnsafe

suspend fun <T : Any> RequestsExecutor.executeUnsafe(request: Request<T>, retries: Int = 0, retriesDelay: Long = 1000L): T?
(common)

exportChatInviteLink

suspend fun RequestsExecutor.exportChatInviteLink(chatId: ChatIdentifier): String
suspend fun RequestsExecutor.exportChatInviteLink(chat: PublicChat): String
(common)

forwardMessage

suspend fun RequestsExecutor.forwardMessage(fromChatId: ChatIdentifier, toChatId: ChatIdentifier, messageId: MessageIdentifier, disableNotification: Boolean = false): PossiblyForwardedMessage
suspend fun RequestsExecutor.forwardMessage(fromChat: Chat, toChatId: ChatIdentifier, messageId: MessageIdentifier, disableNotification: Boolean = false): PossiblyForwardedMessage
suspend fun RequestsExecutor.forwardMessage(fromChatId: ChatIdentifier, toChat: Chat, messageId: MessageIdentifier, disableNotification: Boolean = false): PossiblyForwardedMessage
suspend fun RequestsExecutor.forwardMessage(fromChat: Chat, toChat: Chat, messageId: MessageIdentifier, disableNotification: Boolean = false): PossiblyForwardedMessage
suspend fun RequestsExecutor.forwardMessage(toChatId: ChatIdentifier, message: Message, disableNotification: Boolean = false): PossiblyForwardedMessage
suspend fun RequestsExecutor.forwardMessage(toChat: Chat, message: Message, disableNotification: Boolean = false): PossiblyForwardedMessage
(common)

getChat

suspend fun RequestsExecutor.getChat(chatId: ChatIdentifier): ExtendedChat
suspend fun RequestsExecutor.getChat(chat: Chat): ExtendedChat
(common)

getChatAdministrators

suspend fun RequestsExecutor.getChatAdministrators(chatId: ChatIdentifier): List<AdministratorChatMember>
suspend fun RequestsExecutor.getChatAdministrators(chat: PublicChat): List<AdministratorChatMember>
(common)

getChatMember

suspend fun RequestsExecutor.getChatMember(chatId: ChatIdentifier, userId: UserId): ChatMember
suspend fun RequestsExecutor.getChatMember(chat: PublicChat, userId: UserId): ChatMember
suspend fun RequestsExecutor.getChatMember(chatId: ChatId, user: User): ChatMember
suspend fun RequestsExecutor.getChatMember(chat: PublicChat, user: User): ChatMember
(common)

getChatMembersCount

suspend fun RequestsExecutor.getChatMembersCount(chatId: ChatIdentifier): Int
suspend fun RequestsExecutor.getChatMembersCount(chat: PublicChat): Int
(common)

getFileAdditionalInfo

suspend fun RequestsExecutor.getFileAdditionalInfo(fileId: FileId): PathedFile
suspend fun RequestsExecutor.getFileAdditionalInfo(file: TelegramMediaFile): PathedFile
(common)

getGameScore

suspend fun RequestsExecutor.getGameScore(userId: UserId, chatId: ChatId, messageId: MessageIdentifier): List<GameHighScore>
suspend fun RequestsExecutor.getGameScore(user: CommonUser, chatId: ChatId, messageId: MessageIdentifier): List<GameHighScore>
suspend fun RequestsExecutor.getGameScore(userId: UserId, chat: Chat, messageId: MessageIdentifier): List<GameHighScore>
suspend fun RequestsExecutor.getGameScore(user: CommonUser, chat: Chat, messageId: MessageIdentifier): List<GameHighScore>
suspend fun RequestsExecutor.getGameScore(userId: UserId, message: ContentMessage<GameContent>): List<GameHighScore>
suspend fun RequestsExecutor.getGameScore(user: CommonUser, message: ContentMessage<GameContent>): List<GameHighScore>
suspend fun RequestsExecutor.getGameScore(userId: UserId, inlineMessageId: InlineMessageIdentifier): List<GameHighScore>
suspend fun RequestsExecutor.getGameScore(user: CommonUser, inlineMessageId: InlineMessageIdentifier): List<GameHighScore>
(common)

getMyCommands

suspend fun RequestsExecutor.getMyCommands(): List<BotCommand>
(common)

getStickerSet

suspend fun RequestsExecutor.getStickerSet(name: String): StickerSet
suspend fun RequestsExecutor.getStickerSet(sticker: Sticker): StickerSet
(common)

getUpdates

suspend fun RequestsExecutor.getUpdates(offset: UpdateIdentifier? = null, limit: Int = getUpdatesLimit.last, timeout: Seconds? = null, allowed_updates: List<String>? = ALL_UPDATES_LIST): List<Update>
suspend fun RequestsExecutor.getUpdates(lastUpdate: Update, limit: Int = getUpdatesLimit.last, timeout: Seconds? = null, allowed_updates: List<String>? = ALL_UPDATES_LIST): List<Update>
(common)

getUserProfilePhotos

suspend fun RequestsExecutor.getUserProfilePhotos(userId: UserId, offset: Int? = null, limit: Int? = null): UserProfilePhotos
suspend fun RequestsExecutor.getUserProfilePhotos(user: CommonUser, offset: Int? = null, limit: Int? = null): UserProfilePhotos
(common)

getWebhookInfo

suspend fun RequestsExecutor.getWebhookInfo(): WebhookInfo
(common)

kickChatMember

suspend fun RequestsExecutor.kickChatMember(chatId: ChatIdentifier, userId: UserId, untilDate: TelegramDate? = null): Boolean
suspend fun RequestsExecutor.kickChatMember(chat: PublicChat, userId: UserId, untilDate: TelegramDate? = null): Boolean
suspend fun RequestsExecutor.kickChatMember(chatId: ChatId, user: User, untilDate: TelegramDate? = null): Boolean
suspend fun RequestsExecutor.kickChatMember(chat: PublicChat, user: User, untilDate: TelegramDate? = null): Boolean
(common)

leaveChat

suspend fun RequestsExecutor.leaveChat(chatId: ChatIdentifier): Boolean
suspend fun RequestsExecutor.leaveChat(chat: PublicChat): Boolean
(common)

pinChatMessage

suspend fun RequestsExecutor.pinChatMessage(chatId: ChatIdentifier, messageId: MessageIdentifier, disableNotification: Boolean = false): Boolean
suspend fun RequestsExecutor.pinChatMessage(chat: PublicChat, messageId: MessageIdentifier, disableNotification: Boolean = false): Boolean
suspend fun RequestsExecutor.pinChatMessage(message: Message, disableNotification: Boolean = false): Boolean
(common)

promoteChatMember

suspend fun RequestsExecutor.promoteChatMember(chatId: ChatIdentifier, userId: UserId, untilDate: TelegramDate? = null, canChangeInfo: Boolean? = null, canPostMessages: Boolean? = null, canEditMessages: Boolean? = null, canDeleteMessages: Boolean? = null, canInviteUsers: Boolean? = null, canRestrictMembers: Boolean? = null, canPinMessages: Boolean? = null, canPromoteMembers: Boolean? = null): Boolean
suspend fun RequestsExecutor.promoteChatMember(chat: PublicChat, userId: UserId, untilDate: TelegramDate? = null, canChangeInfo: Boolean? = null, canPostMessages: Boolean? = null, canEditMessages: Boolean? = null, canDeleteMessages: Boolean? = null, canInviteUsers: Boolean? = null, canRestrictMembers: Boolean? = null, canPinMessages: Boolean? = null, canPromoteMembers: Boolean? = null): Boolean
suspend fun RequestsExecutor.promoteChatMember(chatId: ChatId, user: User, untilDate: TelegramDate? = null, canChangeInfo: Boolean? = null, canPostMessages: Boolean? = null, canEditMessages: Boolean? = null, canDeleteMessages: Boolean? = null, canInviteUsers: Boolean? = null, canRestrictMembers: Boolean? = null, canPinMessages: Boolean? = null, canPromoteMembers: Boolean? = null): Boolean
suspend fun RequestsExecutor.promoteChatMember(chat: PublicChat, user: User, untilDate: TelegramDate? = null, canChangeInfo: Boolean? = null, canPostMessages: Boolean? = null, canEditMessages: Boolean? = null, canDeleteMessages: Boolean? = null, canInviteUsers: Boolean? = null, canRestrictMembers: Boolean? = null, canPinMessages: Boolean? = null, canPromoteMembers: Boolean? = null): Boolean
(common)

restrictChatMember

suspend fun RequestsExecutor.restrictChatMember(chatId: ChatIdentifier, userId: UserId, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
suspend fun RequestsExecutor.restrictChatMember(chat: PublicChat, userId: UserId, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
suspend fun RequestsExecutor.restrictChatMember(chatId: ChatId, user: User, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
suspend fun RequestsExecutor.restrictChatMember(chat: PublicChat, user: User, untilDate: TelegramDate? = null, permissions: ChatPermissions = ChatPermissions()): Boolean
(common)

sendActionFindLocation

suspend fun RequestsExecutor.sendActionFindLocation(chatId: ChatIdentifier): Boolean
suspend fun RequestsExecutor.sendActionFindLocation(chat: Chat): Boolean
(common)

sendActionRecordAudio

suspend fun RequestsExecutor.sendActionRecordAudio(chatId: ChatIdentifier): Boolean
suspend fun RequestsExecutor.sendActionRecordAudio(chat: Chat): Boolean
(common)

sendActionRecordVideo

suspend fun RequestsExecutor.sendActionRecordVideo(chatId: ChatIdentifier): Boolean
suspend fun RequestsExecutor.sendActionRecordVideo(chat: Chat): Boolean
(common)

sendActionRecordVideoNote

suspend fun RequestsExecutor.sendActionRecordVideoNote(chatId: ChatIdentifier): Boolean
suspend fun RequestsExecutor.sendActionRecordVideoNote(chat: Chat): Boolean
(common)

sendActionTyping

suspend fun RequestsExecutor.sendActionTyping(chatId: ChatIdentifier): Boolean
suspend fun RequestsExecutor.sendActionTyping(chat: Chat): Boolean
(common)

sendActionUploadAudio

suspend fun RequestsExecutor.sendActionUploadAudio(chatId: ChatIdentifier): Boolean
suspend fun RequestsExecutor.sendActionUploadAudio(chat: Chat): Boolean
(common)

sendActionUploadDocument

suspend fun RequestsExecutor.sendActionUploadDocument(chatId: ChatIdentifier): Boolean
suspend fun RequestsExecutor.sendActionUploadDocument(chat: Chat): Boolean
(common)

sendActionUploadPhoto

suspend fun RequestsExecutor.sendActionUploadPhoto(chatId: ChatIdentifier): Boolean
suspend fun RequestsExecutor.sendActionUploadPhoto(chat: Chat): Boolean
(common)

sendActionUploadVideo

suspend fun RequestsExecutor.sendActionUploadVideo(chatId: ChatIdentifier): Boolean
suspend fun RequestsExecutor.sendActionUploadVideo(chat: Chat): Boolean
(common)

sendActionUploadVideoNote

suspend fun RequestsExecutor.sendActionUploadVideoNote(chatId: ChatIdentifier): Boolean
suspend fun RequestsExecutor.sendActionUploadVideoNote(chat: Chat): Boolean
(common)

sendAnimation

suspend fun RequestsExecutor.sendAnimation(chatId: ChatIdentifier, animation: InputFile, thumb: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, duration: Long? = null, width: Int? = null, height: Int? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<AnimationContent>
suspend fun RequestsExecutor.sendAnimation(chatId: ChatIdentifier, animation: AnimationFile, text: String? = null, parseMode: ParseMode? = null, duration: Long? = null, width: Int? = null, height: Int? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<AnimationContent>
(common)

sendAudio

suspend fun RequestsExecutor.sendAudio(chatId: ChatIdentifier, audio: InputFile, thumb: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, duration: Long? = null, performer: String? = null, title: String? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<AudioContent>
suspend fun RequestsExecutor.sendAudio(chatId: ChatIdentifier, audio: AudioFile, text: String? = null, parseMode: ParseMode? = null, title: String? = audio.title, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<AudioContent>
(common)

sendBotAction

suspend fun RequestsExecutor.sendBotAction(chatId: ChatIdentifier, action: BotAction): Boolean
suspend fun RequestsExecutor.sendBotAction(chat: Chat, action: BotAction): Boolean
(common)

sendContact

suspend fun RequestsExecutor.sendContact(chatId: ChatIdentifier, phoneNumber: String, firstName: String, lastName: String? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<ContactContent>
suspend fun RequestsExecutor.sendContact(chatId: ChatIdentifier, contact: Contact, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<ContactContent>
suspend fun RequestsExecutor.sendContact(chat: Chat, phoneNumber: String, firstName: String, lastName: String? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<ContactContent>
suspend fun RequestsExecutor.sendContact(chat: Chat, contact: Contact, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<ContactContent>
(common)

sendDice

suspend fun RequestsExecutor.sendDice(chatId: ChatIdentifier, animationType: DiceAnimationType? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<DiceContent>
suspend fun RequestsExecutor.sendDice(chat: Chat, animationType: DiceAnimationType? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<DiceContent>
(common)

sendDocument

suspend fun RequestsExecutor.sendDocument(chatId: ChatIdentifier, document: InputFile, thumb: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<DocumentContent>
suspend fun RequestsExecutor.sendDocument(chatId: ChatIdentifier, document: DocumentFile, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<DocumentContent>
(common)

sendGame

suspend fun RequestsExecutor.sendGame(chatId: ChatIdentifier, gameShortName: String, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<GameContent>
suspend fun RequestsExecutor.sendGame(chat: Chat, gameShortName: String, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<GameContent>
suspend fun RequestsExecutor.sendGame(chatId: ChatIdentifier, game: Game, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<GameContent>
suspend fun RequestsExecutor.sendGame(chat: Chat, game: Game, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<GameContent>
(common)

sendInvoice

suspend fun RequestsExecutor.sendInvoice(chatId: ChatId, title: String, description: String, payload: String, providerToken: String, startParameter: StartParameter, currency: Currency, prices: List<LabeledPrice>, providerData: String? = null, requireName: Boolean = false, requirePhoneNumber: Boolean = false, requireEmail: Boolean = false, requireShippingAddress: Boolean = false, shouldSendPhoneNumberToProvider: Boolean = false, shouldSendEmailToProvider: Boolean = false, priceDependOnShipAddress: Boolean = false, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<InvoiceContent>
suspend fun RequestsExecutor.sendInvoice(user: CommonUser, title: String, description: String, payload: String, providerToken: String, startParameter: StartParameter, currency: Currency, prices: List<LabeledPrice>, providerData: String? = null, requireName: Boolean = false, requirePhoneNumber: Boolean = false, requireEmail: Boolean = false, requireShippingAddress: Boolean = false, shouldSendPhoneNumberToProvider: Boolean = false, shouldSendEmailToProvider: Boolean = false, priceDependOnShipAddress: Boolean = false, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<InvoiceContent>
(common)

sendLocation

suspend fun RequestsExecutor.sendLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun RequestsExecutor.sendLocation(chatId: ChatIdentifier, location: Location, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun RequestsExecutor.sendLocation(chat: Chat, latitude: Double, longitude: Double, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun RequestsExecutor.sendLocation(chat: Chat, location: Location, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<LocationContent>
(common)

sendMediaGroup

suspend fun RequestsExecutor.sendMediaGroup(chatId: ChatIdentifier, media: List<MediaGroupMemberInputMedia>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null): List<MediaGroupMessage>
suspend fun RequestsExecutor.sendMediaGroup(chat: Chat, media: List<MediaGroupMemberInputMedia>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null): List<MediaGroupMessage>
(common)

sendMessage

suspend fun RequestsExecutor.sendMessage(chatId: ChatIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun RequestsExecutor.sendMessage(chat: Chat, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
(common)

sendPhoto

suspend fun RequestsExecutor.sendPhoto(chatId: ChatIdentifier, fileId: InputFile, caption: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<PhotoContent>
(common)

sendQuizPoll

suspend fun RequestsExecutor.sendQuizPoll(chatId: ChatIdentifier, question: String, options: List<String>, correctOptionId: Int, isAnonymous: Boolean = true, isClosed: Boolean = false, explanation: String? = null, parseMode: ParseMode? = null, closeInfo: ScheduledCloseInfo? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun RequestsExecutor.sendQuizPoll(chat: Chat, question: String, options: List<String>, correctOptionId: Int, isAnonymous: Boolean = true, isClosed: Boolean = false, explanation: String? = null, parseMode: ParseMode? = null, closeInfo: ScheduledCloseInfo? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun RequestsExecutor.sendQuizPoll(chatId: ChatIdentifier, isClosed: Boolean = false, quizPoll: QuizPoll, question: String = quizPoll.question, options: List<String> = quizPoll.options.map { it.text }, correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"), isAnonymous: Boolean = quizPoll.isAnonymous, explanation: String? = null, parseMode: ParseMode? = null, closeInfo: ScheduledCloseInfo? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun RequestsExecutor.sendQuizPoll(chat: Chat, isClosed: Boolean = false, quizPoll: QuizPoll, question: String = quizPoll.question, options: List<String> = quizPoll.options.map { it.text }, correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"), isAnonymous: Boolean = quizPoll.isAnonymous, explanation: String? = null, parseMode: ParseMode? = null, closeInfo: ScheduledCloseInfo? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
(common)

sendRegularPoll

suspend fun RequestsExecutor.sendRegularPoll(chatId: ChatIdentifier, question: String, options: List<String>, isAnonymous: Boolean = true, isClosed: Boolean = false, allowMultipleAnswers: Boolean = false, closeInfo: ScheduledCloseInfo? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun RequestsExecutor.sendRegularPoll(chatId: ChatIdentifier, poll: RegularPoll, isClosed: Boolean = false, question: String = poll.question, options: List<String> = poll.options.map { it.text }, isAnonymous: Boolean = poll.isAnonymous, allowMultipleAnswers: Boolean = poll.allowMultipleAnswers, closeInfo: ScheduledCloseInfo? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun RequestsExecutor.sendRegularPoll(chat: Chat, question: String, options: List<String>, isAnonymous: Boolean = true, isClosed: Boolean = false, allowMultipleAnswers: Boolean = false, closeInfo: ScheduledCloseInfo? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun RequestsExecutor.sendRegularPoll(chat: Chat, poll: RegularPoll, isClosed: Boolean = false, question: String = poll.question, options: List<String> = poll.options.map { it.text }, isAnonymous: Boolean = poll.isAnonymous, allowMultipleAnswers: Boolean = poll.allowMultipleAnswers, closeInfo: ScheduledCloseInfo? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
(common)

sendSticker

suspend fun RequestsExecutor.sendSticker(chatId: ChatIdentifier, sticker: InputFile, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<StickerContent>
(common)

sendTextMessage

suspend fun RequestsExecutor.sendTextMessage(chatId: ChatIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun RequestsExecutor.sendTextMessage(chat: Chat, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
(common)

sendVenue

suspend fun RequestsExecutor.sendVenue(chatId: ChatIdentifier, latitude: Double, longitude: Double, title: String, address: String, foursquareId: String? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
suspend fun RequestsExecutor.sendVenue(chat: Chat, latitude: Double, longitude: Double, title: String, address: String, foursquareId: String? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
suspend fun RequestsExecutor.sendVenue(chatId: ChatIdentifier, venue: Venue, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
suspend fun RequestsExecutor.sendVenue(chat: Chat, venue: Venue, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
(common)

sendVideo

suspend fun RequestsExecutor.sendVideo(chatId: ChatIdentifier, video: InputFile, thumb: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, duration: Long? = null, width: Int? = null, height: Int? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VideoContent>
suspend fun RequestsExecutor.sendVideo(chatId: ChatIdentifier, video: VideoFile, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VideoContent>
(common)

sendVideoNote

suspend fun RequestsExecutor.sendVideoNote(chatId: ChatIdentifier, videoNote: InputFile, thumb: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, duration: Long? = null, size: Int? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VideoNoteContent>
suspend fun RequestsExecutor.sendVideoNote(chatId: ChatIdentifier, videoNote: VideoFile, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VideoNoteContent>
(common)

sendVoice

suspend fun RequestsExecutor.sendVoice(chatId: ChatIdentifier, voice: InputFile, thumb: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, duration: Long? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VoiceContent>
suspend fun RequestsExecutor.sendVoice(chatId: ChatIdentifier, voice: AudioFile, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VoiceContent>
(common)

setChatAdministratorCustomTitle

suspend fun RequestsExecutor.setChatAdministratorCustomTitle(chatId: ChatId, userId: UserId, customTitle: String): Boolean
suspend fun RequestsExecutor.setChatAdministratorCustomTitle(chat: PublicChat, userId: UserId, customTitle: String): Boolean
suspend fun RequestsExecutor.setChatAdministratorCustomTitle(chatId: ChatId, user: User, customTitle: String): Boolean
suspend fun RequestsExecutor.setChatAdministratorCustomTitle(chat: PublicChat, user: User, customTitle: String): Boolean
(common)

setChatDescription

suspend fun RequestsExecutor.setChatDescription(chatId: ChatIdentifier, description: String): Boolean
suspend fun RequestsExecutor.setChatDescription(chat: PublicChat, description: String): Boolean
(common)

setChatPhoto

suspend fun RequestsExecutor.setChatPhoto(chatId: ChatIdentifier, photo: MultipartFile): Boolean
suspend fun RequestsExecutor.setChatPhoto(chat: PublicChat, photo: MultipartFile): Boolean
(common)

setChatStickerSet

suspend fun RequestsExecutor.setChatStickerSet(chatId: ChatIdentifier, stickerSetName: StickerSetName): Boolean
suspend fun RequestsExecutor.setChatStickerSet(chat: SupergroupChat, stickerSetName: StickerSetName): Boolean
(common)

setChatTitle

suspend fun RequestsExecutor.setChatTitle(chatId: ChatIdentifier, title: String): Boolean
suspend fun RequestsExecutor.setChatTitle(chat: PublicChat, title: String): Boolean
(common)

setDefaultChatMembersPermissions

suspend fun RequestsExecutor.setDefaultChatMembersPermissions(chatId: ChatIdentifier, permissions: ChatPermissions): Boolean
suspend fun RequestsExecutor.setDefaultChatMembersPermissions(chat: PublicChat, permissions: ChatPermissions): Boolean
(common)

setGameScore

suspend fun RequestsExecutor.setGameScore(userId: UserId, score: Long, chatId: ChatId, messageId: MessageIdentifier, force: Boolean = false, disableEditMessage: Boolean = false): Boolean
suspend fun RequestsExecutor.setGameScore(user: CommonUser, score: Long, chatId: ChatId, messageId: MessageIdentifier, force: Boolean = false, disableEditMessage: Boolean = false): Boolean
suspend fun RequestsExecutor.setGameScore(userId: UserId, score: Long, chat: Chat, messageId: MessageIdentifier, force: Boolean = false, disableEditMessage: Boolean = false): Boolean
suspend fun RequestsExecutor.setGameScore(user: CommonUser, score: Long, chat: Chat, messageId: MessageIdentifier, force: Boolean = false, disableEditMessage: Boolean = false): Boolean
suspend fun RequestsExecutor.setGameScore(userId: UserId, score: Long, message: ContentMessage<GameContent>, force: Boolean = false, disableEditMessage: Boolean = false): Boolean
suspend fun RequestsExecutor.setGameScore(user: CommonUser, score: Long, message: ContentMessage<GameContent>, force: Boolean = false, disableEditMessage: Boolean = false): Boolean
suspend fun RequestsExecutor.setGameScore(userId: UserId, score: Long, inlineMessageId: InlineMessageIdentifier, force: Boolean = false, disableEditMessage: Boolean = false): Boolean
suspend fun RequestsExecutor.setGameScore(user: CommonUser, score: Long, inlineMessageId: InlineMessageIdentifier, force: Boolean = false, disableEditMessage: Boolean = false): Boolean
(common)

setMyCommands

suspend fun RequestsExecutor.setMyCommands(commands: List<BotCommand>): Boolean
(common)

setStickerPositionInSet

suspend fun RequestsExecutor.setStickerPositionInSet(sticker: FileId, position: Int): Boolean
suspend fun RequestsExecutor.setStickerPositionInSet(sticker: Sticker, position: Int): Boolean
(common)

setStickerSetThumb

suspend fun RequestsExecutor.setStickerSetThumb(userId: UserId, thumbSetName: String, thumb: FileId): Boolean
suspend fun RequestsExecutor.setStickerSetThumb(userId: UserId, thumbSetName: String, thumb: MultipartFile): Boolean
suspend fun RequestsExecutor.setStickerSetThumb(user: CommonUser, thumbSetName: String, thumb: FileId): Boolean
suspend fun RequestsExecutor.setStickerSetThumb(user: CommonUser, thumbSetName: String, thumb: MultipartFile): Boolean
suspend fun RequestsExecutor.setStickerSetThumb(userId: UserId, thumbSet: StickerSet, thumb: FileId): Boolean
suspend fun RequestsExecutor.setStickerSetThumb(userId: UserId, thumbSet: StickerSet, thumb: MultipartFile): Boolean
suspend fun RequestsExecutor.setStickerSetThumb(user: CommonUser, thumbSet: StickerSet, thumb: FileId): Boolean
suspend fun RequestsExecutor.setStickerSetThumb(user: CommonUser, thumbSet: StickerSet, thumb: MultipartFile): Boolean
(common)

setWebhookInfo

suspend fun RequestsExecutor.setWebhookInfo(url: String, certificate: FileId, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null): Boolean
suspend fun RequestsExecutor.setWebhookInfo(url: String, certificate: MultipartFile, maxAllowedConnections: Int? = null, allowedUpdates: List<String>? = null): Boolean
(common)

startGettingFlowsUpdates

This method will create a new one FlowsUpdatesFilter. This method could be unsafe due to the fact that it will start getting updates IMMEDIATELY. That means that your bot will be able to skip some of them until you will call kotlinx.coroutines.flow.Flow.collect on one of FlowsUpdatesFilter flows. To avoid it, you can pass flowUpdatesPreset lambda - it will be called BEFORE starting updates getting

fun RequestsExecutor.startGettingFlowsUpdates(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: (suspend (Exception) -> Unit)? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 64, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit = {}): FlowsUpdatesFilter
(common)

startGettingOfUpdates

fun RequestsExecutor.startGettingOfUpdates(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: (suspend (Exception) -> Unit)? = null, allowedUpdates: List<String>? = null, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdates(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: (suspend (Exception) -> Unit)? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)): Job
fun RequestsExecutor.startGettingOfUpdates(messageCallback: UpdateReceiver<MessageUpdate>? = null, messageMediaGroupCallback: UpdateReceiver<MessageMediaGroupUpdate>? = null, editedMessageCallback: UpdateReceiver<EditMessageUpdate>? = null, editedMessageMediaGroupCallback: UpdateReceiver<EditMessageMediaGroupUpdate>? = null, channelPostCallback: UpdateReceiver<ChannelPostUpdate>? = null, channelPostMediaGroupCallback: UpdateReceiver<ChannelPostMediaGroupUpdate>? = null, editedChannelPostCallback: UpdateReceiver<EditChannelPostUpdate>? = null, editedChannelPostMediaGroupCallback: UpdateReceiver<EditChannelPostMediaGroupUpdate>? = null, chosenInlineResultCallback: UpdateReceiver<ChosenInlineResultUpdate>? = null, inlineQueryCallback: UpdateReceiver<InlineQueryUpdate>? = null, callbackQueryCallback: UpdateReceiver<CallbackQueryUpdate>? = null, shippingQueryCallback: UpdateReceiver<ShippingQueryUpdate>? = null, preCheckoutQueryCallback: UpdateReceiver<PreCheckoutQueryUpdate>? = null, pollCallback: UpdateReceiver<PollUpdate>? = null, pollAnswerCallback: UpdateReceiver<PollAnswerUpdate>? = null, timeoutSeconds: Seconds = 30, exceptionsHandler: (suspend (Exception) -> Unit)? = null, scope: CoroutineScope = GlobalScope): Job
fun RequestsExecutor.startGettingOfUpdates(messageCallback: UpdateReceiver<MessageUpdate>? = null, mediaGroupCallback: UpdateReceiver<MediaGroupUpdate>? = null, editedMessageCallback: UpdateReceiver<EditMessageUpdate>? = null, channelPostCallback: UpdateReceiver<ChannelPostUpdate>? = null, editedChannelPostCallback: UpdateReceiver<EditChannelPostUpdate>? = null, chosenInlineResultCallback: UpdateReceiver<ChosenInlineResultUpdate>? = null, inlineQueryCallback: UpdateReceiver<InlineQueryUpdate>? = null, callbackQueryCallback: UpdateReceiver<CallbackQueryUpdate>? = null, shippingQueryCallback: UpdateReceiver<ShippingQueryUpdate>? = null, preCheckoutQueryCallback: UpdateReceiver<PreCheckoutQueryUpdate>? = null, pollCallback: UpdateReceiver<PollUpdate>? = null, pollAnswerCallback: UpdateReceiver<PollAnswerUpdate>? = null, timeoutSeconds: Seconds = 30, exceptionsHandler: (suspend (Exception) -> Unit)? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)): Job
(common)

startLiveLocation

suspend fun RequestsExecutor.startLiveLocation(scope: CoroutineScope, chatId: ChatIdentifier, latitude: Double, longitude: Double, liveTimeMillis: Long = livePeriodDelayMillis, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): LiveLocation
suspend fun RequestsExecutor.startLiveLocation(scope: CoroutineScope, chat: Chat, latitude: Double, longitude: Double, liveTimeMillis: Long = livePeriodDelayMillis, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): LiveLocation
suspend fun RequestsExecutor.startLiveLocation(scope: CoroutineScope, chatId: ChatId, location: Location, liveTimeMillis: Long = livePeriodDelayMillis, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): LiveLocation
suspend fun RequestsExecutor.startLiveLocation(scope: CoroutineScope, chat: Chat, location: Location, liveTimeMillis: Long = livePeriodDelayMillis, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): LiveLocation
(common)

stopLiveLocation

suspend fun RequestsExecutor.stopLiveLocation(chatId: ChatIdentifier, messageId: MessageIdentifier, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun RequestsExecutor.stopLiveLocation(chat: Chat, messageId: MessageIdentifier, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun RequestsExecutor.stopLiveLocation(message: ContentMessage<LocationContent>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun RequestsExecutor.stopLiveLocation(inlineMessageId: InlineMessageIdentifier, replyMarkup: InlineKeyboardMarkup? = null): Boolean
(common)

stopPoll

suspend fun RequestsExecutor.stopPoll(chatId: ChatIdentifier, messageId: MessageIdentifier, replyMarkup: InlineKeyboardMarkup? = null): Poll
suspend fun RequestsExecutor.stopPoll(chat: Chat, messageId: MessageIdentifier, replyMarkup: InlineKeyboardMarkup? = null): Poll
suspend fun RequestsExecutor.stopPoll(chatId: ChatId, message: Message, replyMarkup: InlineKeyboardMarkup? = null): Poll
suspend fun RequestsExecutor.stopPoll(chat: Chat, message: Message, replyMarkup: InlineKeyboardMarkup? = null): Poll
(common)

unbanChatMember

suspend fun RequestsExecutor.unbanChatMember(chatId: ChatIdentifier, userId: UserId): Boolean
suspend fun RequestsExecutor.unbanChatMember(chat: PublicChat, userId: UserId): Boolean
suspend fun RequestsExecutor.unbanChatMember(chatId: ChatId, user: User): Boolean
suspend fun RequestsExecutor.unbanChatMember(chat: PublicChat, user: User): Boolean
(common)

unpinChatMessage

suspend fun RequestsExecutor.unpinChatMessage(chatId: ChatIdentifier): Boolean
suspend fun RequestsExecutor.unpinChatMessage(chat: PublicChat): Boolean
(common)

uploadStickerFile

suspend fun RequestsExecutor.uploadStickerFile(userId: UserId, sticker: MultipartFile): File
suspend fun RequestsExecutor.uploadStickerFile(user: CommonUser, sticker: MultipartFile): File

Inheritors

(common)

KtorRequestsExecutor

class KtorRequestsExecutor : BaseRequestsExecutor