I'm making a Telegram Bot with aiogram3 and I need to make bot to be addable to groups only by admin of my bot. Is there any way to do it?
I tried code below but it only works for private chats.
@dp.chat_join_request()
async def request_handler(update: types.ChatJoinRequest):
await update.decline()
No thats not possible.
A group owner can add a bot the group.
The bot could however catch the join update and call
leaveChat
to leave it if it's not whitelisted;