Skip to content

Tgsend helps to send a message for all telegram bot users by part 800messages it creates send records from your users collection

License

Notifications You must be signed in to change notification settings

albertincx/tgsend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Tgsend helps to send a message for all telegram bot users by part 800messages it creates send records from your users collection

Updates Here

Install

npm install tgsend

or yarn add tgsend

Examples

const tgsend = require('tgsend');

// your send function
processSend(ctx) {
    // conn with users collection
    this.conn = createConnection(process.env.MONGO_URI_USERS);
    // for broadcast collection
    this.connSend = createConnection(process.env.MONGO_URI_NEW);
    tgsend(ctx, this);
}

implemented https://github.com/albertincx/formatbot1

IMPORTANT

you should implement schema, toggleConfig, isAdmin, getMidMessage, forwardMes, sendAdmin methods

TODO

  • create distribution records in mongo
  • start distribution
  • cron
  • tests

npm link

https://www.npmjs.com/package/tgsend

About

Tgsend helps to send a message for all telegram bot users by part 800messages it creates send records from your users collection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published