| Constructor and Description |
|---|
TelegramBot(BotApi botApi,
FileApi fileApi) |
| Modifier and Type | Method and Description |
|---|---|
SendResponse |
forwardMessage(java.lang.Integer chatId,
java.lang.Integer fromChatId,
java.lang.Integer messageId) |
GetFileResponse |
getFile(java.lang.String fileId) |
java.lang.String |
getFullFilePath(File file) |
java.lang.String |
getFullFilePath(java.lang.String fileId) |
GetMeResponse |
getMe() |
GetUpdatesResponse |
getUpdates(java.lang.Integer offset,
java.lang.Integer limit,
java.lang.Integer timeout) |
GetUserProfilePhotosResponse |
getUserProfilePhotos(java.lang.Integer userId,
java.lang.Integer offset,
java.lang.Integer limit) |
SendResponse |
sendAudio(java.lang.Integer chatId,
InputFileBytes audio,
java.lang.Integer duration,
java.lang.String performer,
java.lang.String title,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendAudio(java.lang.Integer chatId,
InputFile audio,
java.lang.Integer duration,
java.lang.String performer,
java.lang.String title,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendAudio(java.lang.Integer chatId,
java.lang.String audio,
java.lang.Integer duration,
java.lang.String performer,
java.lang.String title,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendChatActionResponse |
sendChatAction(java.lang.Integer chatId,
ChatAction action) |
SendResponse |
sendDocument(java.lang.Integer chatId,
InputFileBytes document,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendDocument(java.lang.Integer chatId,
InputFile document,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendDocument(java.lang.Integer chatId,
java.lang.String document,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendLocation(java.lang.Integer chatId,
java.lang.Float latitude,
java.lang.Float longitude,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendMessage(java.lang.Integer chatId,
java.lang.String text,
ParseMode parse_mode,
java.lang.Boolean disableWebPagePreview,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendPhoto(java.lang.Integer chatId,
InputFileBytes photo,
java.lang.String caption,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendPhoto(java.lang.Integer chatId,
InputFile photo,
java.lang.String caption,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendPhoto(java.lang.Integer chatId,
java.lang.String photo,
java.lang.String caption,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendSticker(java.lang.Integer chatId,
InputFileBytes sticker,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendSticker(java.lang.Integer chatId,
InputFile sticker,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendSticker(java.lang.Integer chatId,
java.lang.String sticker,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendVideo(java.lang.Integer chatId,
InputFileBytes video,
java.lang.Integer duration,
java.lang.String caption,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendVideo(java.lang.Integer chatId,
InputFile video,
java.lang.Integer duration,
java.lang.String caption,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendVideo(java.lang.Integer chatId,
java.lang.String video,
java.lang.Integer duration,
java.lang.String caption,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendVoice(java.lang.Integer chatId,
InputFileBytes voice,
java.lang.Integer duration,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendVoice(java.lang.Integer chatId,
InputFile voice,
java.lang.Integer duration,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendVoice(java.lang.Integer chatId,
java.lang.String voice,
java.lang.Integer duration,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SetWebhookResponse |
setWebhook(java.lang.String url) |
SetWebhookResponse |
setWebhook(java.lang.String url,
InputFile certificate) |
SetWebhookResponse |
setWebhook(java.lang.String url,
InputFileBytes certificate) |
public java.lang.String getFullFilePath(java.lang.String fileId)
public java.lang.String getFullFilePath(File file)
public GetMeResponse getMe()
public SendResponse sendMessage(java.lang.Integer chatId, java.lang.String text, ParseMode parse_mode, java.lang.Boolean disableWebPagePreview, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
sendMessage in interface BotApipublic SendResponse forwardMessage(java.lang.Integer chatId, java.lang.Integer fromChatId, java.lang.Integer messageId)
forwardMessage in interface BotApipublic SendResponse sendPhoto(java.lang.Integer chatId, java.lang.String photo, java.lang.String caption, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendPhoto(java.lang.Integer chatId, InputFile photo, java.lang.String caption, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendPhoto(java.lang.Integer chatId, InputFileBytes photo, java.lang.String caption, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendAudio(java.lang.Integer chatId, java.lang.String audio, java.lang.Integer duration, java.lang.String performer, java.lang.String title, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendAudio(java.lang.Integer chatId, InputFile audio, java.lang.Integer duration, java.lang.String performer, java.lang.String title, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendAudio(java.lang.Integer chatId, InputFileBytes audio, java.lang.Integer duration, java.lang.String performer, java.lang.String title, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendDocument(java.lang.Integer chatId, java.lang.String document, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
sendDocument in interface BotApipublic SendResponse sendDocument(java.lang.Integer chatId, InputFile document, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
sendDocument in interface BotApipublic SendResponse sendDocument(java.lang.Integer chatId, InputFileBytes document, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
sendDocument in interface BotApipublic SendResponse sendSticker(java.lang.Integer chatId, java.lang.String sticker, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
sendSticker in interface BotApipublic SendResponse sendSticker(java.lang.Integer chatId, InputFile sticker, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
sendSticker in interface BotApipublic SendResponse sendSticker(java.lang.Integer chatId, InputFileBytes sticker, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
sendSticker in interface BotApipublic SendResponse sendVideo(java.lang.Integer chatId, java.lang.String video, java.lang.Integer duration, java.lang.String caption, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendVideo(java.lang.Integer chatId, InputFile video, java.lang.Integer duration, java.lang.String caption, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendVideo(java.lang.Integer chatId, InputFileBytes video, java.lang.Integer duration, java.lang.String caption, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendVoice(java.lang.Integer chatId, java.lang.String voice, java.lang.Integer duration, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendVoice(java.lang.Integer chatId, InputFile voice, java.lang.Integer duration, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendVoice(java.lang.Integer chatId, InputFileBytes voice, java.lang.Integer duration, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendLocation(java.lang.Integer chatId, java.lang.Float latitude, java.lang.Float longitude, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
sendLocation in interface BotApipublic SendChatActionResponse sendChatAction(java.lang.Integer chatId, ChatAction action)
sendChatAction in interface BotApipublic GetUserProfilePhotosResponse getUserProfilePhotos(java.lang.Integer userId, java.lang.Integer offset, java.lang.Integer limit)
getUserProfilePhotos in interface BotApipublic GetUpdatesResponse getUpdates(java.lang.Integer offset, java.lang.Integer limit, java.lang.Integer timeout)
getUpdates in interface BotApipublic SetWebhookResponse setWebhook(java.lang.String url)
setWebhook in interface BotApipublic SetWebhookResponse setWebhook(java.lang.String url, InputFile certificate)
setWebhook in interface BotApipublic SetWebhookResponse setWebhook(java.lang.String url, InputFileBytes certificate)
setWebhook in interface BotApipublic GetFileResponse getFile(java.lang.String fileId)