mirror of
https://github.com/chatmail/core.git
synced 2026-05-01 20:36:31 +03:00
document new bot behavior wrt accepting chats (#3571)
This commit is contained in:
@@ -393,7 +393,8 @@ char* dc_get_blobdir (const dc_context_t* context);
|
|||||||
* If no type is prefixed, the videochat is handled completely in a browser.
|
* If no type is prefixed, the videochat is handled completely in a browser.
|
||||||
* - `bot` = Set to "1" if this is a bot.
|
* - `bot` = Set to "1" if this is a bot.
|
||||||
* Prevents adding the "Device messages" and "Saved messages" chats,
|
* Prevents adding the "Device messages" and "Saved messages" chats,
|
||||||
* adds Auto-Submitted header to outgoing messages.
|
* adds Auto-Submitted header to outgoing messages
|
||||||
|
* and accepts contact requests automatically (calling dc_accept_chat() is not needed for bots).
|
||||||
* - `fetch_existing_msgs` = 1=fetch most recent existing messages on configure (default),
|
* - `fetch_existing_msgs` = 1=fetch most recent existing messages on configure (default),
|
||||||
* 0=do not fetch existing messages on configure.
|
* 0=do not fetch existing messages on configure.
|
||||||
* In both cases, existing recipients are added to the contact database.
|
* In both cases, existing recipients are added to the contact database.
|
||||||
@@ -1387,6 +1388,9 @@ void dc_block_chat (dc_context_t* context, uint32_t ch
|
|||||||
*
|
*
|
||||||
* Use it to accept "contact request" chats as indicated by dc_chat_is_contact_request().
|
* Use it to accept "contact request" chats as indicated by dc_chat_is_contact_request().
|
||||||
*
|
*
|
||||||
|
* If the dc_set_config()-option `bot` is set,
|
||||||
|
* all chats are accepted automatically and calling this function has no effect.
|
||||||
|
*
|
||||||
* @memberof dc_context_t
|
* @memberof dc_context_t
|
||||||
* @param context The context object as returned from dc_context_new().
|
* @param context The context object as returned from dc_context_new().
|
||||||
* @param chat_id The ID of the chat to accept.
|
* @param chat_id The ID of the chat to accept.
|
||||||
|
|||||||
Reference in New Issue
Block a user