termux-api-start not _

This commit is contained in:
Your Name 2025-01-04 03:39:11 +03:00
parent eaa5579b90
commit 7de5582022

2
s.py
View file

@ -40,7 +40,7 @@ if is_termux:
default_directory = '/sdcard/ub4tg' default_directory = '/sdcard/ub4tg'
os.system(f'mkdir -p {default_directory}') os.system(f'mkdir -p {default_directory}')
default_config_file_path = f'{default_directory}/config.json' default_config_file_path = f'{default_directory}/config.json'
termux_api = os.system('termux_api_start') == 0 termux_api = os.system('termux-api-start') == 0
if termux_api: if termux_api:
logger.success('termux API works') logger.success('termux API works')
else: else: