/
README.md
executable file
·112 lines (108 loc) · 4.96 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<h1 align="left">
<a href="https://github.com/m4mallu">Tube (YouTube Downloader)
</a>
</h1>
#### An Inline Telegram bot that can download YouTube videos with permanent thumbnail support
<details>
<summary><b>About</b></summary>
<p align="left"></p>
<ul>
<li><b><strike>Bot need to be in Inline Mode</strike></b></li>
<li>Search keyword inline (In bot chat).</li>
<li>Send a photo to bot to set custom thumbnail permanently.</li>
<li>The thumbnail will be in all the downloads until clear it in options.</li>
<li>View the custom thumbnail in option.</li>
<li>If no thumbnail available, bot will set the default YouTube video thumbnail in downloading.</li>
<li>Authorized users facility [The bot will be in public when this list kept empty]</li>
<li>Sudo Users of this bot can broadcast messages to the bot users.</li>
<li>Force users to subscribe a specific chat. [works as normal when list is empty]</li>
</ul>
</details>
<details>
<summary><b>@BotFather Commands</b></summary>
<p align="left"></p>
start - Check alive
send - broadcast [ As reply to any message ]
subs - Count active subscribers
</details>
<details>
<summary><b>Mandatory Variables</b></summary>
<p align="left"></p>
API_HASH Your API Hash from my.telegram.org
API_ID Your API ID from my.telegram.org
BOT_TOKEN Your Bot Token from BotFather
AUTH_USERS Create a list of User Ids to use this bot. (If kept empty, bot will be in public domain)
SUDO_USERS Create a list of Super User Ids to use this bot. (For Broadcasting )
DB_URI Mandatory when deployed in local
</details>
<details>
<summary><b>Deploy</b></summary>
<p align="left"></p>
<br><b><u>This repository cannot be able deploy in heroku due to some reasons.</u></b><br>To deploy this bot in heroku..<br><br>
1. Fork this Repository first.<br>
2. Change the URL of 'repository' parameter in <a href="https://github.com/m4mallu/tube/blob/main/app.json#L7"> app.json</a> to your fork URL.<br>
3. Change the <a href="https://github.com/m4mallu/tube/blob/main/README.md?plain=1#L50"> Deploy button URL</a> to your fork URL.<br>
4. Finally, deploy it from your own fork.<br><br><br>
<a href="https://heroku.com/deploy?template=https://github.com/Your-Fork-URL">
<img height="30px" src="https://img.shields.io/badge/Deploy%20To%20Heroku-blueviolet?style=for-the-badge&logo=heroku">
</a><br><br>
<p>
<b>2. <u>Deploy to VPS</u></b><br>
<ul>
<li>Open a Linux Terminal and run the following commands.</li>
<li><code>git clone https://github.com/m4mallu/tube</code></li>
<li><code>cd inline-tube-mate</code></li>
<li>Create a database URI with the <a href="https://telegra.ph/Clonebot-UI-Help-05-30"><b>TUTORIAL</b></a>.</li>
<li>Create a <code>config.py</code> file with the mandatory variables and database URI.</li>
<li>Run the following commands in the same terminal opened.</li>
<li><code>virtualenv -p python3 venv</code></li>
<li><code>. ./venv/bin/activate</code></li>
<li><code>pip3 install -r requirements.txt</code></li>
<li><code>python3 bot.py</code></li>
</ul>
</p>
</details>
<details>
<summary><b>Developer</b></summary>
<p align="left">
<img alt="GPL3" src ="https://c.tenor.com/10Zdx_RXqgcAAAAC/programming-crazy.gif" width="260px" style="max-width:100%;"/><br>
<a href="https://t.me/space4renjith"><img src="https://img.shields.io/badge/Renjith-Mangal-orange" height="24">
</a>
<a href="https://t.me/rmprojects"><img src="https://img.shields.io/badge/Updates-Channel-orange" height="24">
</a>
</p>
</details>
<details>
<summary><b>Donate</b></summary>
<p align="left">
<b>Buy me a coffee for the work !</b><br>
<img src="https://telegra.ph/file/b926b7e8ea84826d81d8a.png" width="260px" style="max-width:100%;"/><br><br>
<a href="https://www.paypal.me/space4renjith" target="_blank">
<img src="https://img.shields.io/badge/Donate-Me%20-orange?style=for-the-badge&logo=paypal">
</a>
</p>
</details>
<details>
<summary><b>Credits</b></summary>
<p align="left">
<a href="https://github.com/pyrogram/pyrogram">
<img src="https://img.shields.io/badge/Pyrogram-Framework%20-orange" height="32.8">
</a>
<a href="https://github.com/SpEcHiDe">
<img src="https://img.shields.io/badge/-SpEcHiDe-orange" height="32.8">
</a>
</p>
</details>
<details>
<summary><b>License</b></summary>
<p align="left">
<a href="https://choosealicense.com/licenses/gpl-3.0/">
<img src="https://img.shields.io/badge/GPL%20V3-License%20-orange">
</a>
</p>
</details>
<p align="center">
<a href="https://t.me/space4renjith">
<img alt="GPL3" src ="https://telegra.ph/file/c4f778ccfc576a954dd20.gif" width="340" height="214"/>
</a>
</p>