working example

This commit is contained in:
holger krekel
2019-11-12 23:52:10 +01:00
parent 4a23d12df2
commit 74825a0f57
5 changed files with 37 additions and 1 deletions

View File

@@ -1903,6 +1903,11 @@ pub fn forward_msgs(context: &Context, msg_ids: &[MsgId], chat_id: u32) -> Resul
Ok(())
}
pub fn get_info_json(context: &Context, chat_id: u32) -> Result<String, Error> {
let s = format!("{{\n {:?}: {:?}\n}}", "chat_id", chat_id);
Ok(s)
}
pub fn get_chat_contact_cnt(context: &Context, chat_id: u32) -> usize {
context
.sql