realpeha / telegraf-broadcast Goto Github PK
View Code? Open in Web Editor NEWSend broadcast messages to all of your bot users/groups/channels for Telegraf.js v3.38 based on Bull Queue
Home Page: https://www.npmjs.com/package/telegraf-broadcast
Send broadcast messages to all of your bot users/groups/channels for Telegraf.js v3.38 based on Bull Queue
Home Page: https://www.npmjs.com/package/telegraf-broadcast
Is there any performance benchmarks?
What is this issue
(node:9132) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 127.0.0.1:6379 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) (node:9132) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
How to set a time between messages to prevent telegram rate limits?
const Broadcaster = require('telegraf-broadcast')
const { token } = require('../configs/bot.json')
const { Telegraf } = require('telegraf')
const bot = new Telegraf(token);
const broadcaster = new Broadcaster(bot); // ERROR
.../node_modules\telegraf-broadcast\src\index.js:13
throw new Error('bot must be instance of Telegraf or Telegram')
^
Error: bot must be instance of Telegraf or Telegram
Hi there. Where I mistake?
I saw what in docs we should use:
const Telegraf = require('telegraf'); // ERROR, isn't constructor
But, with this I get error what Telegraf
isn't constructor. So I can't use new Telegraf(token)
with this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.