New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

html-telegram-bot-api

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-telegram-bot-api

Now you can write Telegram bots in HTML.

  • 0.2.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

html-telegram-bot-api

npm GitHub repo size in bytes JavaScript Style Guide license

Now you can write Telegram bots in HTML.

Installation

Requirements
  • node v6.0.0+
$ [sudo] npm i -g html-telegram-bot-api

Usage

$ html-telegram-bot [options] <path/to/html/file>

or

$ html-telegram-bot-api [options] <path/to/html/file>

Example

<!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>

CLI Options

  • -V, --version - output the version number

  • -h, --help - output usage information

Keywords

FAQs

Package last updated on 25 Jan 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc