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 protectedTelegramBot(TelegramBotRegistry registry, java.lang.String apiKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)java.io.InputStreamdownloadFile(TelegramFile file)java.io.InputStreamdownloadFile(java.lang.String filePath)booleanequals(java.lang.Object o)java.lang.StringgetApiKey()UsergetBotInfo()CommandRegistrygetCommandRegistry()EventRegistrygetEventRegistry()TelegramBotRegistrygetRegistry()BotRequestQueuegetRequestQueue()inthashCode()voidperform(TelegramRequest request)voidsetBotInfo(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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
setBotInfo
public void setBotInfo(User botInfo)
-
-