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 ci
to 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
.env
using the template from.env.sample
BOT_TOKEN
is the token got fromBotFather
CYCLIC_DB_NAME
is yourTable Name
. You can check it inData/Storage
section after you hosted your app to cyclic.shBOT_ID
is your bot username
- Run
nodemon index.ts
to 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_TOKEN
is the token got fromBotFather
CYCLIC_DB_NAME
is yourTable Name
. You can check it inData/Storage
section after you host your app in cyclic.shNODE_ENV
which isproduction
BOT_ID
is 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