Iwara Telegram Bot: your ultimate Python-Telegram-Bot that connects iwara.tv and Telegram.
dlsub
- Download Subscribed- Send all videos in the first page of From people you follow to a Telegram chat.
- Maintain a
IwaraTgDB.db
to track all videos that have already been sent to the chat.
dlnew
- Download New- Send all videos in the first page of Recent videos to a Telegram channel.
- Maintain a
IwaraTgDB.db
to track all videos that have already been sent to the channel. - Add the video description to the comment section of the post.
rank
- Get Ranking- Send the daily/weekly/monthly/annually ranking of all the videos in
IwaraTgDB.db
.
- Send the daily/weekly/monthly/annually ranking of all the videos in
- A Telegram Bot (Token)
- A Local Bot API Server (Server url)
- The chat ID of the conversation between you and your bot
- The chat ID of your Telegram channel
- The chat ID of the linked discussion group of your Telegram channel
- Clone the repository
git clone https://github.com/watanabexia/Iwara-Telegram-Bot
- Install the dependencies
pip install -r requirements.txt
- run the local Telegram Bot API server
cd telegram-bot-api/build/telegram-bot-api/bin
./telegram-bot-api -api-id=<App_api_id> -api-hash=<App_api_hash>
By default, the Telegram Bot API server is running on port 8081
. In this case, the Telegram Bot API server url is http://0.0.0.0:8081/bot
.
- Create a file named
config.json
inside the repository folderIwara-Telegram-Bot
, with the following content:
{
"user_info" : {
"user_name" : <Your Iwara user name>,
"password" : <Your Iwara Password>
},
"telegram_info" : {
"token" : <Your Bot API Token>,
"chat_id" : <The chat ID of your bot or channel>,
"chat_id_discuss": <The chat ID of the linked discussion group>,
"ranking_id" : <The chat ID of your bot or channel>,
"APIServer" : <Your Telegram Bot API server url>
}
}
- Bon Appétit
Usage: python {} <mode> <option>
mode can be:
-n/normal: normal mode
-e/ecchi: ecchi mode (NSFW)
option can be:
dlsub: download the latest page of your subscription list
dlnew: download the latest page of the new videos
rank -d/-w/-m/-y: send daily/weekly/monthly/annually ranking of your database