Hi, this is just my personal bot to improve my programming skills
This repository is based on File Sharing Bot which created using Pyrogram. But in my repository I choose Telegraf.js. I think it's just easier to find the hosting site if we use a https bot, because we can use webhook
- Share any kind of messages
- You are free to set as many force channels and groups as you want
- Support db (MongoDB) and no db (in memory), just in case you want to quickly share some files without the need of database
- Multiple admins
- Have short urls, for example:
https://t.me/your_bot?start=2781253471
- Enable/disable forwarding
Currently it lacks some features like:
- Broadcast, I haven't tried to broadcast yet so I still have to find out what type of errors might be triggered. Because unlike Pyrogram, Telegraf doesn't have any custom error types
- Redis, i don't know, maybe some people just prefer using this one instead of MongoDB
- No customisable, currently you are still required to edit the code directly in order to customize
- No bot stats, but you can still look directly all the users that has started your bot on your database, if you use one
TELEGRAM_BOT_TOKEN
, required, your bot token from BotFatherDB_CHANNEL_ID
, required, a channel where all your files/messages will be storedFORCE_CHANNEL_IDS
, optional, all channel ids you want people to joinFORCE_GROUP_IDS
, optional, all group ids you want people to joinADMIN_IDS
, required, fill least one adminDATABASE_URL
, optional, fill this with your MongoDB uri if you want to use a database, if not, all data will stored in RAMDEVELOPMENT
, optional, settrue
if you are on local so you don't have to setup a web server. Also set thistrue
if you want to use long polling instead of webhookNO_FORWARD
, optional, settrue
if you want to disable forwarding
You don't need to set API_ID
and API_HASH
because this is not an MTProto bot. You probably want to read this as a reference
If you have any errors, you can create a new issue in this repository. I will look into it and see if we can find the solution