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-26 20:36:05 +03:00
parent 188b58d8e2
commit 2e61640f5a
15 changed files with 122 additions and 12 deletions

View File

@@ -26,9 +26,9 @@ async def register_token(bot: Bot) -> bool:
:param bot: Бот
:return: получилось ли
"""
await unregister_token(bot.token)
await unregister_token(bot.decrypted_token())
a_bot = AioBot(bot.token)
a_bot = AioBot(bot.decrypted_token())
certificate = None
if ServerSettings.use_custom_cert():
certificate = open(ServerSettings.public_path(), 'rb')