Make the bots automatically accept group chat contact requests

This commit is contained in:
link2xt
2023-05-05 12:49:23 +00:00
parent 16906210e1
commit ba36d09c70
3 changed files with 20 additions and 1 deletions

View File

@@ -557,7 +557,13 @@ async fn add_parts(
blocked: Blocked::Request,
}) if is_bot => Blocked::Not,
Some(ChatIdBlocked { id: _, blocked }) => blocked,
None => Blocked::Request,
None => {
if is_bot {
Blocked::Not
} else {
Blocked::Request
}
}
};
if chat_id.is_none() {