telegraf-getchatmembers
Implementation of getChatMembers method in Telegraf using cache
Last updated a month ago by tiagodanin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install telegraf-getchatmembers 
SYNC missed versions from official npm registry.

Telegraf GetChatMembers

Node Version Downloads Travis

Implementation of getChatMembers method in Telegraf using cache

Installation

Module available through the npm registry. It can be installed using the npm or yarn command line tools.

# NPM
npm install telegraf-getchatmembers --save
# Or Using Yarn
yarn add telegraf-getchatmembers

Usage

const Telegraf = require('telegraf')
const telegrafGetChatMembers = require('telegraf-getchatmembers')

const bot = new Telegraf(process.env.telegram_token)

bot.use(telegrafGetChatMembers)

bot.on('message', async (ctx) => {
	ctx.getChatMembers(ctx.chat.id) //[Members]
	ctx.getChatMembers() //[Members]
	telegrafGetChatMembers.check(ctx.chat.id) //[Members]
	telegrafGetChatMembers.all //[Chats]
})

bot.launch()

Tests

To run the test suite, first install the dependencies, then run test:

# NPM
npm test
# Or Using Yarn
yarn test

Dependencies

None

Related

Contributors

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. List of all contributors.

License

MIT © Tiago Danin

Current Tags

  • 1.0.1                                ...           latest (a month ago)

2 Versions

  • 1.0.1                                ...           a month ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 12
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |