Package com.jtelegram.api
Class TelegramBot
- java.lang.Object
-
- com.jtelegram.api.TelegramBot
-
public class TelegramBot extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TelegramBot(TelegramBotRegistry registry, java.lang.String apiKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
java.io.InputStream
downloadFile(TelegramFile file)
java.io.InputStream
downloadFile(java.lang.String filePath)
boolean
equals(java.lang.Object o)
java.lang.String
getApiKey()
User
getBotInfo()
CommandRegistry
getCommandRegistry()
EventRegistry
getEventRegistry()
TelegramBotRegistry
getRegistry()
BotRequestQueue
getRequestQueue()
int
hashCode()
void
perform(TelegramRequest request)
void
setBotInfo(User botInfo)
-
-
-
Constructor Detail
-
TelegramBot
protected TelegramBot(TelegramBotRegistry registry, java.lang.String apiKey)
-
-
Method Detail
-
perform
public void perform(TelegramRequest request)
-
downloadFile
public java.io.InputStream downloadFile(TelegramFile file) throws java.io.IOException
- Throws:
java.io.IOException
-
downloadFile
public java.io.InputStream downloadFile(java.lang.String filePath) throws java.io.IOException
- Throws:
java.io.IOException
-
getRequestQueue
public BotRequestQueue getRequestQueue()
-
getEventRegistry
public EventRegistry getEventRegistry()
-
getCommandRegistry
public CommandRegistry getCommandRegistry()
-
getRegistry
public TelegramBotRegistry getRegistry()
-
getApiKey
public java.lang.String getApiKey()
-
getBotInfo
public User getBotInfo()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
setBotInfo
public void setBotInfo(User botInfo)
-
-