
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
html-telegram-bot-api
Advanced tools
Now you can write Telegram bots in HTML.
$ [sudo] npm i -g html-telegram-bot-api
$ html-telegram-bot [options] <path/to/html/file>
or
$ html-telegram-bot-api [options] <path/to/html/file>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>html-telegram-bot-api</title>
</head>
<body data-tg-root>
<!-- Replace the value below with the API token you receive from Bot Father -->
<div data-tg-token>254259451:AA5cAlGQj51K9AD37v_522HC-5lFgB</div>
<div data-tg-commands>
<div data-tg-command="/start">
<div data-tg-method="sendMessage">Start</div>
</div>
<div data-tg-command="/help">
<div data-tg-method="sendMessage">Help</div>
</div>
<div data-tg-command="/.*" data-tg-regex>
<div data-tg-method="sendMessage">Received your command.</div>
</div>
<div data-tg-command="/echo (.+)" data-tg-regex>
<div data-tg-method="sendMessage">$1</div>
</div>
<div data-tg-command="/photo">
<div data-tg-method="sendPhoto">
<div data-tg-param="photo">https://www.w3.org/html/logo/downloads/HTML5_Badge_64.png</div>
</div>
</div>
</div>
</body>
</html>
-V
, --version
- output the version number
-h
, --help
- output usage information
FAQs
Now you can write Telegram bots in HTML.
The npm package html-telegram-bot-api receives a total of 11 weekly downloads. As such, html-telegram-bot-api popularity was classified as not popular.
We found that html-telegram-bot-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.