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

Types

Link copied to clipboard
data class ApproveChatJoinRequest(val chatId: ChatIdentifier, val 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(    val chatId: ChatIdentifier,     val name: String? = null,     val expirationUnixTimeStamp: TelegramDate? = null) : CreateChatInviteLink<ChatInviteLinkUnlimited>

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

Link copied to clipboard
data class CreateChatInviteLinkWithJoinRequest(    val chatId: ChatIdentifier,     val name: String? = null,     val expirationUnixTimeStamp: TelegramDate? = null) : CreateChatInviteLink<ChatInviteLinkWithJoinRequest> , WithJoinRequestChatInviteLinkRequest

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

Link copied to clipboard
data class CreateChatInviteLinkWithLimitedMembers(    val chatId: ChatIdentifier,     val membersLimit: MembersLimit,     val name: String? = null,     val expirationUnixTimeStamp: TelegramDate? = null) : CreateChatInviteLink<ChatInviteLinkWithLimitedMembers> , LimitedMembersChatInviteLinkRequest

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

Link copied to clipboard
data class DeclineChatJoinRequest(val chatId: ChatIdentifier, val 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(    val chatId: ChatIdentifier,     val inviteLink: String,     val name: String? = null,     val expirationUnixTimeStamp: TelegramDate? = null) : 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(    val chatId: ChatIdentifier,     val inviteLink: String,     val name: String? = null,     val expirationUnixTimeStamp: TelegramDate? = null) : 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(    val chatId: ChatIdentifier,     val inviteLink: String,     val membersLimit: MembersLimit,     val name: String? = null,     val expirationUnixTimeStamp: TelegramDate? = null) : 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(val chatId: ChatIdentifier, val inviteLink: String) : KnownChatInviteLinkRequest<SecondaryChatInviteLink>