Package cronapp.framework.telegram
Class BotOperations
- java.lang.Object
-
- cronapp.framework.telegram.BotOperations
-
public final class BotOperations extends Object
-
-
Constructor Summary
Constructors Constructor Description BotOperations()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VargetUpdates(Var botToken, Var limit, Var offset, Var allowedUpdates)static VarsendAnimation(Var botToken, Var chatId, Var animation)static VarsendAudio(Var botToken, Var chatId, Var audio)static VarsendChatAction(Var botToken, Var chatId, Var action)static VarsendContact(Var botToken, Var chatId, Var phoneNumber, Var firstName)static VarsendDice(Var botToken, Var chatId)static VarsendGame(Var botToken, Var chatId, Var gameShortName)static VarsendInvoice(Var botToken, Var chatId, Var title, Var description, Var payload, Var providerToken, Var startParameter, Var currency, Var prices)static VarsendLocation(Var botToken, Var chatId, Var latitude, Var longitude)static VarsendMediaGroup(Var botToken, Var chatId, Var medias)static VarsendMessage(Var botToken, Var chatId, Var text)static VarsendPhoto(Var botToken, Var chatId, Var photo)static VarsendSticker(Var botToken, Var chatId, Var sticker)static VarsendVenue(Var botToken, Var chatId, Var latitude, Var longitude, Var title, Var address)static VarsendVideo(Var botToken, Var chatId, Var video)static VarsendVideoNote(Var botToken, Var chatId, Var videoNote)static VarsendVoice(Var botToken, Var chatId, Var voice)
-
-
-
Method Detail
-
getUpdates
public static Var getUpdates(Var botToken, Var limit, Var offset, Var allowedUpdates) throws Exception
- Throws:
Exception
-
sendMessage
public static Var sendMessage(Var botToken, Var chatId, Var text) throws Exception
- Throws:
Exception
-
sendAnimation
public static Var sendAnimation(Var botToken, Var chatId, Var animation) throws Exception
- Throws:
Exception
-
sendAudio
public static Var sendAudio(Var botToken, Var chatId, Var audio) throws Exception
- Throws:
Exception
-
sendChatAction
public static Var sendChatAction(Var botToken, Var chatId, Var action) throws Exception
- Throws:
Exception
-
sendContact
public static Var sendContact(Var botToken, Var chatId, Var phoneNumber, Var firstName) throws Exception
- Throws:
Exception
-
sendGame
public static Var sendGame(Var botToken, Var chatId, Var gameShortName) throws Exception
- Throws:
Exception
-
sendInvoice
public static Var sendInvoice(Var botToken, Var chatId, Var title, Var description, Var payload, Var providerToken, Var startParameter, Var currency, Var prices) throws Exception
- Throws:
Exception
-
sendLocation
public static Var sendLocation(Var botToken, Var chatId, Var latitude, Var longitude) throws Exception
- Throws:
Exception
-
sendMediaGroup
public static Var sendMediaGroup(Var botToken, Var chatId, Var medias) throws Exception
- Throws:
Exception
-
sendPhoto
public static Var sendPhoto(Var botToken, Var chatId, Var photo) throws Exception
- Throws:
Exception
-
sendSticker
public static Var sendSticker(Var botToken, Var chatId, Var sticker) throws Exception
- Throws:
Exception
-
sendVenue
public static Var sendVenue(Var botToken, Var chatId, Var latitude, Var longitude, Var title, Var address) throws Exception
- Throws:
Exception
-
sendVideo
public static Var sendVideo(Var botToken, Var chatId, Var video) throws Exception
- Throws:
Exception
-
sendVideoNote
public static Var sendVideoNote(Var botToken, Var chatId, Var videoNote) throws Exception
- Throws:
Exception
-
-