Function create_broadcast

Source
pub async fn create_broadcast(
    context: &Context,
    chat_name: String,
) -> Result<ChatId>
Expand description

Create a new broadcast channel (called “Channel” in the UI).

Broadcast channels are similar to groups on the sending device, however, recipients get the messages in a read-only chat and will not see who the other members are.

Called broadcast here rather than channel, because the word “channel” already appears a lot in the code, which would make it hard to grep for it.

After creation, the chat contains no recipients and is in unpromoted state; see create_group_chat for more information on the unpromoted state.

Returns the created chat’s id.