#-*-coding utf-8-*- # Общественное достояние, 2023, Алексей Безбородов (Alexei Bezborodov) from abc import ABC, abstractmethod from enum import Enum from enum import auto # Способ форматирования class ParseMode(Enum): HTML = "HTML" Markdown ='Markdown' class IBot(ABC): @abstractmethod def GetRootIDs(self): pass @abstractmethod def GetLog(self): pass @abstractmethod def SQLRequest(self, a_Request : str, commit = False, return_error = False, param = None): pass @abstractmethod async def SendMessage(self, a_UserID, a_Message, a_PhotoIDs, a_KeyboardButtons, a_InlineKeyboardButtons, parse_mode=None): pass @abstractmethod async def SendDocument(self, a_UserID, a_Document, a_Caption, a_KeyboardButtons, a_InlineKeyboardButtons): pass @abstractmethod def RegisterMessageHandler(self, a_MessageHandler, a_CheckFunc=None, commands=None, regexp=None, content_types=None, state=None): pass @abstractmethod def RegisterCallbackHandler(self, a_CallbackHandler, a_CheckFunc=None, commands=None, regexp=None, content_types=None, state=None): pass @abstractmethod def StartPolling(self): pass