sethook
v1.0.0
Published
Now you don't need to remember the syntax to set the webhook for your Telegram bot. Just use `npx` to set the webhook for your bot.
Downloads
18
Readme
sethook - Set Telegram Webhook for the bot via npx
Now you don't need to remember the syntax to set the webhook for your Telegram bot. Just use npx
to set the webhook for your bot.
Usage
Set the webhook
npx sethook <token> <url>
# Example
npx sethook 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11 https://example.com/bot
Delete the webhook
npx sethook <token>
# Example
npx sethook 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
Arguments
token
- The Telegram Bot API tokenurl
- The URL to set the webhook to
Description
This package is a simple CLI tool to set the Telegram Webhook for a bot. It uses the Telegram Bot API to set the webhook to the provided URL. If the URL is not provided, it will delete the webhook.