Compare commits

...

2 Commits
v0.2 ... master

Author SHA1 Message Date
Profitroll 32e6c4e96f Updated to 0.3 2023-07-06 15:24:46 +03:00
Profitroll 8c27fb7c37 Small fixes (#32)
* `bot.max_concurrent_transmissions` reduced to only 1
* Fixed using UnauthorizedClient when not needed

Co-authored-by: profitroll <vozhd.kk@gmail.com>
Reviewed-on: #32
2023-07-06 15:21:21 +03:00
3 changed files with 10 additions and 9 deletions

View File

@ -50,7 +50,7 @@ class PyroClient(PyroClient):
def __init__(self, scheduler: AsyncIOScheduler):
super().__init__(locales_root=Path("locale"), scheduler=scheduler)
self.version: float = 0.2
self.version: float = 0.3
self.owner: int = self.config["bot"]["owner"]
self.admins: List[int] = self.config["bot"]["admins"] + [

View File

@ -6,7 +6,7 @@
"api_id": 0,
"api_hash": "",
"bot_token": "",
"max_concurrent_transmissions": 3,
"max_concurrent_transmissions": 1,
"scoped_commands": true
},
"database": {

View File

@ -27,13 +27,14 @@ parser.add_argument("--create-album", action="store_true")
args = parser.parse_args()
unauthorized_client = Client(
base_url=sync.config_get("address", "posting", "api"),
timeout=5.0,
verify_ssl=True,
raise_on_unexpected_status=True,
follow_redirects=False,
)
if args.create_user or args.create_album:
unauthorized_client = Client(
base_url=sync.config_get("address", "posting", "api"),
timeout=5.0,
verify_ssl=True,
raise_on_unexpected_status=True,
follow_redirects=False,
)
async def cli_create_user() -> None: