Python module for send videos of a Youtube channel to a telegram group , channel or chat
Project description
ytt module For Python
for install this module, Run This command:
pip install ytt
for import:
from ytt import ytt
Usage:
start_all(YouTube_channel_id,telegram_bot_token,bot_chatID,send_channel_or_group_id=None):
Using this function in your Python application, you can download all the videos of a YouTube channel and transfer them to Telegram.
YouTube_channel_id (str): ID of Youtube Channel You want To send All videos of This channel to Telegram,
telegram_bot_token (str): Your Telegram Bot Token (If you have not made a telegram bot, create a bot through this bot in Telegram: @BotFather),
bot_chatID (str): ChatID of your Telegram Channel, Group or Chat,
send_channel_or_group_id (bool): If You want to append Your channel or Group ID to the end of post, You can send True, But if you Do not want to Use it, leave it empty!
Download_only(YouTube_channel_id):
Download All videos Of a Youtube Channel Only.
YouTube_channel_id (str): ID of YouTube channel
upload_downloaded_videos(telegram_bot_token,bot_chatID,send_channel_or_group_id=None):
Upload Downloaded videos with Download_only Function to Telegram
Usage:
telegram_bot_token (str): Your Telegram Bot Token (If you have not made a telegram bot, create a bot through this bot in Telegram: @BotFather),
bot_chatID (str): ChatID of your Telegram Channel, Group or Chat,
send_channel_or_group_id (bool): If You want to append Your channel or Group ID to the end of post, You can send True, But if you Do not want to Use it, leave it empty!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ytt-1.0.0.tar.gz
(14.8 kB
view details)
Built Distribution
ytt-1.0.0-py3-none-any.whl
(15.3 kB
view details)
File details
Details for the file ytt-1.0.0.tar.gz
.
File metadata
- Download URL: ytt-1.0.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a2d5dfe86580b81d66137702e2e7c7cef15bf14b1e89422f385921957ca222f |
|
MD5 | e703da3f37bd673d76a5224d2cdd0565 |
|
BLAKE2b-256 | 224a34487b411e2b67a1ae278f69e15d610dda4f56c400acca59516ba5ec14f8 |
File details
Details for the file ytt-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: ytt-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 332dd4ca17408480d0fa70215da319fa7a76762544de129b86deb320f35daa3e |
|
MD5 | 3f4e0ebe4d854daebd199299cac2b14c |
|
BLAKE2b-256 | 4f246616adc9b793701f45e266c4a7a612ca349ff15a678f797c8a0f1841743b |