Skip to content

joinzien/telegram-api

Repository files navigation

Telegram API

A simple API for interacting with Telegram chats.

Markup supported


  • Line break
  • [pagebreak] Allow multi-message responses
  • [button|label|action] Add a quick reply button
  • Links/Media Just include the URL
  • S3 set MP3s to audio/mp3, WhatsApp accepted audio/mpeg, so you will need to manually set the filetype.
  • bold
  • italic
  • underline
  • strikethrough
  • inline URL
  • inline fixed-width code
  • pre-formatted fixed-width code block
  • pre-formatted fixed-width code block written in the Python programming language

API Usage

Create a bot

const chatbot = new telegram.Telegram(telegramToken)

Parse a Message

const { user, message } = await chatbot.parse(rawMessage)

Send a Message

const result = await chatbot.send(user, message)

About

Telegram API support package for Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •