add more pyrogram settings
This commit is contained in:
@@ -20,7 +20,8 @@ def get_client(takeout=False):
|
||||
|
||||
session_path = os.path.relpath(default_storage.path(config.pyrogram_session.replace('.session', '')))
|
||||
|
||||
return Client(session_path, config.pyrogram_app_id, config.pyrogram_app_hash, takeout=takeout)
|
||||
return Client(session_path, config.pyrogram_app_id, config.pyrogram_app_hash, config.pyrogram_app_version or None,
|
||||
config.pyrogram_device_model or None, config.pyrogram_system_version or None, takeout=takeout)
|
||||
|
||||
|
||||
def save_message(client, message: PyrogramMessage):
|
||||
|
Reference in New Issue
Block a user