
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
node-telegram-bot-api
Advanced tools
NodeJS class for Telegram Bot API.
Support for WebHooks and long polling. Emits message
when message arrives.
Returns basic information about the bot in form of a User
object.
Returns: Promise
Specify a url to receive incoming updates via an outgoing webHook.
Parameters
url: String
, URL
Use this method to receive incoming updates using long polling
Parameters
timeout: Number | String
, Timeout in seconds for long polling.
limit: Number | String
, Limits the number of updates to be retrieved.
offset: Number | String
, Identifier of the first update to be returned.
Returns: Promise
, Updates
Send text message.
Parameters
chatId: Number | String
, Unique identifier for the message recipient
text: Sting
, Text of the message to be sent
options: Object
, Additional Telegram query options
Returns: Promise
Forward messages of any kind.
Parameters
chatId: Number | String
, Unique identifier for the message recipient
fromChatId: Number | String
, Unique identifier for the chat where the
original message was sent
messageId: Number | String
, Unique message identifier
Returns: Promise
Send photo
Parameters
chatId: Number | String
, Unique identifier for the message recipient
photo: String | stream.Stream
, A file path or a Stream. Can
also be a file_id
previously uploaded
options: Object
, Additional Telegram query options
Returns: Promise
Send audio
Parameters
chatId: Number | String
, Unique identifier for the message recipient
audio: String | stream.Stream
, A file path or a Stream. Can
also be a file_id
previously uploaded.
options: Object
, Additional Telegram query options
Returns: Promise
FAQs
Telegram Bot API
The npm package node-telegram-bot-api receives a total of 75,132 weekly downloads. As such, node-telegram-bot-api popularity was classified as popular.
We found that node-telegram-bot-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.