Telegram Bot for sharing file. Built using grammY as the Telegram Bot Framework and Typescript. 100% suitable for deploying it to cyclic.sh because this repository is originally purposely built for that.
- grammY
- TypeScript
- DynamoDB(hosted in cyclic.sh)
- Clone this repo
- Create telegram bot using
BotFather - Run
npm cito install the dependencies - Create account at cyclic.sh if you haven't. The reason is because you need to use DynamoDB hosted in cyclic.sh. And you can only use it when you have deployed your app to cyclic.sh
- If you have another DynamoDB, feel free to use it but remember to change the codes
- Push this repo to github so you can host it in cyclic.sh
- Create
.envusing the template from.env.sampleBOT_TOKENis the token got fromBotFatherCYCLIC_DB_NAMEis yourTable Name. You can check it inData/Storagesection after you hosted your app to cyclic.shBOT_IDis your bot username
- Run
nodemon index.tsto run your app - Do coding :D
Currently, this repository only support deployment to cyclic.sh. It's free :D
- Forked this repository
- Create account at cyclic.sh if you haven't
- Deploy it to cyclic.sh through github repository
- Fill the secret after deployed it
BOT_TOKENis the token got fromBotFatherCYCLIC_DB_NAMEis yourTable Name. You can check it inData/Storagesection after you host your app in cyclic.shNODE_ENVwhich isproductionBOT_IDis your bot username
- Connect webhook by running
bash webhook.bash BOT_TOKEN CYCLIC_DEPLOYMENT_URL
- Done :D
Contributor is welcomed! Just open issue or PR 🙌️
TBA