• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java SentCallback类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中org.telegram.telegrambots.updateshandlers.SentCallback的典型用法代码示例。如果您正苦于以下问题:Java SentCallback类的具体用法?Java SentCallback怎么用?Java SentCallback使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

SentCallback类属于org.telegram.telegrambots.updateshandlers包,在下文中一共展示了SentCallback类的40个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: executeAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public <T extends Serializable, Method extends BotApiMethod<T>, Callback extends SentCallback<T>> void executeAsync(Method method, Callback callback) throws TelegramApiException {
    if (method == null) {
        throw new TelegramApiException("Parameter method can not be null");
    }
    if (callback == null) {
        throw new TelegramApiException("Parameter callback can not be null");
    }
    sendApiMethodAsync(method, callback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:10,
代码来源:AbsSender.java

示例2: sendMessageAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void sendMessageAsync(SendMessage sendMessage, SentCallback<Message> sentCallback) throws TelegramApiException {
    if (sendMessage == null) {
        throw new TelegramApiException("Parameter sendMessage can not be null");
    }

    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(sendMessage, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:12,
代码来源:AbsSender.java

示例3: answerInlineQueryAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void answerInlineQueryAsync(AnswerInlineQuery answerInlineQuery, SentCallback<Boolean> sentCallback) throws TelegramApiException {
    if (answerInlineQuery == null) {
        throw new TelegramApiException("Parameter answerInlineQuery can not be null");
    }

    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(answerInlineQuery, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:12,
代码来源:AbsSender.java

示例4: sendChatActionAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void sendChatActionAsync(SendChatAction sendChatAction, SentCallback<Boolean> sentCallback) throws TelegramApiException {
    if (sendChatAction == null) {
        throw new TelegramApiException("Parameter sendChatAction can not be null");
    }

    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(sendChatAction, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:12,
代码来源:AbsSender.java

示例5: forwardMessageAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void forwardMessageAsync(ForwardMessage forwardMessage, SentCallback<Message> sentCallback) throws TelegramApiException {
    if (forwardMessage == null) {
        throw new TelegramApiException("Parameter forwardMessage can not be null");
    }

    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(forwardMessage, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:12,
代码来源:AbsSender.java

示例6: sendLocationAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void sendLocationAsync(SendLocation sendLocation, SentCallback<Message> sentCallback) throws TelegramApiException {
    if (sendLocation == null) {
        throw new TelegramApiException("Parameter sendLocation can not be null");
    }

    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(sendLocation, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:12,
代码来源:AbsSender.java

示例7: sendVenueAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void sendVenueAsync(SendVenue sendVenue, SentCallback<Message> sentCallback) throws TelegramApiException {
    if (sendVenue == null) {
        throw new TelegramApiException("Parameter sendVenue can not be null");
    }

    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(sendVenue, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:12,
代码来源:AbsSender.java

示例8: sendContactAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void sendContactAsync(SendContact sendContact, SentCallback<Message> sentCallback) throws TelegramApiException {
    if (sendContact == null) {
        throw new TelegramApiException("Parameter sendContact can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(sendContact, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:11,
代码来源:AbsSender.java

示例9: kickMemberAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void kickMemberAsync(KickChatMember kickChatMember, SentCallback<Boolean> sentCallback) throws TelegramApiException {
    if (kickChatMember == null) {
        throw new TelegramApiException("Parameter kickChatMember can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(kickChatMember, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:11,
代码来源:AbsSender.java

示例10: unbanMemberAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void unbanMemberAsync(UnbanChatMember unbanChatMember, SentCallback<Boolean> sentCallback) throws TelegramApiException {
    if (unbanChatMember == null) {
        throw new TelegramApiException("Parameter unbanChatMember can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(unbanChatMember, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:11,
代码来源:AbsSender.java

示例11: leaveChatAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void leaveChatAsync(LeaveChat leaveChat, SentCallback<Boolean> sentCallback) throws TelegramApiException {
    if (leaveChat == null) {
        throw new TelegramApiException("Parameter leaveChat can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }
    sendApiMethodAsync(leaveChat, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:10,
代码来源:AbsSender.java

示例12: getChatAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void getChatAsync(GetChat getChat, SentCallback<Chat> sentCallback) throws TelegramApiException {
    if (getChat == null) {
        throw new TelegramApiException("Parameter getChat can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }
    sendApiMethodAsync(getChat, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:10,
代码来源:AbsSender.java

示例13: exportChatInviteLinkAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void exportChatInviteLinkAsync(ExportChatInviteLink exportChatInviteLink, SentCallback<String> sentCallback) throws TelegramApiException {
    if (exportChatInviteLink == null) {
        throw new TelegramApiException("Parameter exportChatInviteLink can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }
    sendApiMethodAsync(exportChatInviteLink, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:10,
代码来源:AbsSender.java

示例14: getChatAdministratorsAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void getChatAdministratorsAsync(GetChatAdministrators getChatAdministrators, SentCallback<ArrayList<ChatMember>> sentCallback) throws TelegramApiException {
    if (getChatAdministrators == null) {
        throw new TelegramApiException("Parameter getChatAdministrators can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }
    sendApiMethodAsync(getChatAdministrators, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:10,
代码来源:AbsSender.java

示例15: getChatMemberAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void getChatMemberAsync(GetChatMember getChatMember, SentCallback<ChatMember> sentCallback) throws TelegramApiException {
    if (getChatMember == null) {
        throw new TelegramApiException("Parameter getChatMember can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }
    sendApiMethodAsync(getChatMember, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:10,
代码来源:AbsSender.java

示例16: getChatMemberCountAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void getChatMemberCountAsync(GetChatMemberCount getChatMemberCount, SentCallback<Integer> sentCallback) throws TelegramApiException {
    if (getChatMemberCount == null) {
        throw new TelegramApiException("Parameter getChatMemberCount can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(getChatMemberCount, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:11,
代码来源:AbsSender.java

示例17: editMessageTextAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void editMessageTextAsync(EditMessageText editMessageText, SentCallback<Serializable> sentCallback) throws TelegramApiException {
    if (editMessageText == null) {
        throw new TelegramApiException("Parameter editMessageText can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(editMessageText, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:11,
代码来源:AbsSender.java

示例18: editMessageCaptionAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void editMessageCaptionAsync(EditMessageCaption editMessageCaption, SentCallback<Serializable> sentCallback) throws TelegramApiException {
    if (editMessageCaption == null) {
        throw new TelegramApiException("Parameter editMessageCaption can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(editMessageCaption, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:11,
代码来源:AbsSender.java

示例19: answerCallbackQueryAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void answerCallbackQueryAsync(AnswerCallbackQuery answerCallbackQuery, SentCallback<Boolean> sentCallback) throws TelegramApiException {
    if (answerCallbackQuery == null) {
        throw new TelegramApiException("Parameter answerCallbackQuery can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(answerCallbackQuery, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:11,
代码来源:AbsSender.java

示例20: getUserProfilePhotosAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final 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);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:11,
代码来源:AbsSender.java

示例21: getFileAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void getFileAsync(GetFile getFile, SentCallback<File> sentCallback) throws TelegramApiException {
    if (getFile == null) {
        throw new TelegramApiException("Parameter getFile can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(getFile, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:11,
代码来源:AbsSender.java

示例22: getMeAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void getMeAsync(SentCallback<User> sentCallback) throws TelegramApiException {
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }
    GetMe getMe = new GetMe();
    sendApiMethodAsync(getMe, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:8,
代码来源:AbsSender.java

示例23: getWebhookInfoAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void getWebhookInfoAsync(SentCallback<WebhookInfo> sentCallback) throws TelegramApiException {
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    GetWebhookInfo getWebhookInfo = new GetWebhookInfo();
    sendApiMethodAsync(getWebhookInfo, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:9,
代码来源:AbsSender.java

示例24: setGameScoreAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void setGameScoreAsync(SetGameScore setGameScore, SentCallback<Serializable> sentCallback) throws TelegramApiException {
    if (setGameScore == null) {
        throw new TelegramApiException("Parameter setGameScore can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }
    sendApiMethodAsync(setGameScore, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:10,
代码来源:AbsSender.java

示例25: getGameHighScoresAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void getGameHighScoresAsync(GetGameHighScores getGameHighScores, SentCallback<ArrayList<GameHighScore>> sentCallback) throws TelegramApiException {
    if (getGameHighScores == null) {
        throw new TelegramApiException("Parameter getGameHighScores can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }
    sendApiMethodAsync(getGameHighScores, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:10,
代码来源:AbsSender.java

示例26: sendGameAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public final void sendGameAsync(SendGame sendGame, SentCallback<Message> sentCallback) throws TelegramApiException {
    if (sendGame == null) {
        throw new TelegramApiException("Parameter sendGame can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }
    sendApiMethodAsync(sendGame, sentCallback);
}
 

开发者ID:samurayrj,
项目名称:rubenlagus-TelegramBots,
代码行数:10,
代码来源:AbsSender.java

示例27: sendMessageAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public void sendMessageAsync(SendMessage sendMessage, SentCallback<Message> sentCallback) throws TelegramApiException {
    if (sendMessage == null) {
        throw new TelegramApiException("Parameter sendMessage can not be null");
    }

    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(sendMessage, sentCallback);
}
 

开发者ID:gomgomdev,
项目名称:telegram-bot_misebot,
代码行数:12,
代码来源:AbsSender.java

示例28: answerInlineQueryAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public void answerInlineQueryAsync(AnswerInlineQuery answerInlineQuery, SentCallback<Boolean> sentCallback) throws TelegramApiException {
    if (answerInlineQuery == null) {
        throw new TelegramApiException("Parameter answerInlineQuery can not be null");
    }

    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(answerInlineQuery, sentCallback);
}
 

开发者ID:gomgomdev,
项目名称:telegram-bot_misebot,
代码行数:12,
代码来源:AbsSender.java

示例29: sendChatActionAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public void sendChatActionAsync(SendChatAction sendChatAction, SentCallback<Boolean> sentCallback) throws TelegramApiException {
    if (sendChatAction == null) {
        throw new TelegramApiException("Parameter sendChatAction can not be null");
    }

    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(sendChatAction, sentCallback);
}
 

开发者ID:gomgomdev,
项目名称:telegram-bot_misebot,
代码行数:12,
代码来源:AbsSender.java

示例30: forwardMessageAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public void forwardMessageAsync(ForwardMessage forwardMessage, SentCallback<Message> sentCallback) throws TelegramApiException {
    if (forwardMessage == null) {
        throw new TelegramApiException("Parameter forwardMessage can not be null");
    }

    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(forwardMessage, sentCallback);
}
 

开发者ID:gomgomdev,
项目名称:telegram-bot_misebot,
代码行数:12,
代码来源:AbsSender.java

示例31: sendLocationAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public void sendLocationAsync(SendLocation sendLocation, SentCallback<File> sentCallback) throws TelegramApiException {
    if (sendLocation == null) {
        throw new TelegramApiException("Parameter sendLocation can not be null");
    }

    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(sendLocation, sentCallback);
}
 

开发者ID:gomgomdev,
项目名称:telegram-bot_misebot,
代码行数:12,
代码来源:AbsSender.java

示例32: sendVenueAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public void sendVenueAsync(SendVenue sendVenue, SentCallback<Message> sentCallback) throws TelegramApiException {
    if (sendVenue == null) {
        throw new TelegramApiException("Parameter sendVenue can not be null");
    }

    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(sendVenue, sentCallback);
}
 

开发者ID:gomgomdev,
项目名称:telegram-bot_misebot,
代码行数:12,
代码来源:AbsSender.java

示例33: sendContactAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public void sendContactAsync(SendContact sendContact, SentCallback<Message> sentCallback) throws TelegramApiException {
    if (sendContact == null) {
        throw new TelegramApiException("Parameter sendContact can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(sendContact, sentCallback);
}
 

开发者ID:gomgomdev,
项目名称:telegram-bot_misebot,
代码行数:11,
代码来源:AbsSender.java

示例34: kickMemberAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public void kickMemberAsync(KickChatMember kickChatMember, SentCallback<Boolean> sentCallback) throws TelegramApiException {
    if (kickChatMember == null) {
        throw new TelegramApiException("Parameter kickChatMember can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(kickChatMember, sentCallback);
}
 

开发者ID:gomgomdev,
项目名称:telegram-bot_misebot,
代码行数:11,
代码来源:AbsSender.java

示例35: unbanMemberAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public void unbanMemberAsync(UnbanChatMember unbanChatMember, SentCallback<Boolean> sentCallback) throws TelegramApiException {
    if (unbanChatMember == null) {
        throw new TelegramApiException("Parameter unbanChatMember can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(unbanChatMember, sentCallback);
}
 

开发者ID:gomgomdev,
项目名称:telegram-bot_misebot,
代码行数:11,
代码来源:AbsSender.java

示例36: editMessageTextAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public void editMessageTextAsync(EditMessageText editMessageText, SentCallback<Message> sentCallback) throws TelegramApiException {
    if (editMessageText == null) {
        throw new TelegramApiException("Parameter editMessageText can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(editMessageText, sentCallback);
}
 

开发者ID:gomgomdev,
项目名称:telegram-bot_misebot,
代码行数:11,
代码来源:AbsSender.java

示例37: editMessageCaptionAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public void editMessageCaptionAsync(EditMessageCaption editMessageCaption, SentCallback<Message> sentCallback) throws TelegramApiException {
    if (editMessageCaption == null) {
        throw new TelegramApiException("Parameter editMessageCaption can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(editMessageCaption, sentCallback);
}
 

开发者ID:gomgomdev,
项目名称:telegram-bot_misebot,
代码行数:11,
代码来源:AbsSender.java

示例38: answerCallbackQueryAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public void answerCallbackQueryAsync(AnswerCallbackQuery answerCallbackQuery, SentCallback<Boolean> sentCallback) throws TelegramApiException {
    if (answerCallbackQuery == null) {
        throw new TelegramApiException("Parameter answerCallbackQuery can not be null");
    }
    if (sentCallback == null) {
        throw new TelegramApiException("Parameter sentCallback can not be null");
    }

    sendApiMethodAsync(answerCallbackQuery, sentCallback);
}
 

开发者ID:gomgomdev,
项目名称:telegram-bot_misebot,
代码行数:11,
代码来源:AbsSender.java

示例39: getUserProfilePhotosAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的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);
}
 

开发者ID:gomgomdev,
项目名称:telegram-bot_misebot,
代码行数:12,
代码来源:AbsSender.java

示例40: getFileAsync

点赞 2

import org.telegram.telegrambots.updateshandlers.SentCallback; //导入依赖的package包/类
public void getFileAsync(GetFile getFile, SentCallback<File> sentCallback) throws TelegramApiException {
    if (getFile == null) {
        throw new TelegramApiException("Parameter getFile can not be null");
    } else if (getFile.getFileId() == null) {
        throw new TelegramApiException("Attribute file_id in parameter getFile can not be null");
    }

    sendApiMethodAsync(getFile, sentCallback);
}
 

开发者ID:gomgomdev,
项目名称:telegram-bot_misebot,
代码行数:10,
代码来源:AbsSender.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)