LabCleaningBot: make all members of the task group to admins
This commit is contained in:
parent
aa36e3e911
commit
db7a98aa21
1
main.py
1
main.py
@ -402,6 +402,7 @@ class LabCleaningBot:
|
|||||||
|
|
||||||
task.chatgroup = chatgroup
|
task.chatgroup = chatgroup
|
||||||
self.api.update_group_members(chatgroup, [r.user.name for r in task.accepted_requests()])
|
self.api.update_group_members(chatgroup, [r.user.name for r in task.accepted_requests()])
|
||||||
|
self.api.update_group_admins(chatgroup, [r.user.name for r in task.accepted_requests()])
|
||||||
|
|
||||||
async def sync_members_and_tasks(self, session: Session):
|
async def sync_members_and_tasks(self, session: Session):
|
||||||
# Async routine that syncs active members using sync_members_as_active_users(),
|
# Async routine that syncs active members using sync_members_as_active_users(),
|
||||||
|
Loading…
Reference in New Issue
Block a user