notification about new live streams from YouTube to your Telegram channel
|
2 rokov pred | |
---|---|---|
.gitignore | 3 rokov pred | |
LICENSE | 3 rokov pred | |
README.md | 3 rokov pred | |
config.py | 2 rokov pred | |
database.py | 2 rokov pred | |
get_chat_id.py | 3 rokov pred | |
get_yt_id.py | 2 rokov pred | |
invidious.py | 2 rokov pred | |
main.py | 2 rokov pred | |
requirements.txt | 3 rokov pred |
util for notification about new live streams from YouTube to your Telegram channel
python
>= 3.8token
form BotFatherapi_id
and api_id
form telegram.orgCHAT_ID
could be obtained with get_chat_id.py$ python3 -m venv venv
$ . ./venv/bin/activate
$ pip install -r requirements.txt
$ python -OO -- main.py
[
{
"id": "UC2eYFnH61tmytImy1mTYvhA"
},
{
"id": "UCVls1GmFKf6WlTraIb_IaJg",
"timeout": 300,
"chat": 1010101
}
]
id
- channel id obtained with get_yt_id.pytimeout
- timeout in seconds between new videos info requestschat
- you can specify another Telegram chat locally,
to use it instead of CHAT_ID
from config.pyget id
of telegram channel for CHAT_ID
in config.py
before running you need specify your API_ID
, API_HASH
and TOKEN
in config.py
then add bot to your channel and send any message to this channel
and bot will print id
of your channel
get id
of YouTube channel by name
$ python3 get_yt_id.py https://www.youtube.com/c/LukeSmithxyz
UC2eYFnH61tmytImy1mTYvhA