Files
chatmail-core/deltachat-ffi
link2xt fa87d2e225 New APIs for message processing loops
This patch adds new C APIs
dc_get_next_msgs() and dc_wait_next_msgs(),
and their JSON-RPC counterparts
get_next_msgs() and wait_next_msgs().

New configuration "last_msg_id"
tracks the last message ID processed by the bot.
get_next_msgs() returns message IDs above
the "last_msg_id".
wait_next_msgs() waits for new message notification
and calls get_next_msgs().
wait_next_msgs() can be used to build
a separate message processing loop
independent of the event loop.

Async Python API get_fresh_messages_in_arrival_order()
is deprecated in favor of get_next_messages().

Introduced Python APIs:
- Account.wait_next_incoming_message()
- Message.is_from_self()
- Message.is_from_device()

Introduced Rust APIs:
- Context.set_config_u32()
- Context.get_config_u32()
2023-04-15 21:27:45 +00:00
..
2023-04-15 21:27:45 +00:00
2019-04-28 18:06:26 +03:00
2022-07-01 12:20:20 +02:00
2023-04-04 16:47:25 +02:00
2019-08-26 19:17:58 +02:00
2021-03-13 22:19:12 +03:00

Delta Chat C Interface

Installation

see Installing libdeltachat system wide in ../README.md

Documentation

To generate the C Interface documentation, call doxygen in the deltachat-ffi directory and browse the html subdirectory.

If thinks work, the documentation is also available online at https://c.delta.chat