myapp / bot /command /__init__.py
nexus33rd's picture
feat: tambahkan fitur download subtitle via SubSource dan rapikan struktur folder command
e6c58c8
Raw History Blame Contribute Delete
894 Bytes
"""
Bot command package.
Exposes all command handlers and callback routers for Telegram Bot.
"""
from .shell import run_shell
from .subtitle import (
handle_subtitle_callback,
subtitle_command,
)
try:
from .sosmed import (
download_command,
handle_tiktok_download,
handle_twitter_download,
tg_download_cancel_callback,
tiktokdl_command,
twitterdl_command,
)
except ImportError:
download_command = None
handle_tiktok_download = None
handle_twitter_download = None
tg_download_cancel_callback = None
tiktokdl_command = None
twitterdl_command = None
__all__ = [
"run_shell",
"download_command",
"twitterdl_command",
"tiktokdl_command",
"tg_download_cancel_callback",
"handle_twitter_download",
"handle_tiktok_download",
"subtitle_command",
"handle_subtitle_callback",
]