问题
I've activated mod_mam module in Ejabberd as follow:-
mod_mam:
db_type: sql
assume_mam_usage: true
default: always
clear_archive_on_room_destroy: false
How do I fetch messages over the APIs?
回答1:
If "over the APIs" means using mod_http_api, xmlrpc, ReST, or similar, then that isn't possible. mod_mam right now is to be used by XMPP clients as defined in https://xmpp.org/extensions/xep-0313.html
来源:https://stackoverflow.com/questions/61297053/ejabberd-fetch-the-history-messages-mod-mam-via-api