com.pengrad.telegrambot
Interface TelegramBot


public interface TelegramBot

stas 8/4/15.


Method Summary
 SendResponse forwardMessage(java.lang.Integer chatId, java.lang.Integer fromChatId, java.lang.Integer messageId)
           
 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)
           
 

Method Detail

getMe

@GET(value="/getMe")
GetMeResponse getMe()

getMe

@GET(value="/getMe")
void getMe(retrofit.Callback<GetMeResponse> callback)

getMeRx

@GET(value="/getMe")
rx.Observable<GetMeResponse> getMeRx()

sendMessage

@POST(value="/sendMessage")
@FormUrlEncoded
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

@POST(value="/sendMessage")
@FormUrlEncoded
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)

sendMessageRx

@POST(value="/sendMessage")
@FormUrlEncoded
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)

forwardMessage

@POST(value="/forwardMessage")
@FormUrlEncoded
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)

sendPhoto

@Multipart
@POST(value="/sendPhoto")
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)

sendPhoto

@Multipart
@POST(value="/sendPhoto")
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)

sendPhoto

@Multipart
@POST(value="/sendPhoto")
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)

sendAudio

@Multipart
@POST(value="/sendAudio")
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)

sendAudio

@Multipart
@POST(value="/sendAudio")
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)

sendAudio

@Multipart
@POST(value="/sendAudio")
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)

sendDocument

@Multipart
@POST(value="/sendDocument")
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

@Multipart
@POST(value="/sendDocument")
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

@Multipart
@POST(value="/sendDocument")
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)

sendSticker

@Multipart
@POST(value="/sendSticker")
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

@Multipart
@POST(value="/sendSticker")
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

@Multipart
@POST(value="/sendSticker")
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)

sendVideo

@Multipart
@POST(value="/sendVideo")
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)

sendVideo

@Multipart
@POST(value="/sendVideo")
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)

sendVideo

@Multipart
@POST(value="/sendVideo")
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)

sendLocation

@POST(value="/sendLocation")
@FormUrlEncoded
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)

sendChatAction

@POST(value="/sendChatAction")
@FormUrlEncoded
SendChatActionResponse sendChatAction(@Field(value="chat_id")
                                                          java.lang.Integer chatId,
                                                          @Field(value="action")
                                                          java.lang.String action)

getUserProfilePhotos

@GET(value="/getUserProfilePhotos")
GetUserProfilePhotos getUserProfilePhotos(@Query(value="user_id")
                                              java.lang.Integer userId,
                                              @Query(value="offset")
                                              java.lang.Integer offset,
                                              @Query(value="limit")
                                              java.lang.Integer limit)

getUpdates

@GET(value="/getUpdates")
GetUpdatesResponse getUpdates(@Query(value="offset")
                                  java.lang.Integer offset,
                                  @Query(value="limit")
                                  java.lang.Integer limit,
                                  @Query(value="timeout")
                                  java.lang.Integer timeout)

setWebhook

@POST(value="/setWebhook")
@FormUrlEncoded
SetWebhookResponse setWebhook(@Field(value="url")
                                                  java.lang.String url)