public class TelegramBot
extends java.lang.Object
| Constructor and Description |
|---|
TelegramBot(BotApi botApi,
FileApi fileApi) |
| Modifier and Type | Method and Description |
|---|---|
SendResponse |
forwardMessage(java.lang.Object chatId,
java.lang.Object 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.Object 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.Object 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.Object 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.Object chatId,
ChatAction action) |
SendResponse |
sendDocument(java.lang.Object chatId,
InputFileBytes document,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendDocument(java.lang.Object chatId,
InputFile document,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendDocument(java.lang.Object chatId,
java.lang.String document,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendLocation(java.lang.Object chatId,
java.lang.Float latitude,
java.lang.Float longitude,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendMessage(java.lang.Object chatId,
java.lang.String text) |
SendResponse |
sendMessage(java.lang.Object chatId,
java.lang.String text,
ParseMode parse_mode,
java.lang.Boolean disableWebPagePreview,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendPhoto(java.lang.Object chatId,
InputFileBytes photo,
java.lang.String caption,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendPhoto(java.lang.Object chatId,
InputFile photo,
java.lang.String caption,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendPhoto(java.lang.Object chatId,
java.lang.String photo,
java.lang.String caption,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendSticker(java.lang.Object chatId,
InputFileBytes sticker,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendSticker(java.lang.Object chatId,
InputFile sticker,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendSticker(java.lang.Object chatId,
java.lang.String sticker,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendVideo(java.lang.Object chatId,
InputFileBytes video,
java.lang.Integer duration,
java.lang.String caption,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendVideo(java.lang.Object chatId,
InputFile video,
java.lang.Integer duration,
java.lang.String caption,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendVideo(java.lang.Object chatId,
java.lang.String video,
java.lang.Integer duration,
java.lang.String caption,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendVoice(java.lang.Object chatId,
InputFileBytes voice,
java.lang.Integer duration,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendVoice(java.lang.Object chatId,
InputFile voice,
java.lang.Integer duration,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendVoice(java.lang.Object 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.Object chatId, java.lang.String text)
public SendResponse sendMessage(java.lang.Object chatId, java.lang.String text, ParseMode parse_mode, java.lang.Boolean disableWebPagePreview, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse forwardMessage(java.lang.Object chatId, java.lang.Object fromChatId, java.lang.Integer messageId)
public SendResponse sendPhoto(java.lang.Object chatId, java.lang.String photo, java.lang.String caption, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendPhoto(java.lang.Object chatId, InputFile photo, java.lang.String caption, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendPhoto(java.lang.Object chatId, InputFileBytes photo, java.lang.String caption, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendAudio(java.lang.Object 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.Object 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.Object 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.Object chatId, java.lang.String document, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendDocument(java.lang.Object chatId, InputFile document, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendDocument(java.lang.Object chatId, InputFileBytes document, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendSticker(java.lang.Object chatId, java.lang.String sticker, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendSticker(java.lang.Object chatId, InputFile sticker, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendSticker(java.lang.Object chatId, InputFileBytes sticker, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendVideo(java.lang.Object chatId, java.lang.String video, java.lang.Integer duration, java.lang.String caption, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendVideo(java.lang.Object chatId, InputFile video, java.lang.Integer duration, java.lang.String caption, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendVideo(java.lang.Object chatId, InputFileBytes video, java.lang.Integer duration, java.lang.String caption, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendVoice(java.lang.Object chatId, java.lang.String voice, java.lang.Integer duration, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendVoice(java.lang.Object chatId, InputFile voice, java.lang.Integer duration, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendVoice(java.lang.Object chatId, InputFileBytes voice, java.lang.Integer duration, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendResponse sendLocation(java.lang.Object chatId, java.lang.Float latitude, java.lang.Float longitude, java.lang.Integer replyToMessageId, Keyboard replyMarkup)
public SendChatActionResponse sendChatAction(java.lang.Object chatId, ChatAction action)
public GetUserProfilePhotosResponse getUserProfilePhotos(java.lang.Integer userId, java.lang.Integer offset, java.lang.Integer limit)
public GetUpdatesResponse getUpdates(java.lang.Integer offset, java.lang.Integer limit, java.lang.Integer timeout)
public SetWebhookResponse setWebhook(java.lang.String url)
public SetWebhookResponse setWebhook(java.lang.String url, InputFile certificate)
public SetWebhookResponse setWebhook(java.lang.String url, InputFileBytes certificate)
public GetFileResponse getFile(java.lang.String fileId)