2020-10-04 10:57:39 +00:00
|
|
|
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
|
|
|
|
2020-10-04 07:18:24 +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
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
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)
|