mirror of
https://github.com/civsocit/olgram.git
synced 2025-12-15 08:16:17 +00:00
flake8
This commit is contained in:
@@ -27,7 +27,7 @@ class BotInstance(ABC):
|
||||
|
||||
@abstractmethod
|
||||
async def _properties(self) -> BotProperties:
|
||||
raise NotImplemented()
|
||||
raise NotImplementedError()
|
||||
|
||||
def stop_polling(self):
|
||||
print("stop polling")
|
||||
@@ -112,8 +112,8 @@ class FreezeBotInstance(BotInstance):
|
||||
if __name__ == '__main__':
|
||||
"""
|
||||
Режим single-instance. В этом режиме не работает olgram. На сервере запускается только один feedback (instance)
|
||||
бот для пересылки сообщений. Все настройки этого бота задаются в переменных окружения на сервере. Бот работает
|
||||
в режиме polling
|
||||
бот для пересылки сообщений. Все настройки этого бота задаются в переменных окружения на сервере. Бот работает
|
||||
в режиме polling
|
||||
"""
|
||||
bot = FreezeBotInstance(
|
||||
InstanceSettings.token(),
|
||||
|
||||
Reference in New Issue
Block a user