feat: auto-promote group creator AND DM user to admin
- Groups: group creator auto-promoted to admin via /start - DMs: user automatically becomes admin of their own DM
This commit is contained in:
@@ -468,6 +468,9 @@ async def cmd_start(update: Update, ctx: ContextTypes.DEFAULT_TYPE) -> None:
|
|||||||
"/my — your tracked bounties"
|
"/my — your tracked bounties"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
if not BOUNTY_SERVICE.is_admin(room_id, user_id):
|
||||||
|
BOUNTY_SERVICE.add_admin(room_id, user_id, user_id)
|
||||||
|
|
||||||
await update.message.reply_text(
|
await update.message.reply_text(
|
||||||
"👻 JIGAIDO activated.\n\n"
|
"👻 JIGAIDO activated.\n\n"
|
||||||
"Personal bounty list ready.\n"
|
"Personal bounty list ready.\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user