pub async fn set_chat_name(
context: &Context,
chat_id: ChatId,
new_name: &str,
) -> Result<()>Expand description
Sets group, mailing list, or broadcast channel chat name.
If the group is already promoted (any message was sent to the group), or if this is a brodacast channel, all members are informed by a special status message that is sent automatically by this function.
Sends out #DC_EVENT_CHAT_MODIFIED and #DC_EVENT_MSGS_CHANGED if a status message was sent.