Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Add a /mychats command to list groups to connect on private #147

Open
uduntuntu opened this issue Feb 4, 2022 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@uduntuntu
Copy link

uduntuntu commented Feb 4, 2022

it could be easier to configure chat options if the bot could tell which groups it belongs. Maybe using buttons.

We have self deployed bot.

e.g.

/mychats
Bot: My groups: 
<Group 1 real name> id: <chat id> 
<Group 2 real name> id: <chat id> 
<Group 3 real name> id: <chat id> 
<Group 4 real name> id: <chat id> 

/connect <id>
/checkcfg
/connect <id 2>
/checkcfg
/disconnect all
@uduntuntu uduntuntu changed the title [request] e.g. mychats command in private [Request] e.g. mychats command in private Feb 4, 2022
@J-Rios
Copy link
Owner

J-Rios commented May 13, 2022

Hi,

Sorry for late response I was a bit busy.

This request is not simple, because the Bot didn't store any information regarding users of a group, neither Admins of a group, so there is no possible to do this request without storing this information on some way first.

One of the main problematic of that is that it have an impact on Bot response time due scalability if we get this information by requesting group information from Telegram Server, so a better approach to make this is to check if Telegram API offers some way of subscription to any kind of group admins modification event, maybe the members change status event (need to tbe checked on Telegram API information).

Currently I don't have enough motivation to do this request, but I keep it open for anyone that wants to contribute.

Regards.

@J-Rios J-Rios added the enhancement New feature or request label May 13, 2022
@J-Rios J-Rios changed the title [Request] e.g. mychats command in private [Request] Add a /mychats command to list groups to connect on private May 13, 2022
@J-Rios
Copy link
Owner

J-Rios commented May 13, 2022

Info for users of the Bot: current way of getting the Chat ID of a group is using the /chatid command inside a group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants