Package host.anzo.core.service
Class TelegramService
java.lang.Object
host.anzo.core.service.TelegramService
- All Implemented Interfaces:
host.anzo.commons.interfaces.startup.IShutdownable
public class TelegramService
extends Object
implements host.anzo.commons.interfaces.startup.IShutdownable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbanChatId(long chatId) <T extends ATelegramBot>
TbooleanisChatBanned(long chatId) voidvoidtickTask()
-
Constructor Details
-
TelegramService
public TelegramService()
-
-
Method Details
-
banChatId
public void banChatId(long chatId) -
isChatBanned
public boolean isChatBanned(long chatId) -
tickTask
public void tickTask() -
getBot
-
onShutdown
public void onShutdown()- Specified by:
onShutdownin interfacehost.anzo.commons.interfaces.startup.IShutdownable
-