forked from nikhiljohn10/telegram-bot-worker
-
-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathworker.capnp
More file actions
24 lines (21 loc) · 552 Bytes
/
worker.capnp
File metadata and controls
24 lines (21 loc) · 552 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using Workerd = import "/workerd/workerd.capnp";
const config :Workerd.Config = (
services = [
(name = "main", worker = .worker),
],
sockets = [
(service = "main", name = "http", address = "*:8080", http = ()),
]
);
const worker :Workerd.Worker = (
modules = [
(name = "worker", esModule = embed "index.js"),
],
compatibilityDate = "2024-11-11",
bindings = [
(
name = "SECRET_TELEGRAM_API_TOKEN",
text = "put your token here before building your docker image"
),
],
);