mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-03 00:15:27 +00:00
16 lines
491 B
Kotlin
16 lines
491 B
Kotlin
package dev.inmo.tgbotapi.extensions.api.chat.get
|
|
|
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
|
import dev.inmo.tgbotapi.requests.chat.get.GetChatMenuButton
|
|
import dev.inmo.tgbotapi.requests.chat.modify.*
|
|
import dev.inmo.tgbotapi.types.*
|
|
import dev.inmo.tgbotapi.types.chat.abstracts.PrivateChat
|
|
|
|
suspend fun TelegramBot.getChatMenuButton(
|
|
chatId: ChatId
|
|
) = execute(GetChatMenuButton(chatId))
|
|
|
|
suspend fun TelegramBot.getChatMenuButton(
|
|
chat: PrivateChat
|
|
) = getChatMenuButton(chat.id)
|