| 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() |
void |
getMe(retrofit.Callback<GetMeResponse> callback) |
rx.Observable<GetMeResponse> |
getMeRx() |
GetUpdatesResponse |
getUpdates(java.lang.Integer offset,
java.lang.Integer limit,
java.lang.Integer timeout) |
GetUserProfilePhotos |
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.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendAudio(java.lang.Integer chatId,
InputFile audio,
java.lang.Integer duration,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendAudio(java.lang.Integer chatId,
java.lang.String audio,
java.lang.Integer duration,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendChatActionResponse |
sendChatAction(java.lang.Integer chatId,
java.lang.String 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,
java.lang.Boolean disableWebPagePreview,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup) |
SendResponse |
sendMessage(java.lang.Integer chatId,
java.lang.String text,
java.lang.Boolean disableWebPagePreview,
java.lang.Integer replyToMessageId,
Keyboard replyMarkup,
retrofit.Callback<SendResponse> callback) |
rx.Observable<SendResponse> |
sendMessageRx(java.lang.Integer chatId,
java.lang.String text,
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) |
SetWebhookResponse |
setWebhook(java.lang.String url) |
public java.lang.String getFullFilePath(java.lang.String fileId)
public java.lang.String getFullFilePath(File file)
public GetMeResponse getMe()
public void getMe(retrofit.Callback<GetMeResponse> callback)
public rx.Observable<GetMeResponse> getMeRx()
public SendResponse sendMessage(@Field(value="chat_id") java.lang.Integer chatId, @Field(value="text") java.lang.String text, @Field(value="disable_web_page_preview") java.lang.Boolean disableWebPagePreview, @Field(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Field(value="reply_markup") Keyboard replyMarkup)
sendMessage in interface BotApipublic SendResponse sendMessage(@Field(value="chat_id") java.lang.Integer chatId, @Field(value="text") java.lang.String text, @Field(value="disable_web_page_preview") java.lang.Boolean disableWebPagePreview, @Field(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Field(value="reply_markup") Keyboard replyMarkup, retrofit.Callback<SendResponse> callback)
sendMessage in interface BotApipublic rx.Observable<SendResponse> sendMessageRx(@Field(value="chat_id") java.lang.Integer chatId, @Field(value="text") java.lang.String text, @Field(value="disable_web_page_preview") java.lang.Boolean disableWebPagePreview, @Field(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Field(value="reply_markup") Keyboard replyMarkup)
sendMessageRx in interface BotApipublic SendResponse forwardMessage(@Field(value="chat_id") java.lang.Integer chatId, @Field(value="from_chat_id") java.lang.Integer fromChatId, @Field(value="message_id") java.lang.Integer messageId)
forwardMessage in interface BotApipublic SendResponse sendPhoto(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="photo") java.lang.String photo, @Part(value="caption") java.lang.String caption, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
public SendResponse sendPhoto(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="photo") InputFile photo, @Part(value="caption") java.lang.String caption, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
public SendResponse sendPhoto(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="photo") InputFileBytes photo, @Part(value="caption") java.lang.String caption, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
public SendResponse sendAudio(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="audio") java.lang.String audio, @Part(value="duration") java.lang.Integer duration, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
public SendResponse sendAudio(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="audio") InputFile audio, @Part(value="duration") java.lang.Integer duration, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
public SendResponse sendAudio(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="audio") InputFileBytes audio, @Part(value="duration") java.lang.Integer duration, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
public SendResponse sendDocument(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="document") java.lang.String document, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
sendDocument in interface BotApipublic SendResponse sendDocument(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="document") InputFile document, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
sendDocument in interface BotApipublic SendResponse sendDocument(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="document") InputFileBytes document, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
sendDocument in interface BotApipublic SendResponse sendSticker(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="sticker") java.lang.String sticker, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
sendSticker in interface BotApipublic SendResponse sendSticker(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="sticker") InputFile sticker, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
sendSticker in interface BotApipublic SendResponse sendSticker(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="sticker") InputFileBytes sticker, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
sendSticker in interface BotApipublic SendResponse sendVideo(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="video") java.lang.String video, @Part(value="duration") java.lang.Integer duration, @Part(value="caption") java.lang.String caption, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
public SendResponse sendVideo(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="video") InputFile video, @Part(value="duration") java.lang.Integer duration, @Part(value="caption") java.lang.String caption, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
public SendResponse sendVideo(@Part(value="chat_id") java.lang.Integer chatId, @Part(value="video") InputFileBytes video, @Part(value="duration") java.lang.Integer duration, @Part(value="caption") java.lang.String caption, @Part(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Part(value="reply_markup") Keyboard replyMarkup)
public SendResponse sendLocation(@Field(value="chat_id") java.lang.Integer chatId, @Field(value="latitude") java.lang.Float latitude, @Field(value="longitude") java.lang.Float longitude, @Field(value="reply_to_message_id") java.lang.Integer replyToMessageId, @Field(value="reply_markup") Keyboard replyMarkup)
sendLocation in interface BotApipublic SendChatActionResponse sendChatAction(@Field(value="chat_id") java.lang.Integer chatId, @Field(value="action") java.lang.String action)
sendChatAction in interface BotApipublic GetUserProfilePhotos getUserProfilePhotos(@Query(value="user_id") java.lang.Integer userId, @Query(value="offset") java.lang.Integer offset, @Query(value="limit") java.lang.Integer limit)
getUserProfilePhotos in interface BotApipublic GetUpdatesResponse getUpdates(@Query(value="offset") java.lang.Integer offset, @Query(value="limit") java.lang.Integer limit, @Query(value="timeout") java.lang.Integer timeout)
getUpdates in interface BotApipublic SetWebhookResponse setWebhook(@Field(value="url") java.lang.String url)
setWebhook in interface BotApipublic GetFileResponse getFile(@Query(value="file_id") java.lang.String fileId)