Generate OGP link preview and Instant View for Sina Weibo.
Inline bot @wbcnbot on Telegram.
- A public server
- A domain points to the server
- Clone the repo, and install dependencies by
npm ci
. - Setup necessary environment variables, then run this bot by
node idnex.js
. - Create a bot following instructions given by @BotFather, and enable Inline Mode for this bot.
- Submit this as Instant View template of your domain here, to get your
iv_hash
WEBHOOK_PATH
Optional. Use Webhook instead of long polling for receiving updates. See here for more info.BOT_TOKEN
Telegram bot token from @BotFather.IV_RHASH
Instant view template hash.DOMAIN
Domain for webpage serving.HOST
andPORT
Host and port to listen. Default to127.0.0.1:2233
.