1
0
mirror of https://github.com/civsocit/olgram.git synced 2025-12-15 08:16:17 +00:00
This commit is contained in:
mihalin
2021-09-09 10:58:33 +03:00
parent 56b9528338
commit 68e60bb0c7
8 changed files with 89 additions and 17 deletions

View File

@@ -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(),