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
This commit is contained in:
parent
82467518da
commit
8c27fb7c37
@ -6,7 +6,7 @@
|
|||||||
"api_id": 0,
|
"api_id": 0,
|
||||||
"api_hash": "",
|
"api_hash": "",
|
||||||
"bot_token": "",
|
"bot_token": "",
|
||||||
"max_concurrent_transmissions": 3,
|
"max_concurrent_transmissions": 1,
|
||||||
"scoped_commands": true
|
"scoped_commands": true
|
||||||
},
|
},
|
||||||
"database": {
|
"database": {
|
||||||
|
@ -27,6 +27,7 @@ parser.add_argument("--create-album", action="store_true")
|
|||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
if args.create_user or args.create_album:
|
||||||
unauthorized_client = Client(
|
unauthorized_client = Client(
|
||||||
base_url=sync.config_get("address", "posting", "api"),
|
base_url=sync.config_get("address", "posting", "api"),
|
||||||
timeout=5.0,
|
timeout=5.0,
|
||||||
|
Reference in New Issue
Block a user