Package dev.inmo.tgbotapi.requests.chat.invite_links

Types

ApproveChatJoinRequest
Link copied to clipboard
common
data class ApproveChatJoinRequest(chatId: ChatIdentifier, userId: UserId) : ChatJoinRequestAnswer

Represent approveChatJoinRequestAnswer. You may approve the requests retrieved in with ChatJoinRequest (in dev.inmo.tgbotapi.types.update.ChatJoinRequestUpdate)

ChatJoinRequestAnswer
Link copied to clipboard
common
interface ChatJoinRequestAnswer : SimpleRequest<Boolean>

Represent a join request answer. See inheritors for more info

CreateChatInviteLink
Link copied to clipboard
common
interface CreateChatInviteLink<R : SecondaryChatInviteLink> : EditChatInviteLinkRequest<R>
CreateChatInviteLinkUnlimited
Link copied to clipboard
common
data class CreateChatInviteLinkUnlimited(chatId: ChatIdentifier, name: String?, expirationUnixTimeStamp: TelegramDate?) : CreateChatInviteLink<ChatInviteLinkUnlimited>

Represent [https://core.telegram.org/bots/api#createchatinvitelink] request WITHOUT member_limit and creates_join_request

CreateChatInviteLinkWithJoinRequest
Link copied to clipboard
common

Represent [https://core.telegram.org/bots/api#createchatinvitelink] request WITHOUT member_limit and WITH creates_join_request

CreateChatInviteLinkWithLimitedMembers
Link copied to clipboard
common

Represent [https://core.telegram.org/bots/api#createchatinvitelink] request WITH member_limit and WITHOUT creates_join_request

DeclineChatJoinRequest
Link copied to clipboard
common
data class DeclineChatJoinRequest(chatId: ChatIdentifier, userId: UserId) : ChatJoinRequestAnswer

Represent declineChatJoinRequestAnswer. You may approve the requests retrieved in with ChatJoinRequest (in dev.inmo.tgbotapi.types.update.ChatJoinRequestUpdate)

EditChatInviteLink
Link copied to clipboard
EditChatInviteLinkUnlimited
Link copied to clipboard
common
data class EditChatInviteLinkUnlimited(chatId: ChatIdentifier, inviteLink: String, name: String?, expirationUnixTimeStamp: TelegramDate?) : EditChatInviteLink<ChatInviteLinkUnlimited>

Represent [https://core.telegram.org/bots/api#editchatinvitelink] request WITHOUT member_limit and creates_join_request

EditChatInviteLinkWithJoinRequest
Link copied to clipboard
common
data class EditChatInviteLinkWithJoinRequest(chatId: ChatIdentifier, inviteLink: String, name: String?, expirationUnixTimeStamp: TelegramDate?) : EditChatInviteLink<ChatInviteLinkWithJoinRequest> , WithJoinRequestChatInviteLinkRequest

Represent [https://core.telegram.org/bots/api#editchatinvitelink] request WITHOUT member_limit and WITH creates_join_request

EditChatInviteLinkWithLimitedMembers
Link copied to clipboard
common
data class EditChatInviteLinkWithLimitedMembers(chatId: ChatIdentifier, inviteLink: String, membersLimit: MembersLimit, name: String?, expirationUnixTimeStamp: TelegramDate?) : EditChatInviteLink<ChatInviteLinkWithLimitedMembers> , LimitedMembersChatInviteLinkRequest

Represent [https://core.telegram.org/bots/api#editchatinvitelink] request WITH member_limit and WITHOUT creates_join_request

RevokeChatInviteLink
Link copied to clipboard
common
data class RevokeChatInviteLink(chatId: ChatIdentifier, inviteLink: String) : KnownChatInviteLinkRequest<SecondaryChatInviteLink>