Home

Awesome

<h1 align="center">Show JSON Bot</h1>

Try the running bot here: Show JSON Bot

A simple Telegram Bot to show JSON data of Telegram messages. The JSON data is the updates that Telegram sent to the bot. The bot also provides an UI to navigate through the JSON object. The workflow is highly inspired by JSONShowBot which is NOT working as of May 2, 2022 (Still a nope in Nov, 2024).

Re-written in TypeScript and now it runs on Deno.

This is a re-write. See the old version here.

Built Using

Thanks to these tools and libraries.

  1. grammY - The Telegram Bot Framework.
  2. Deno KV - KV Database.

Setup

Running Locally

Make sure you have installed Deno CLI.

See the list of environment variables.

Required permissions

If everything is done correct, you should see "(Username) started" in your console.

Deno Deploy

The working bot, @jsoonbot is currently deployed on Deno Deploy.

After deploying you will get a link to your application, in the format https://<appname>.deno.dev/.

Open a browser and go to the link down below.

https://api.telegram.org/bot<TOKEN>/setWebhook?url=<APP_URL>/<TOKEN>

This will set the bot's webhook to the deployed application, so that Telegram will sent further updates to there.

Environment Variables

VariableRequired?Description
DEBUGNo.If not set, the bot would run in the webhook mode. Set to enable long polling.
BOT_TOKENYes.The API token of the Bot. Chat with https://t.me/BotFather to get one.

License

This application is licensed under the MIT License. See the LICENSE file for more information on copying and distributing this piece of software.

Contributing

Feel free to contribute! And if you are having issues or if you want suggest something, please open an issue here: dcdunkan/show-json-bot/issues. Or, open a PQ!


<p align="center"> <b>Made with ❤️ and ☕</b><br> <samp> <a href="https://t.me/dcbots">channel</a> ~ <a href="https://t.me/jsoonbot">public instance bot</a> </samp> </p>