From 59bfc4c1cafcd36368979ff5aa994ba3bb8380ef Mon Sep 17 00:00:00 2001 From: profitroll Date: Wed, 23 Aug 2023 00:19:27 +0200 Subject: [PATCH] Fixed a few nasty issues --- commands.json | 4 ++++ locale/en.json | 2 +- locale/uk.json | 2 +- main.py | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/commands.json b/commands.json index 6799c00..7a79e6a 100644 --- a/commands.json +++ b/commands.json @@ -3,6 +3,10 @@ "scopes": [ { "name": "BotCommandScopeDefault" + }, + { + "name": "BotCommandScopeChat", + "chat_id": "owner" } ] }, diff --git a/locale/en.json b/locale/en.json index e410b34..35fb7d8 100644 --- a/locale/en.json +++ b/locale/en.json @@ -17,7 +17,7 @@ "start": "Welcome! I'm your bot!", "locale_choice": "Alright. Please choose the language using keyboard below." }, - "callback": { + "callbacks": { "locale_set": "Your language now is: {locale}" } } \ No newline at end of file diff --git a/locale/uk.json b/locale/uk.json index 462e807..7304e8a 100644 --- a/locale/uk.json +++ b/locale/uk.json @@ -16,7 +16,7 @@ "start": "Привіт! Я твій бот!", "locale_choice": "Гаразд. Будь ласка, оберіть мову за допомогою клавіатури нижче." }, - "callback": { + "callbacks": { "locale_set": "Встановлено мову: {locale}" } } \ No newline at end of file diff --git a/main.py b/main.py index efb838e..0f502b5 100644 --- a/main.py +++ b/main.py @@ -5,8 +5,8 @@ from os import getpid from pathlib import Path from libbot import sync -from libbot.pyrogram.classes import PyroClient +from classes.pyroclient import PyroClient from modules.migrator import migrate_database from modules.scheduler import scheduler