tgbotapi/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/get/GetUserProfilePhotos.kt

23 lines
584 B
Kotlin
Raw Normal View History

package dev.inmo.tgbotapi.extensions.api.get
2020-02-15 09:33:04 +00:00
2020-10-04 11:06:30 +00:00
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.get.GetUserProfilePhotos
import dev.inmo.tgbotapi.types.CommonUser
import dev.inmo.tgbotapi.types.UserId
2020-02-15 09:33:04 +00:00
suspend fun TelegramBot.getUserProfilePhotos(
2020-02-15 09:33:04 +00:00
userId: UserId,
offset: Int? = null,
limit: Int? = null
) = execute(
GetUserProfilePhotos(
userId, offset, limit
)
)
suspend fun TelegramBot.getUserProfilePhotos(
2020-02-15 09:33:04 +00:00
user: CommonUser,
offset: Int? = null,
limit: Int? = null
) = getUserProfilePhotos(user.id, offset, limit)