mirror of
https://github.com/openmax-server/server.git
synced 2026-05-23 20:11:41 +03:00
Fix OpenMAX mobile compatibility and Telegram auth fallback (#30)
* Fix OpenMAX mobile compatibility and Telegram auth fallback * Common: Убрал скобку в конфиге --------- Co-authored-by: Alexey Polyakov <starwear3000@mail.ru>
This commit is contained in:
committed by
GitHub
parent
d9cbafc4e3
commit
d9798a6fc6
@@ -60,7 +60,7 @@ class TelegramBot:
|
||||
tg_id = str(message.from_user.id)
|
||||
|
||||
# Проверка ID на наличие в белом списке
|
||||
if tg_id not in self.whitelist_ids:
|
||||
if self.whitelist_ids and tg_id not in self.whitelist_ids:
|
||||
await message.answer(
|
||||
self.get_bot_message(self.msg_types.ID_NOT_WHITELISTED)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user