-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpacefile
More file actions
32 lines (31 loc) · 1.1 KB
/
Spacefile
File metadata and controls
32 lines (31 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Spacefile Docs: https://go.deta.dev/docs/spacefile/v0
v: 0
micros:
- name: BotMicro
src: BotMicro
run: uvicorn main:app
engine: python3.9
primary: true
public_routes:
- "/webhook"
- "/webhook/*"
- "/members"
- "/members/*"
presets:
env:
- name: BOT_TOKEN
description: Secret token of telegram bot from @BotFather
- name: ENABLE_ERRORS_LOGS
description: Enable logging of errors. Logs are stored in the "logs" Deta Base.
default: "True"
- name: ERROR_LOGS_EXPIRE_AFTER
description: Time in seconds after which errors logs will be deleted.
default: "604800"
- name: ENABLE_EVENTS_LOGS
description: Enable logging of each telegram event. Logs are stored in the "logs" Deta Base.
default: "True"
- name: EVENTS_LOGS_EXPIRE_AFTER
description: Time in seconds after which events logs will be deleted.
default: "604800"
- name: BOT_LINK
description: Link to your bot. Used in the /start command.