本文整理匯總了Java中org.telegram.telegrambots.api.methods.GetUserProfilePhotos類的典型用法代碼示例。如果您正苦於以下問題:Java GetUserProfilePhotos類的具體用法?Java GetUserProfilePhotos怎麽用?Java GetUserProfilePhotos使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
GetUserProfilePhotos類屬於org.telegram.telegrambots.api.methods包,在下文中一共展示了GetUserProfilePhotos類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getUserProfilePhotosAsync
import org.telegram.telegrambots.api.methods.GetUserProfilePhotos; //導入依賴的package包/類
public void getUserProfilePhotosAsync(GetUserProfilePhotos getUserProfilePhotos, SentCallback<UserProfilePhotos> sentCallback) throws TelegramApiException {
if (getUserProfilePhotos == null) {
throw new TelegramApiException("Parameter getUserProfilePhotos can not be null");
}
if (sentCallback == null) {
throw new TelegramApiException("Parameter sentCallback can not be null");
}
sendApiMethodAsync(getUserProfilePhotos, sentCallback);
}
示例2: getGetUserProfilePhotos
import org.telegram.telegrambots.api.methods.GetUserProfilePhotos; //導入依賴的package包/類
public static BotApiMethod getGetUserProfilePhotos() {
return new GetUserProfilePhotos()
.setUserId(98765)
.setLimit(10)
.setOffset(3);
}