Giter Club home page Giter Club logo

Comments (8)

CptPie avatar CptPie commented on August 27, 2024

i might try to put a jsonfile in place which saves all users to ensure the intention of the command (random name of group)

from telegram-shipit-bot.

 avatar commented on August 27, 2024

Isn't there any built-in feature that returns a list of all users within the group?

from telegram-shipit-bot.

CptPie avatar CptPie commented on August 27, 2024

nope there isnt afaik

from telegram-shipit-bot.

 avatar commented on August 27, 2024

https://core.telegram.org/bots/api#getchatmember

https://github.com/yagop/node-telegram-bot-api/blob/release/doc/api.md#TelegramBot+getChatMember

Maybe we can iterate over this function to get all the members In a list

from telegram-shipit-bot.

CptPie avatar CptPie commented on August 27, 2024

iterating would take ages imho because user ids are at least max. 9 digits long

from telegram-shipit-bot.

CptPie avatar CptPie commented on August 27, 2024

or as a simple alternative we could use a new /register command to save users locally into a file

from telegram-shipit-bot.

 avatar commented on August 27, 2024

Well, I didn't know that the user ids are that long.

I was thinking that it goes from zero to "getGroupMemberCount" which is also a function

from telegram-shipit-bot.

CptPie avatar CptPie commented on August 27, 2024

wrote a prototype - its currently in testing

it uses a json file which stores the users in a array without duplicates

from telegram-shipit-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.