Comments (8)
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.
Isn't there any built-in feature that returns a list of all users within the group?
from telegram-shipit-bot.
nope there isnt afaik
from telegram-shipit-bot.
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.
iterating would take ages imho because user ids are at least max. 9 digits long
from telegram-shipit-bot.
or as a simple alternative we could use a new /register command to save users locally into a file
from telegram-shipit-bot.
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.
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)
- Choose doesn't work as expected HOT 2
- Suggestion: How to fill the users.json without explicit "/register" call HOT 2
- Sending daily weather forecast is not working
- More Options for /choose
- /space function throws errors if no members are in the space
- wttr.in is down, so the bot throws lots of errors because of missing image source HOT 6
- Fixing svg to png rendering HOT 2
- Rework codebase to new syntax HOT 3
- weather warning HOT 1
- More cat features!
- Ignore fog warnings HOT 1
- Add documentation HOT 3
- move the .json files into a seperate folder HOT 1
- Reduce weather warning spam
- Generating Log and error files HOT 5
- rework bot commands to work in the middle of a message HOT 3
- Adding option for users to subscribe to the weather warnings
- Stop bot if token is invalid HOT 1
- Add proper error handling HOT 1
- Update Readme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram-shipit-bot.