Package dev.inmo.tgbotapi.extensions.api.chat.invite_links

Functions

createChatInviteLink
Link copied to clipboard
common
suspend fun TelegramBot.createChatInviteLink(chatId: ChatIdentifier, expiration: DateTime, membersLimit: MembersLimit? = null): CommonInviteLink
suspend fun TelegramBot.createChatInviteLink(chatId: ChatIdentifier, expiration: TelegramDate? = null, membersLimit: MembersLimit? = null): CommonInviteLink
suspend fun TelegramBot.createChatInviteLink(chat: PublicChat, expiration: DateTime, membersLimit: MembersLimit? = null): CommonInviteLink
suspend fun TelegramBot.createChatInviteLink(chat: PublicChat, expiration: TelegramDate? = null, membersLimit: MembersLimit? = null): CommonInviteLink
editChatInviteLink
Link copied to clipboard
common
suspend fun TelegramBot.editChatInviteLink(chat: ChatIdentifier, previousLink: ChatInviteLink, expiration: DateTime, membersLimit: MembersLimit? = previousLink.membersLimit): CommonInviteLink
suspend fun TelegramBot.editChatInviteLink(chat: ChatIdentifier, previousLink: ChatInviteLink, expiration: TelegramDate? = previousLink.expirationDateTime ?.toTelegramDate(), membersLimit: MembersLimit? = previousLink.membersLimit): CommonInviteLink
suspend fun TelegramBot.editChatInviteLink(chatId: ChatIdentifier, previousLink: String, expiration: DateTime, membersLimit: MembersLimit? = null): CommonInviteLink
suspend fun TelegramBot.editChatInviteLink(chatId: ChatIdentifier, previousLink: String, expiration: TelegramDate? = null, membersLimit: MembersLimit? = null): CommonInviteLink
suspend fun TelegramBot.editChatInviteLink(chat: PublicChat, previousLink: ChatInviteLink, expiration: DateTime, membersLimit: MembersLimit? = previousLink.membersLimit): CommonInviteLink
suspend fun TelegramBot.editChatInviteLink(chat: PublicChat, previousLink: ChatInviteLink, expiration: TelegramDate? = previousLink.expirationDateTime ?.toTelegramDate(), membersLimit: MembersLimit? = previousLink.membersLimit): CommonInviteLink
suspend fun TelegramBot.editChatInviteLink(chat: PublicChat, previousLink: String, expiration: DateTime, membersLimit: MembersLimit? = null): CommonInviteLink
suspend fun TelegramBot.editChatInviteLink(chat: PublicChat, previousLink: String, expiration: TelegramDate? = null, membersLimit: MembersLimit? = null): CommonInviteLink
revokeChatInviteLink
Link copied to clipboard
common
suspend fun TelegramBot.revokeChatInviteLink(chatId: ChatIdentifier, previousLink: ChatInviteLink): CommonInviteLink
suspend fun TelegramBot.revokeChatInviteLink(chatId: ChatIdentifier, previousLink: String): CommonInviteLink
suspend fun TelegramBot.revokeChatInviteLink(chat: PublicChat, previousLink: ChatInviteLink): CommonInviteLink
suspend fun TelegramBot.revokeChatInviteLink(chat: PublicChat, previousLink: String): CommonInviteLink