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

pwrtelegram

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pwrtelegram

A Node.js Library for the PWRTelegram User API, which is the equivalent to Telegram's Client API

0.0.1
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

https://telegram.me/kamikazechaser https://telegram.me/Bestulo

PWRTelegram User API

A Node.js Library for the PWRTelegram User API, which is the equivalent to Telegram's Client API

Powered by PWRTelegram API

Install

$ npm install pwrtelegram --save

API Reference

User

User

Kind: global class

new User(token, baseUrl)

ParamTypeDescription
tokenStringBot Token
baseUrlString(Optional) Custom pwetelegram API instance URL

user.sendMessage(chatId, text) ⇒ Promise

Send text message.

Kind: instance method of User
Returns: Promise - Updates
See: https://core.telegram.org/method/messages.sendMessage

ParamTypeDescription
chatIdNumber | StringUnique identifier for the message recipient
textStringText of the message to be sent

user.setTyping(chatId, action) ⇒ Promise

Set typing.

Kind: instance method of User
Returns: Promise - Boolean
See: https://core.telegram.org/method/messages.setTyping

ParamTypeDescription
chatIdNumber | StringUnique identifier for the message recipient
actionStringType of action to be sent

user.forwardMessage(chatId, messageId) ⇒ Promise

Forward text message.

Kind: instance method of User
See: https://core.telegram.org/method/messages.forwardMessage

ParamTypeDescription
chatIdNumber | StringUnique identifier for the message recipient
messageIdNumber | StringUnique identifier of the message to be forwarded

Issues And Contribution

Fork the repository and submit a pull request for whatever change you want to be added to this project. If you have any questions, just open an issue.

Keywords

pwrtelegram

FAQs

Package last updated on 14 Mar 2017

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