npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

monkey-patches-node-telegram-bot-api

v0.0.4

Published

monkey patch for https://github.com/yagop/node-telegram-bot-api

Downloads

3

Readme

:see_no_evil: node-telegram-bot-api :hear_no_evil:

monkey patch for https://github.com/yagop/node-telegram-bot-api

Install

npm i monkey-patches-node-telegram-bot-api --save --save-exact

Usage

var options = {/* ... */};
TelegramBot = require('node-telegram-bot-api');
require('monkey-patches-node-telegram-bot-api')(TelegramBot, options);

var token = 'YOUR_TELEGRAM_BOT_TOKEN';
var bot = new TelegramBot(token, {polling: true});

Options

all

with this option you can enable all patch.

options = {all: true};
// setup bot ... 
// usage
bot.stopPolling();
//  ...

stopPolling

With this option you can stop polling.

options = {stopPolling: true};
// setup bot ... 
// usage
bot.stopPolling(); // stop
bot.initPolling(); // start
bot.initPolling(); // restart

related pull request

emitUpdate

this path cause update-event emitted every time update received

options = {emitUpdate: true};
// setup bot ... 
// usage
bot.on('update', function(update){/* ... */})

emitCallbackQuery

Removed: update your node-telegram-bot-api

sendVenue

With this option you can send venue.

options = {sendVenue: true};
// setup bot ... 
// usage
bot.sendVenue(chatID, lat, long, title, address);

related pull request

kickChatMember

Removed: update your node-telegram-bot-api

unbanChatMember

Removed: update your node-telegram-bot-api

answerCallbackQuery

Removed: update your node-telegram-bot-api

editMessageText

Removed: update your node-telegram-bot-api

editMessageCaption

Removed: update your node-telegram-bot-api

editMessageReplyMarkup

Removed: update your node-telegram-bot-api

Compatibility

I test this package with [email protected] and [email protected]

Sem version, backward compatibility and ...

No. this is only :monkey_face: patch. so every time install this package with --save-exact option.