Skip to content

[FR] automatic group creating feature #126

@QQ-War

Description

@QQ-War

Currently, for each contact or group in slave channel, we need to create new group and use /link command to link out.
I am thinking of some ways to make it automaticly.
I find Pyrogram has this kind of interface and we can make use of it.
The idea is like to at least to change 3 parts in the code:

  1. configuration part and class init, need to use a parameter to enable this feature or not. if enable, need to provide api id and api hash, then initiate the client.
  2. message send out part, need to add some mechanism to check if this chat has already link to a group, othewise will use the interface provided by pyrogram to create one and make the link, then update_info of that group.
  3. database part, currently allow 1 group to link more than 1 slave group. maybe need to change 1 to 1. otherwise, I have not think of an idea how to do it.

There are some other issues may need to consider, but to realize it will make life happy.
I am trying to read the code of this project, and maybe I will offer some help to submit on PR later. but what will others think of it?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions