mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-02 07:55:25 +00:00
15 lines
554 B
Kotlin
15 lines
554 B
Kotlin
|
package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.chat
|
||
|
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.RequestsExecutor
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.chat.LeaveChat
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.ChatIdentifier
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.PublicChat
|
||
|
|
||
|
suspend fun RequestsExecutor.leaveChat(
|
||
|
chatId: ChatIdentifier
|
||
|
) = execute(LeaveChat(chatId))
|
||
|
|
||
|
suspend fun RequestsExecutor.leaveChat(
|
||
|
chat: PublicChat
|
||
|
) = leaveChat(chat.id)
|