This commit is contained in:
12
src/inc/routes/upload.mjs
Normal file
12
src/inc/routes/upload.mjs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
export default (router, tpl) => {
|
||||||
|
router.get(/^\/upload$/, lib.auth, async (req, res) => {
|
||||||
|
|
||||||
|
res.reply({
|
||||||
|
body: tpl.render('upload', {
|
||||||
|
phrase,
|
||||||
|
tmp: null
|
||||||
|
}, req)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return router;
|
||||||
|
};
|
10
views/upload.html
Normal file
10
views/upload.html
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
@include(snippets/header)
|
||||||
|
<h5>Upload</h5>
|
||||||
|
<p>To upload videos to w0bm you must join our <a href="https://t.me/+Qwh6KgnYfEMxOWUy">Telegram</a> group</p>
|
||||||
|
<p>An admin will accept your join request shortly</p>
|
||||||
|
<h5>How it works</h5>
|
||||||
|
<ul>
|
||||||
|
<li>Maximum filesize for direct file upload via Telegram is 20MB</li>
|
||||||
|
<li>Add a !f behind any url you want and send it, the bot will pick it up.</li>
|
||||||
|
</ul>
|
||||||
|
@include(snippets/footer)
|
Reference in New Issue
Block a user