https://github.com/theriturajps/js-filestore-bot
Unique #1 File Store and Retrieve Bot Made Using Javascript (Serverless Bot) Deploy on vercel.app
https://github.com/theriturajps/js-filestore-bot
bot telegraf telegraf-bots telegraf-plugin telegrafjs telegram-api telegram-bot telegram-bot-api
Last synced: 5 months ago
JSON representation
Unique #1 File Store and Retrieve Bot Made Using Javascript (Serverless Bot) Deploy on vercel.app
- Host: GitHub
- URL: https://github.com/theriturajps/js-filestore-bot
- Owner: theriturajps
- License: mit
- Created: 2024-06-19T08:09:21.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-19T11:28:59.000Z (12 months ago)
- Last Synced: 2024-11-16T06:09:07.960Z (7 months ago)
- Topics: bot, telegraf, telegraf-bots, telegraf-plugin, telegrafjs, telegram-api, telegram-bot, telegram-bot-api
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JS-FileStore-Bot
   
## Deployment
[](https://vercel.com/new/git/external?repository-url=https://github.com/theriturajps/JS-FileStore-Bot)
> Domain name will be generated after successful deployment, so there is no way to input `BOT_DOMAIN` during deploying
> Click `Promote to Production` to trigger deployment## Important Environment's and Variables
```
// Define your variables here (Important)
const BOT_TOKEN = '***********:*****************************';
const DB_CHANNEL = '-100***********';
const BOT_DOMAIN = 'https://***********.vercel.app';
const PUBLIC_CHANNEL = '-100**********';
const PUBLIC_CHANNEL_MODE = 'off';
const COPY_MESSAGE = 'deactivate';
```## Run in terminal
1. To set webhook
```
curl -F "url=[BOT_DOMAIN]/api/riturajps" "https://api.telegram.org/bot[BOT_TOKEN]/setWebhook"
```2. To Retrieve Single file
```
https://t.me/TheGetBot?start=id_1
```
3. To Retrieve Batch file```
https://t.me/TheGetBot?start=id_1_3
```# Thank You
**Do Fork our repo/project :-**