https://github.com/oasisprotocol/demo-rofl-tgbot
https://github.com/oasisprotocol/demo-rofl-tgbot
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oasisprotocol/demo-rofl-tgbot
- Owner: oasisprotocol
- Created: 2025-04-04T09:04:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-19T10:21:10.000Z (about 1 year ago)
- Last Synced: 2025-06-19T11:28:40.652Z (about 1 year ago)
- Language: Python
- Size: 489 KB
- Stars: 1
- Watchers: 12
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demo ROFL Telegram Bot
A simple Telegram bot running inside Oasis ROFL TEE deployed on the
[Oasis Sapphire Testnet chain]. Read the [Oasis ROFL Quickstart] to learn more.


[Oasis ROFL Quickstart]: https://docs.oasis.io/build/rofl/quickstart
[Oasis Sapphire Testnet chain]: https://explorer.oasis.io/testnet/sapphire/rofl/app/rofl1qpjsc3qplf2szw7w3rpzrpq5rqvzv4q5x5j23msu
## Run as a standalone bot app
```shell
pip install -r requirements.txt
TOKEN="0123456789:your_telegram_token" python bot.py
```
## Run inside docker
```shell
TOKEN="0123456789:your_telegram_token" docker compose up
```
## Run as a ROFL app
```shell
rm rofl.yaml
oasis rofl init
oasis rofl create
oasis build
echo -n "0123456789:your_telegram_token" | oasis rofl secret set TOKEN -
oasis rofl update
oasis rofl deploy
```