Package cronapi.chatbot.telegram
Class TelegramMessenger
- java.lang.Object
-
- org.telegram.telegrambots.bots.AbsSender
-
- org.telegram.telegrambots.bots.DefaultAbsSender
-
- cronapi.chatbot.telegram.TelegramMessenger
-
-
Constructor Summary
Constructors Constructor Description TelegramMessenger(String token, String url, Boolean typingIndicator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBotToken()StringgetPlatform()StringgetUrlFromLocation(Location location, TypeUrl typeUrl)voidsendButtonMessage(String conversationId, GroupedButton groupedButton)voidsendCarousel(String conversationId, List<Carousel> carouselList)voidsendFileMessage(String conversationId, List<LabelUrl> labelUrlList)voidsendImageMessage(String conversationId, List<LabelUrl> labelUrlList)voidsendLocation(String conversationId, Location location)voidsendQuickReply(String conversationId, String text, List<QuickReply> quickReply)voidsendTextMessage(String conversationId, String text)voidsendTypingOn(String conversationId)-
Methods inherited from class org.telegram.telegrambots.bots.DefaultAbsSender
addStickerToSet, createNewStickerSet, downloadFile, downloadFile, downloadFileAsync, downloadFileAsync, getBaseUrl, getOptions, sendApiMethod, sendApiMethodAsync, sendAudio, sendDocument, sendMediaGroup, sendPhoto, sendSticker, sendVideo, sendVideoNote, sendVoice, setChatPhoto, uploadStickerFile
-
Methods inherited from class org.telegram.telegrambots.bots.AbsSender
answerCallbackQuery, answerCallbackQueryAsync, answerInlineQuery, answerInlineQueryAsync, answerPreCheckoutQuery, answerPreCheckoutQuery, answerShippingQuery, answerShippingQuery, deleteChatPhoto, deleteChatPhoto, deleteMessage, deleteMessage, deleteWebhook, deleteWebhook, editMessageCaption, editMessageCaptionAsync, editMessageReplyMarkup, editMessageReplyMarkup, editMessageText, editMessageTextAsync, execute, executeAsync, exportChatInviteLink, exportChatInviteLinkAsync, forwardMessage, forwardMessageAsync, getChat, getChatAdministrators, getChatAdministratorsAsync, getChatAsync, getChatMember, getChatMemberAsync, getChatMemberCount, getChatMemberCountAsync, getFile, getFileAsync, getGameHighScores, getGameHighScoresAsync, getMe, getMeAsync, getUserProfilePhotos, getUserProfilePhotosAsync, getWebhookInfo, getWebhookInfoAsync, kickMember, kickMemberAsync, leaveChat, leaveChatAsync, pinChatMessage, pinChatMessage, promoteChatMember, promoteChatMember, restrictChatMember, restrictChatMember, sendChatAction, sendChatActionAsync, sendContact, sendContactAsync, sendGame, sendGameAsync, sendInvoice, sendInvoice, sendLocation, sendLocationAsync, sendMessage, sendMessageAsync, sendVenue, sendVenueAsync, setChatDescription, setChatDescription, setChatTitle, setChatTitle, setGameScore, setGameScoreAsync, unbanMember, unbanMemberAsync, unpinChatMessage, unpinChatMessage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cronapi.chatbot.Messenger
sendTypingOff, sendWatsonMessage
-
-
-
-
Method Detail
-
getPlatform
public String getPlatform()
- Specified by:
getPlatformin interfaceMessenger
-
sendLocation
public void sendLocation(String conversationId, Location location)
- Specified by:
sendLocationin interfaceMessenger
-
sendCarousel
public void sendCarousel(String conversationId, List<Carousel> carouselList)
- Specified by:
sendCarouselin interfaceMessenger
-
sendQuickReply
public void sendQuickReply(String conversationId, String text, List<QuickReply> quickReply)
- Specified by:
sendQuickReplyin interfaceMessenger
-
sendTextMessage
public void sendTextMessage(String conversationId, String text)
- Specified by:
sendTextMessagein interfaceMessenger
-
sendTypingOn
public void sendTypingOn(String conversationId)
- Specified by:
sendTypingOnin interfaceMessenger
-
getUrlFromLocation
public String getUrlFromLocation(Location location, TypeUrl typeUrl)
- Specified by:
getUrlFromLocationin interfaceMessenger
-
getBotToken
public String getBotToken()
- Specified by:
getBotTokenin classorg.telegram.telegrambots.bots.DefaultAbsSender
-
sendButtonMessage
public void sendButtonMessage(String conversationId, GroupedButton groupedButton)
- Specified by:
sendButtonMessagein interfaceMessenger
-
sendFileMessage
public void sendFileMessage(String conversationId, List<LabelUrl> labelUrlList)
- Specified by:
sendFileMessagein interfaceMessenger
-
sendImageMessage
public void sendImageMessage(String conversationId, List<LabelUrl> labelUrlList)
- Specified by:
sendImageMessagein interfaceMessenger
-
-