If your website has new posts uploading daily and you wanna put it into your telegram channel without hassle, this is the right place.
- Get you
sitemap.xml
ready or any.xml
sitemap for your website and put it inside theURL
variable in the code. - Get the access token. This can be obtained by messaging
@BotFather
on Telegram and then add the Access keys to theTOKEN
variable in the Code. - Get your chat ID. If it is a public channel, the chat ID will be
@yourchannelname
. Add this to the CHAT_ID variable. [ Search online for chat id's of private channels ]
- Then run
pip install -r requirements
in the Telebot directory - You are good to go. Either double click the file or just run
python extract.py
Sitemap extraction reference : "https://gist.github.com/HQJaTu/cd66cf659b8ee633685b43c5e7e92f05.js"