refer to How Do I Create a Bot?
save token to new text file. (It will be used later...)
deta new --python <YOUR_DETA_MICRO_NAME>
TOKEN=<YOUR_BOT_TOKEN>
deta deploy
deta update -e .env
curl --header 'Content-Type: application/json' --data '{"url": "https://<YOUR_DETA_ENDPOINT>.deta.dev/webhook"}' 'https://api.telegram.org/bot<YOUR_BOT_TOKEN>/setWebhook'
- deta micro has 512 MB of RAM for each execution.
- deta micro has Read-only file system. Only /tmp can be written to. It has a 512 MB storage limit.
- deta micro doesn't have SSH access.
- deta micros do not support connecting to MongoDB at the moment. Recommend using Deta Base instead.
- deta micros will doesn't work well with RDMBS like PostgreSQL and MySQL unless you use a pool manager.
- deta micros only support read-only SQLite, which you could deploy with your code.
- The total upload size of your source code and assets is limited to 250 MB. Dependencies (pip, npm, etc) also can't exceed a combined size of 250mb.