Processor
StorageDriver
TDLCommand
Bases: str
, Enum
Available TDL commands.
TDLResult
Bases: BaseModel
Result of TDL command execution.
TDLConfig
Bases: BaseModel
Configuration for TDL processor.
proxy
proxy: str | None = Field(
default=None, description="Proxy address, format: protocol://username:password@host:port"
)
reconnect_timeout
reconnect_timeout: timedelta = Field(
default=timedelta(minutes=5), description="Telegram client reconnection backoff timeout"
)
TelegramDownloader
Bases: BaseModel
Enhanced Telegram Downloader with full TDL CLI support.
Methods:
Name | Description |
---|---|
login |
Login to Telegram. |
backup |
Backup your data. |
migrate |
Migrate your current data to another storage. |
recover |
Recover your data. |
download |
Download anything from Telegram (protected) chat. |
upload |
Upload anything to Telegram. |
forward |
Forward messages with automatic fallback and message routing. |
chat_list |
List all chats. |
chat_export |
Export chat messages. |
extension_list |
List installed extensions. |
extension_install |
Install an extension. |
extension_remove |
Remove an extension. |
get_version |
Get TDL version information. |
generate_completion |
Generate autocompletion script for specified shell. |
output_folder
config
login
backup
Backup your data.
Source code in src/core/processor.py
migrate
Migrate your current data to another storage.
Source code in src/core/processor.py
recover
download
download(
urls: list[str] | str,
include: list[str] | None = None,
exclude: list[str] | None = None,
restart: bool = False,
skip_same: bool = False,
) -> TDLResult
Download anything from Telegram (protected) chat.
Source code in src/core/processor.py
upload
Upload anything to Telegram.
Source code in src/core/processor.py
forward
Forward messages with automatic fallback and message routing.
Source code in src/core/processor.py
chat_list
chat_export
Export chat messages.
Source code in src/core/processor.py
extension_list
extension_install
extension_remove
get_version
generate_completion
Generate autocompletion script for specified shell.