### Example Cookie File Format (yt-dlp) Source: https://github.com/desiders/ytdl_tg_bot/blob/master/cookies/README.md Demonstrates the expected format for cookie files used by yt-dlp. Files should be named after the domain (e.g., youtube.com.txt) and contain Netscape HTTP Cookie File format data, typically generated by yt-dlp. ```text # Netscape HTTP Cookie File # This file is generated by yt-dlp. Do not edit. ... ``` -------------------------------- ### Cookie File Format for Site Authentication Source: https://context7.com/desiders/ytdl_tg_bot/llms.txt Example format for a Netscape HTTP Cookie File used for authentication with websites that require login, such as YouTube for age-restricted content. This file is typically managed by yt-dlp. ```cookies # Create file: cookies/youtube.com.txt # Netscape HTTP Cookie File # This file is generated by yt-dlp. Do not edit. .youtube.com TRUE / TRUE 1735689600 CONSENT YES+ .youtube.com TRUE / TRUE 1735689600 LOGIN_INFO ... .youtube.com TRUE / FALSE 1735689600 SID ... ``` -------------------------------- ### Environment Variables for Docker Deployment Source: https://context7.com/desiders/ytdl_tg_bot/llms.txt Environment variables used for configuring the bot within a Docker environment. This includes essential Telegram API credentials, memory limits, PostgreSQL connection details, and service port configurations. ```bash # Required - Telegram API credentials from https://my.telegram.org/apps TELEGRAM_API_ID=12345678 TELEGRAM_API_HASH=abcdef1234567890abcdef1234567890 # Required - Memory limit for bot container BOT_MEM_LIMIT=2g # Required - PostgreSQL password POSTGRES_PASSWORD=your_secure_password # Optional - PostgreSQL configuration POSTGRES_USER=postgres POSTGRES_DB=api POSTGRES_PORT=5432 # Optional - Service ports YT_TOOLKIT_PORT=8080 YT_POT_PROVIDER_PORT=4416 TELEGRAM_BOT_API_PORT=8081 # Required for migrations DATABASE_URL=postgres://postgres:your_secure_password@ytdl_tg_bot.postgres/api ``` -------------------------------- ### TOML Configuration for ytdl_tg_bot Source: https://context7.com/desiders/ytdl_tg_bot/llms.txt The main configuration file for the bot, written in TOML format. It includes settings for the Telegram bot token, logging, chat IDs, timeouts, blacklisted domains, domain replacements, yt-dlp parameters, database credentials, and API endpoints for various services. ```toml [bot] token = "123456789:ABCdefGHIjklMNOpqrSTUvwxYZ" src_url = "https://github.com/Desiders/ytdl_tg_bot" [logging] dirs = "info,hyper=warn,reqwest=warn,tokio_util::codec=warn" [chat] receiver_chat_id = 123456789 # Chat ID for receiving media files [timeouts] video_download = 420 # Video download timeout in seconds audio_download = 420 # Audio download timeout in seconds send_by_fs = 210 # Timeout for sending files from filesystem send_by_id = 360 # Timeout for sending cached files by ID [blacklisted] domains = ["t.me", "example.com"] # Domains that never trigger downloads [domains_with_reactions] domains = [ "youtube.com", "youtu.be", "tiktok.com", "instagram.com", "vk.com", "rutube.ru", "coub.com" ] [random_cmd] domains = [ "youtube.com", "youtu.be", "tiktok.com", "vk.com" ] # Domain replacement rules (regex patterns) [[replace_domains]] from = '^(?:.*\.)?instagram\.(tv|net|com|org)$|^instagr\.am$' to = "vxinstagram.com" [[replace_domains]] from = '^(?:.*\.)?twitter\.com$' to = "fxtwitter.com" [[replace_domains]] from = '^(?:.*\.)?x\.com$' to = "fixupx.com" [yt_dlp] max_file_size = 5000000000 # Max file size in bytes (5GB) executable_path = "./yt-dlp/executable" cookies_path = "./cookies" [database] user = "postgres" password = "your_password" host = "ytdl_tg_bot.postgres" port = 5432 database = "api" [yt_toolkit] url = "http://ytdl_tg_bot.yt_toolkit_api:8080" [yt_pot_provider] url = "http://ytdl_tg_bot.yt_pot_provider_api:4416" [telegram_bot_api] url = "http://ytdl_tg_bot.telegram_bot_api:8081" api_id = "your_api_id" api_hash = "your_api_hash" [tracking_params] params = [ "utm_source", "utm_medium", "utm_campaign", "fbclid", "gclid", "ttclid", "igshid", "share_item_id" ] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.