Skip to content

Commit dca23a3

Browse files
committed
Add Telegram adapter and configuration support
- Introduced a new Telegram messaging adapter using the `teloxide` library, enabling interaction with Telegram bots. - Updated the configuration to support Telegram settings, including bot token and DM user restrictions. - Enhanced the Docker entrypoint script to generate a `config.toml` with Telegram settings based on environment variables. - Added documentation for Telegram setup and usage, including detailed instructions for bot creation and configuration. - Updated existing documentation to reflect the new Telegram adapter and its features.
1 parent d890143 commit dca23a3

File tree

16 files changed

+1597
-31
lines changed

16 files changed

+1597
-31
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ interface/dist/
1212
docs/
1313
tests/
1414
scripts/
15+
fly.toml
1516
AGENTS.md
1617
RUST_STYLE_GUIDE.md
1718
LICENSE

Cargo.lock

Lines changed: 236 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ async-trait = "0.1"
8282
# Slack
8383
slack-morphism = { version = "2.17", features = ["hyper"] }
8484

85+
# Telegram
86+
teloxide = { version = "0.17", default-features = false, features = ["rustls"] }
87+
8588
# Stream utilities
8689
tokio-stream = "0.1"
8790

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN mkdir src && echo "fn main() {}" > src/main.rs && touch src/lib.rs && cargo
2525

2626
# 2. Build the frontend.
2727
COPY interface/ interface/
28-
RUN cd interface && bun install && bun run build
28+
RUN cd interface && bun install && bun add -d @rollup/rollup-linux-x64-gnu && bun run build
2929

3030
# 3. Copy source and compile the real binary.
3131
# build.rs runs the frontend build (already done above, node_modules present).

0 commit comments

Comments
 (0)