Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rami3l/tino
Run code snippets right in your Telegram chat window.
https://github.com/rami3l/tino
node-js telegram telegram-bot tryitonline
Last synced: 10 days ago
JSON representation
Run code snippets right in your Telegram chat window.
- Host: GitHub
- URL: https://github.com/rami3l/tino
- Owner: rami3l
- License: agpl-3.0
- Created: 2024-10-18T12:20:10.000Z (21 days ago)
- Default Branch: master
- Last Pushed: 2024-10-27T14:35:04.000Z (12 days ago)
- Last Synced: 2024-10-28T07:11:35.750Z (12 days ago)
- Topics: node-js, telegram, telegram-bot, tryitonline
- Language: JavaScript
- Homepage:
- Size: 255 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tino
Run code snippets right in your Telegram chat window.
> _Alice:_ \
> /tioruby[^lang] puts "Hi from Ruby :)"> _Tino:_ \
> Hi from Ruby :) \
> \
> Real time: 0.131 s \
> User time: 0.076 s \
> Sys. time: 0.026 s \
> CPU share: 77.55 % \
> Exit code: 0[^lang]: You can replace `ruby` with any other language supported by https://tio.run.
## Getting Started
To host your own instance of tino, you will simply need to:
1. Deploy this one-shot bot in webhook mode on a serverless hosting platform (e.g. Zeabur);
2. Set the `TINO_TELEGRAM_BOT_TOKEN` environment variable to your own token;
3. Set the `HOST` environment variable to your own webhook ``
(e.g. `https://.zeabur.app` for Zeabur);4. Register the webhook URL at Telegram by accessing the following link in your browser:
```
https://api.telegram.org/bot/setWebhook?url=
```