Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Desiders/ytdl_tg_bot
/ functions
Functions
727 in github.com/Desiders/ytdl_tg_bot
⨍
Functions
727
◇
Types & classes
375
↓ 282 callers
Function
new
( messenger: &(impl MessengerPort + ?Sized), text: &str, chat_id: i64, reply_to_message_id: Op
bot/src/handlers_utils/progress.rs:14
↓ 220 callers
Method
as_ref
(&self)
bot/src/entities/domains.rs:9
↓ 70 callers
Method
as_str
(self)
bot/src/locale.rs:9
↓ 67 callers
Method
get
(&self, tg_id: i64)
bot/src/database/readers/chat_config.rs:26
↓ 26 callers
Method
execute
(self, SaveChatInput { chat, chat_config }: SaveChatInput)
bot/src/services/chat.rs:32
↓ 26 callers
Method
parse
(raw: &str)
bot/src/locale.rs:16
↓ 26 callers
Method
parse
(text: &str)
bot/src/entities/params.rs:9
↓ 24 callers
Method
format
(&self, err: &(impl FormatErrorToMessage + ?Sized))
bot/src/utils/error.rs:67
↓ 24 callers
Function
is_error_in_chosen_inline
( messenger: &(impl MessengerPort + ?Sized), inline_message_id: &str, text: &str, format: Opti
bot/src/handlers_utils/progress.rs:219
↓ 24 callers
Method
register
(&mut self, worker_id: &str, domain: &'a str)
cookie_assignment/src/service.rs:343
↓ 19 callers
Method
into_inner
(self)
bot/src/entities/media.rs:293
↓ 18 callers
Method
execute
(self, input: DownloadInput<'_>)
bot/src/interactors/chosen_inline.rs:155
↓ 17 callers
Function
is_error_in_progress
( messenger: &(impl MessengerPort + ?Sized), chat_id: i64, message_id: i64, text: &str, fo
bot/src/handlers_utils/progress.rs:201
↓ 16 callers
Method
locale
(&self)
bot/src/entities/chat_config.rs:32
↓ 15 callers
Method
default
()
bot/src/config.rs:35
↓ 12 callers
Function
media_link
(webpage_url: Option<&Url>)
bot/src/utils/text.rs:15
↓ 11 callers
Function
authenticated_request
Builds a tonic request with the downloader bearer token in metadata. # Errors Returns [`InvalidMetadataValue`] if the token cannot be encoded as an
downloader_client/src/auth.rs:12
↓ 10 callers
Method
edit_text
(&self, request: EditTextRequest<'_>)
bot/src/services/messenger/telegram.rs:82
↓ 10 callers
Method
eq
(&self, other: &Self)
bot/src/entities/media.rs:44
↓ 10 callers
Method
get_bool
(&self, key: &str)
bot/src/entities/params.rs:53
↓ 10 callers
Function
parse_gallery_dl_json
Parses gallery-dl's `--dump-json` / `--resolve-json` output: a `DataJob` array of message tuples whose first element is the identifier. In gallery-dl
downloader/src/services/gallery_dl.rs:58
↓ 9 callers
Method
execute
(self, input: AutoQuietInput<'_>)
bot/src/interactors/auto.rs:349
↓ 8 callers
Method
all
()
bot/src/entities/range.rs:52
↓ 8 callers
Function
build_formats_string
(strategy: &FormatStrategy, heights: &[u32], audio_language: &Language)
downloader/src/services/ytdl.rs:150
↓ 8 callers
Method
command_parts
(&self)
downloader/src/config.rs:45
↓ 8 callers
Method
max_file_size
(&self)
downloader_client/src/router.rs:47
↓ 7 callers
Method
load
(cfg: &DownloaderTlsConfig, server_name: &str)
downloader_client/src/client.rs:64
↓ 7 callers
Function
prefixed
(base: Option<&str>, body: &str)
bot/src/utils/text.rs:8
↓ 7 callers
Function
with_retries
(bot: &Bot, method: T, max_retries: u8, request_timeout: Option<f32>)
bot/src/services/messenger/telegram.rs:584
↓ 6 callers
Method
create
(&self, conn: &'a DatabaseConnection)
bot/src/database/factories.rs:79
↓ 6 callers
Function
delete
(messenger: &(impl MessengerPort + ?Sized), chat_id: i64, message_id: i64)
bot/src/handlers_utils/progress.rs:265
↓ 6 callers
Function
prepare_download
( node_router: &NodeRouter, domain: Option<&str>, request: DownloadRequest, output_dir: &Path,
bot/src/services/download/media.rs:660
↓ 6 callers
Function
process_exit_error
Build an `io::Error` describing a subprocess that exited unsuccessfully. Shared by the yt-dlp and gallery-dl wrappers to keep the messages consistent.
downloader/src/utils/process.rs:5
↓ 6 callers
Method
rollback
(self: Box<Self>)
bot/src/database/tx_manager.rs:68
↓ 6 callers
Function
send_chunk
(tx: &UnboundedSender<Result<DownloadChunk, Status>>, chunk: DownloadChunk)
downloader/src/grpc/downloader.rs:1283
↓ 5 callers
Method
ack
Acknowledges and removes a processed entry from the stream.
bot/src/services/queue.rs:143
↓ 5 callers
Method
begin
(&self)
bot/src/database/tx_manager.rs:40
↓ 5 callers
Method
commit
(self: Box<Self>)
bot/src/database/tx_manager.rs:63
↓ 5 callers
Method
extract_string
(&self, keys: &[&str])
downloader/src/entities/gallery_dl.rs:133
↓ 5 callers
Function
get_url_from_text
(text: &str)
bot/src/filters/text_url.rs:10
↓ 5 callers
Method
into_raw_photo_info
(self, request_url: &Url)
downloader/src/entities/gallery_dl.rs:93
↓ 5 callers
Method
nodes
(&self)
downloader_client/src/router.rs:52
↓ 5 callers
Function
once
(bot: &Bot, method: T, request_timeout: Option<f32>)
bot/src/services/messenger/telegram.rs:571
↓ 5 callers
Function
parse_range
(range: Option<proto::downloader::Range>)
downloader/src/grpc/downloader.rs:1072
↓ 5 callers
Function
parse_section
(section: Option<Section>)
downloader/src/grpc/downloader.rs:1097
↓ 5 callers
Function
redact_token
(message: impl Into<String>, token: &str)
bot/src/utils/error.rs:28
↓ 5 callers
Function
select_best_index
(candidates: Vec<NodeSnapshot<'_>>)
downloader_client/src/selection.rs:11
↓ 4 callers
Method
chat_config_repo
(&self)
bot/src/database/tx_manager.rs:77
↓ 4 callers
Function
download_thumbnail
(thumb_urls: &[Url], thumb_file_path: &std::path::Path)
downloader/src/grpc/downloader.rs:1144
↓ 4 callers
Method
downloaded_media_reader
(&self)
bot/src/database/tx_manager.rs:56
↓ 4 callers
Method
extract_u64
(&self, keys: &[&str])
downloader/src/entities/gallery_dl.rs:140
↓ 4 callers
Function
get_media_info
( search: &str, strategy: &FormatStrategy, audio_language: &Language, yt_dlp_cfg: &YtDlpConfig
downloader/src/services/ytdl.rs:222
↓ 4 callers
Method
get_thumb_urls
(&self, aspect_kind: Option<AspectKind>)
downloader/src/entities/media.rs:101
↓ 4 callers
Function
push_if_some
(vec: &mut Vec<T>, value: Option<T>)
downloader/src/services/ytdl.rs:151
↓ 4 callers
Function
render_args
(args: &[String])
downloader/src/services/ytdl.rs:157
↓ 4 callers
Method
replace_url
(&self, url: &Url, kind: MediaKind)
downloader/src/services/domain_replacer.rs:48
↓ 4 callers
Function
resolve_download_duration
(media_duration: Option<f32>, section: Option<&Sections>)
downloader/src/grpc/downloader.rs:1293
↓ 4 callers
Function
resolve_media_file_path
( output_dir_path: &std::path::Path, expected_media_file_path: &std::path::Path, )
downloader/src/grpc/downloader.rs:1223
↓ 4 callers
Function
resolve_url
(url: Option<&Url>, result_id: &str)
bot/src/interactors/chosen_inline.rs:958
↓ 4 callers
Function
run_ffmpeg
(args: &[&str], executable_path: &str, timeout: u64)
downloader/src/services/ffmpeg.rs:148
↓ 4 callers
Method
send_text
(&self, request: SendTextRequest<'_>)
bot/src/services/messenger/telegram.rs:63
↓ 4 callers
Method
spawn_delete_message
Best-effort fire-and-forget delete that logs failures via `error_formatter`. Used after every "send + auto-delete" upload (the receiver chat is just a
bot/src/services/messenger/telegram.rs:515
↓ 4 callers
Function
stream_media_to_client
Stream a validated media file to the gRPC client as `Data` chunks.
downloader/src/grpc/downloader.rs:891
↓ 4 callers
Function
validate_download_file
Validate the downloaded file before its `Meta` is sent: it must be non-empty (yt-dlp/gallery-dl can exit 0 yet leave an empty file) and fit the size b
downloader/src/grpc/downloader.rs:869
↓ 4 callers
Function
with_node_failover
Executes an operation against downloader nodes with router-based failover. # Errors Returns [`NodeFailoverError`] if no suitable node is available,
downloader_client/src/retry.rs:28
↓ 3 callers
Function
add_media
(tx_manager: &dyn TxManager, media: DownloadedMedia, overwrite_cache: bool)
bot/src/services/downloaded_media.rs:156
↓ 3 callers
Function
aspect_is_equal
(left: f32, right: f32)
downloader/src/utils/aspect.rs:28
↓ 3 callers
Function
aspect_is_equal
(a: f32, b: f32)
bot/src/utils/media.rs:30
↓ 3 callers
Method
aspect_ratio_kind
(&self)
downloader/src/entities/media.rs:24
↓ 3 callers
Function
classify
( get_video: &get_media::GetVideoByURL, get_audio: &get_media::GetAudioByURL, get_photo: &get_medi
bot/src/interactors/auto.rs:416
↓ 3 callers
Function
compile_rules
(rules: &[ReplaceRule])
downloader/src/services/domain_replacer.rs:69
↓ 3 callers
Function
create_ytdlp_command
(yt_dlp_cfg: &YtDlpConfig)
downloader/src/services/ytdl.rs:607
↓ 3 callers
Function
download_media
( strategy: FormatStrategy, format_id: &str, sections: Option<&Sections>, max_filesize: u64,
downloader/src/services/ytdl.rs:322
↓ 3 callers
Method
enqueue
(&self, job: &DownloadJob)
bot/src/services/queue.rs:74
↓ 3 callers
Method
estimated_active_downloads
(&self)
downloader_client/src/handle.rs:47
↓ 3 callers
Function
file_size
(path: &std::path::Path)
downloader/src/grpc/downloader.rs:1219
↓ 3 callers
Function
format_error_report
(err: &(impl std::error::Error + ?Sized))
bot/src/utils/error.rs:10
↓ 3 callers
Method
from
( Model { tg_id, username, chat_type, created_at,
bot/src/entities/chat.rs:39
↓ 3 callers
Method
fulfill
(&self, result: GetMediaByURLKind, ctx: &FulfillCtx<'_>)
bot/src/interactors/auto.rs:74
↓ 3 callers
Function
get_media_by_url
( router: &NodeRouter, tracking_params_cfg: &TrackingParamsConfig, url: &Url, playlist_range:
bot/src/services/get_media.rs:283
↓ 3 callers
Method
get_status
(&self, _request: Request<Empty>)
downloader/src/grpc/capabilities.rs:19
↓ 3 callers
Function
is_audio_first
Video when any uncached format has dimensions or a video container ext (generic/snapsave often omits width), or when every entry was already cached as
bot/src/interactors/auto.rs:521
↓ 3 callers
Function
is_error_in_inline_query
(messenger: &(impl MessengerPort + ?Sized), query_id: &str, text: &str)
bot/src/handlers_utils/progress.rs:261
↓ 3 callers
Function
is_errors_if_exist
( messenger: &(impl MessengerPort + ?Sized), chat_id: i64, message_id: i64, media_errs: &[Vec<
bot/src/handlers_utils/progress.rs:70
↓ 3 callers
Method
max_concurrent
(&self)
downloader_client/src/handle.rs:42
↓ 3 callers
Function
media_groups
Telegram media groups are limited to 10 items; this splits a longer list into 10-sized batches and tolerates per-batch failures.
bot/src/services/messenger/telegram.rs:616
↓ 3 callers
Function
parse_host
(raw: &str)
downloader_client/src/client.rs:95
↓ 3 callers
Function
parse_optional_positive
(part: &str, is_step: bool)
downloader/src/entities/range.rs:58
↓ 3 callers
Function
parse_optional_positive
(part: &str, is_step: bool)
bot/src/entities/range.rs:81
↓ 3 callers
Function
parse_recognized
`songrec audio-file-to-recognized-song` prints the raw Shazam response. A successful match has a `track` object; a no-match response omits it (only `m
downloader/src/services/songrec.rs:144
↓ 3 callers
Function
positive_i16
(value: i32, field: &str)
downloader/src/grpc/downloader.rs:1089
↓ 3 callers
Function
sanitize_send_filename
(path: &Path, name: &str)
bot/src/utils/fs.rs:3
↓ 3 callers
Function
snapsave_name
A media name from a post URL: its last non-empty path segment (the reel/post shortcode).
downloader/src/grpc/downloader.rs:1034
↓ 3 callers
Function
stream_thumbnail_file
( thumb_file_path: &std::path::Path, tx: &UnboundedSender<Result<DownloadChunk, Status>>, )
downloader/src/grpc/downloader.rs:1159
↓ 3 callers
Function
try_embed_thumbnail
Embed `thumb_file_path` into `media_file_path`. Best-effort — failures are logged but not surfaced to the caller (the media file is still usable).
downloader/src/grpc/downloader.rs:830
↓ 2 callers
Method
answer_inline_query
(&self, request: AnswerInlineQueryRequest<'_>)
bot/src/services/messenger/telegram.rs:119
↓ 2 callers
Method
as_auto
(mut self, quiet: bool)
bot/src/entities/download_job.rs:69
↓ 2 callers
Method
build_channel
(&self, address: &str)
downloader_client/src/client.rs:77
↓ 2 callers
Function
build_commands
(locale: &str)
bot/src/utils/startup.rs:28
↓ 2 callers
Function
caption_with_link
Builds a media caption: an optional custom caption (e.g. recognized-song metadata) followed by the source "Link" when visible. Either part may be abse
bot/src/services/messenger/telegram.rs:561
next →
1–100 of 727, ranked by callers