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

Types

Link copied to clipboard
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)

Link copied to clipboard
interface ChatJoinRequestAnswer : SimpleRequest<Boolean>

Represent a join request answer. See inheritors for more info

Link copied to clipboard
interface CreateChatInviteLink<R : SecondaryChatInviteLink> : EditChatInviteLinkRequest<R>
Link copied to clipboard
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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
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)

Link copied to clipboard
Link copied to clipboard
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

Link copied to clipboard
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

Link copied to clipboard
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

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