Updated the bot with this code to accept group invites automatically:

@bot.event('receivedGroupInvitation')

async def on_contact_request(chat_info):

chat_id = str(chat_info["groupInfo"]["groupId"])

#print("CHAT_ID: "+chat_id)

await bot.client.api_join_group(chat_id)

#SimpleX #privacy #python #ai

Reply to this note

Please Login to reply.

Discussion

No replies yet.