MCPcopy Create free account

hub / github.com/Mak5er/Downloader-Bot / functions

Functions1,349 in github.com/Mak5er/Downloader-Bot

↓ 398 callersMethodget
(self, *args, **kwargs)
tests/test_twitter_handler.py:43
↓ 96 callersFunction_edit_inline_status
( text: str, *, with_retry_button: bool = False )
handlers/soundcloud.py:343
↓ 51 callersFunctionreset_inline_video_request
(token: str)
services/inline/video_requests.py:177
↓ 45 callersFunctionhandle_download_error
Notify user about a failed download with a consistent reaction and message.
handlers/telegram_ui_utils.py:187
↓ 41 callersMethodexecute
(self, stmt, rows)
tests/test_send_analytics.py:22
↓ 38 callersFunctionsummarize_url_for_log
(url: Any)
services/logger.py:129
↓ 36 callersMethodbind
(self, **extra: Any)
services/logger.py:313
↓ 33 callersFunctionsafe_edit_text
Best-effort edit of a bot message (status/progress).
handlers/telegram_ui_utils.py:358
↓ 31 callersMethodget_file_id
(self, url: str)
tests/test_media_orchestration.py:14
↓ 29 callersMethodevent
(self, event_name: str, message: str | None = None, *, level: int = logging.INFO, **fields: Any)
services/logger.py:323
↓ 28 callersMethodSessionLocal
(self)
tests/test_send_analytics.py:33
↓ 26 callersFunctioncomplete_inline_video_request
(token: str)
services/inline/video_requests.py:187
↓ 26 callersMethodsubmit
( self, runner: Callable[[], Awaitable[T]], *, priority: int, source:
services/download/queue.py:158
↓ 24 callersMethodadd_file
(self, url: str, file_id: str, _file_type: str)
tests/test_media_orchestration.py:17
↓ 23 callersFunction_read_int_env
(name: str, *, required: bool = False, aliases: tuple[str, ...] = ())
config.py:85
↓ 23 callersMethodnow
(cls, tz=None)
tests/test_user_helpers.py:13
↓ 21 callersFunctionsafe_delete_message
Best-effort delete of a bot message (status/progress).
handlers/telegram_ui_utils.py:424
↓ 19 callersFunctionsend_chat_action_if_needed
( bot: Bot, chat_id: int, action: str, business_id: Optional[int], )
handlers/telegram_ui_utils.py:292
↓ 18 callersFunctionremove_file
(path: Optional[str])
handlers/telegram_ui_utils.py:279
↓ 17 callersFunctionbuild_media_cache_key
( base_key: str, *, variant: str | None = None, item_index: int | None = None, item_kind:
utils/media_cache.py:4
↓ 17 callersMethoddownload_media
(self, url: str, filename: str, format_candidates: list[str])
services/platforms/youtube_media.py:384
↓ 17 callersFunctionsend_audio_with_thumbnail
( send_audio, *, audio_path: str | None = None, bot_avatar: Any = None, bot_url: str | Non
services/media/delivery.py:195
↓ 17 callersFunctionsummarize_text_for_log
(text: Any)
services/logger.py:147
↓ 16 callersFunction_ensure_admin_callback
(call: types.CallbackQuery)
handlers/admin.py:59
↓ 16 callersFunction_safe_int
(value: Any, default: int = 0)
services/platforms/tiktok_common.py:18
↓ 15 callersFunctioncreate_inline_video_request
( service: str, source_url: str, owner_user_id: int, user_settings: dict[str, str], )
services/inline/video_requests.py:117
↓ 15 callersFunctionget_message_text
Return the message text or caption, falling back to empty string.
handlers/telegram_ui_utils.py:37
↓ 14 callersFunction_make_service
(tmp_path: Path, *, youtube_dl_factory=None)
tests/test_tiktok_media_service.py:39
↓ 14 callersMethodbegin
(self)
tests/test_db.py:286
↓ 14 callersFunctionlog_download_metrics
Log unified download stats for handlers.
utils/download_manager.py:925
↓ 14 callersMethodtext
(self)
tests/test_cobalt_client.py:15
↓ 14 callersMethoduser_settings
(self, user_id: int)
services/storage/user_repository.py:153
↓ 13 callersFunction_read_float_env
(name: str, *, required: bool = False, aliases: tuple[str, ...] = ())
config.py:95
↓ 13 callersFunctionmake_status_text_progress_updater
( label: str, update_text: Callable[[str], Awaitable[None]], *, min_interval_seconds: float =
handlers/telegram_ui_utils.py:326
↓ 13 callersMethodmark_success
(self)
handlers/request_dedupe.py:22
↓ 13 callersFunctionmaybe_delete_user_message
(message: types.Message, delete_flag: Any)
handlers/telegram_ui_utils.py:267
↓ 13 callersMethodperf
( self, event_name: str, *, duration_ms: float, message: str | None =
services/logger.py:334
↓ 13 callersFunctionsend_analytics
(user_id, chat_type, action_name)
main.py:275
↓ 12 callersFunctionbuild_handler_dependencies
(*, bot: Bot, db: DataBase, send_analytics: AnalyticsSender)
handlers/deps.py:21
↓ 12 callersMethodformat
(self, record: logging.LogRecord)
services/logger.py:209
↓ 12 callersMethodshutdown
(self)
services/download/queue.py:284
↓ 11 callersFunctionbuild_video_send_kwargs
(path: Optional[str] = None)
services/media/video_metadata.py:157
↓ 11 callersMethoddownload
(self, urls)
tests/conftest.py:43
↓ 11 callersFunctionget_bot_url
(bot: Bot)
handlers/bot_profile_cache.py:21
↓ 11 callersFunctionget_download_queue
()
services/download/queue.py:555
↓ 11 callersFunctionget_inline_service_icon
(service: str)
services/inline/service_icons.py:15
↓ 11 callersFunctionreact_to_message
Send a reaction to a message, optionally skipping business chats.
handlers/telegram_ui_utils.py:133
↓ 11 callersFunctionstrip_tiktok_tracking
(url: str)
services/platforms/tiktok_common.py:32
↓ 10 callersFunction_read_env
(name: str, *, required: bool = False, aliases: tuple[str, ...] = ())
config.py:69
↓ 10 callersFunctionformat_number
(value: int)
keyboards/inline_keyboards.py:32
↓ 10 callersFunctionretry_async_operation
Retry an async operation with exponential backoff and jitter.
handlers/telegram_ui_utils.py:530
↓ 10 callersFunctionupdate_info
(message: types.Message)
handlers/user.py:109
↓ 9 callersMethodcontext
(self, **extra: Any)
services/logger.py:319
↓ 9 callersMethodfetch_data
Fetch metadata / media info for the given URL.
services/platforms/__init__.py:11
↓ 9 callersMethodload_snapshot
(self)
services/download/queue.py:151
↓ 9 callersMethodupsert_chat
(self, user_id: int, user_name: str | None, user_username: str | None, chat_type: str | None, language: str |
services/storage/user_repository.py:30
↓ 8 callersMethod_percentile
(values: list[float], q: float)
services/download/queue.py:541
↓ 8 callersFunctionload_user_settings
(db_service: Any, message: types.Message)
handlers/telegram_ui_utils.py:322
↓ 8 callersFunctionmake_retry_status_notifier
( update_text: Callable[[str], Awaitable[None]], *, enabled: bool = True, min_failed_attempt:
handlers/telegram_ui_utils.py:344
↓ 7 callersFunction_first_non_empty_str
(*values: Any)
services/platforms/tiktok_common.py:25
↓ 7 callersFunction_normalize_generic_url
(url: str)
services/runtime/request_dedupe.py:137
↓ 7 callersFunctionbuild_queue_busy_text
(position: int)
handlers/telegram_ui_utils.py:523
↓ 7 callersFunctionbuild_rate_limit_text
(retry_after: float)
handlers/telegram_ui_utils.py:515
↓ 7 callersFunctionbuild_ytdlp_youtube_options
(**overrides: Any)
services/platforms/youtube_media.py:75
↓ 7 callersFunctionclaim_inline_video_request_for_send
( token: str, *, duplicate_handler: str, actor_user_id: Optional[int] = None, )
services/inline/video_requests.py:150
↓ 7 callersFunctionclaim_message_request
( message: types.Message, *, service: str, url: str, )
handlers/request_dedupe.py:39
↓ 7 callersFunctiondetect_supported_service
(text: str | None)
services/links/detection.py:73
↓ 7 callersMethodfinish
(self)
handlers/request_dedupe.py:25
↓ 7 callersFunctionget_inline_video_request
(token: str)
services/inline/video_requests.py:135
↓ 7 callersFunctionhandle_download_backpressure_error
Handle download queue/rate-limit errors with consistent UX.
handlers/telegram_ui_utils.py:229
↓ 7 callersMethodraise_for_status
(self)
tests/test_twitter_handler.py:19
↓ 7 callersFunctionsend_cached_media_entries
( message: types.Message, entries: list[dict[str, Any]], *, db_service: Any, caption: str
services/media/delivery.py:286
↓ 7 callersFunctionshould_skip_duplicate_business_message
( message: types.Message, bot: Bot, *, service_name: str, logger: Any, )
handlers/telegram_ui_utils.py:67
↓ 6 callersFunction_chown_path
(path: Path, *, uid: int, gid: int)
container_entrypoint.py:18
↓ 6 callersMethod_emit_progress
( self, state: _ProgressState, *, force: bool, done: bool = False )
utils/download_manager.py:857
↓ 6 callersFunction_ensure_runtime_access
(path: Path, *, owner_only: bool)
container_entrypoint.py:29
↓ 6 callersFunction_favicon_url
(domain: str)
services/inline/service_icons.py:1
↓ 6 callersMethod_get_status
(self, user_id: int)
middlewares/ban_middleware.py:17
↓ 6 callersMethod_get_user_agent
(self)
services/platforms/tiktok_media.py:86
↓ 6 callersFunction_load_migration_module
(filename="20260408_000003_analytics_event_indexes.py")
tests/test_migrations.py:7
↓ 6 callersMethod_monotonic
()
services/platforms/tiktok_media.py:83
↓ 6 callersFunction_monotonic_sequence
(*values: float)
tests/test_guard_middlewares.py:15
↓ 6 callersFunction_persist_requests
()
services/inline/video_requests.py:71
↓ 6 callersFunction_prune_requests
(now: Optional[float] = None)
services/inline/video_requests.py:90
↓ 6 callersFunction_sanitize_mapping
(values: dict[str, Any])
services/logger.py:100
↓ 6 callersFunctionbuild_bot_audio_performer
(bot_url: str | None)
services/media/delivery.py:178
↓ 6 callersFunctionbuild_inline_status_editor
( *, bot: Any, inline_message_id: str, callback_data_factory: Callable[[str], str], safe_e
handlers/inline_utils.py:38
↓ 6 callersFunctionclassify_cobalt_media_type
( media_url: str, *, audio_only: bool = False, declared_type: Optional[str] = None, filena
utils/cobalt_media.py:4
↓ 6 callersMethoddownload
Public async entrypoint that streams the remote file to OUTPUT_DIR/filename. Returns metrics describing the completed download.
utils/download_manager.py:186
↓ 6 callersMethodfetch_tiktok_data
(self, video_url: str)
services/platforms/tiktok_metadata_mixin.py:307
↓ 6 callersFunctionget_bot_avatar_thumbnail
(bot: Bot)
handlers/bot_profile_cache.py:65
↓ 6 callersFunctionnormalize_twitter_media_kind
(media_type: str | None)
services/platforms/twitter_media.py:19
↓ 6 callersFunctionsafe_answer_inline_query
( query: types.InlineQuery, results: list[Any], **answer_kwargs: Any, )
handlers/inline_utils.py:231
↓ 5 callersFunction_format_age
(seconds: float | None)
handlers/admin.py:83
↓ 5 callersFunction_format_bytes
(num_bytes: int)
handlers/admin.py:298
↓ 5 callersMethod_get_session
Return a thread-local httpx client with sane defaults.
utils/download_manager.py:904
↓ 5 callersFunction_is_usable_thumbnail_file
(path: Path)
handlers/bot_profile_cache.py:141
↓ 5 callersMethod_process_message
(self, message: Message)
middlewares/chat_tracker.py:36
↓ 5 callersFunctionbuild_audio_cache_key
(source_url: str)
services/media/delivery.py:19
↓ 5 callersFunctionbuild_chat
(chat_id, chat_type, **extra)
tests/test_chat_tracker.py:25
next →1–100 of 1,349, ranked by callers