Package dev.inmo.tgbotapi.requests.chat.modify

Types

DeleteChatPhoto
Link copied to clipboard
common
data class DeleteChatPhoto(chatId: ChatIdentifier) : ChatRequest, SimpleRequest<Boolean>
PinChatMessage
Link copied to clipboard
common
data class PinChatMessage(chatId: ChatIdentifier, messageId: MessageIdentifier, disableNotification: Boolean) : ChatRequest, SimpleRequest<Boolean> , MessageAction, DisableNotification

Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in a supergroup or 'can_edit_messages' admin right in a channel.

SetChatDescription
Link copied to clipboard
common
data class SetChatDescription(chatId: ChatIdentifier, description: String) : ChatRequest, SimpleRequest<Boolean>
SetChatPermissions
Link copied to clipboard
common
data class SetChatPermissions(chatId: ChatIdentifier, permissions: ChatPermissions) : ChatRequest, SimpleRequest<Boolean>
SetChatPhoto
Link copied to clipboard
common
data class SetChatPhoto(chatId: ChatIdentifier, photo: MultipartFile) : ChatRequest, MultipartRequest<Boolean>
SetChatTitle
Link copied to clipboard
common
data class SetChatTitle(chatId: ChatIdentifier, title: String) : ChatRequest, SimpleRequest<Boolean>
UnpinAllChatMessages
Link copied to clipboard
common
data class UnpinAllChatMessages(chatId: ChatIdentifier) : ChatRequest, SimpleRequest<Boolean>

Use this method to clear the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in a supergroup or 'can_edit_messages' admin right in a channel.

UnpinChatMessage
Link copied to clipboard
common
data class UnpinChatMessage(chatId: ChatIdentifier, messageId: MessageIdentifier?) : ChatRequest, SimpleRequest<Boolean>