CreateConferenceCall

---functions---
phone.createConferenceCall#7d0444bb muted:flags.0?true video_stopped:flags.2?true join:flags.3?true random_id:int public_key:flags.3?int256 block:flags.3?bytes params:flags.3?DataJSON = Updates

Returns

Updates

Parameters

mutedtrueoptional
video_stoppedtrueoptional
jointrueoptional
random_idintrequired
public_keyint256optional
blockbytesoptional
paramsDataJSONoptional

Example

Replace placeholder values with real data before running.

use ferogram::tl::functions;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let (client, _) = ferogram::Client::quick_connect(
        "my.session",
        12345,
        "0123456789abcdef0123456789abcdef",
    )
    .await?;

    let result = client
        .invoke(
        &functions::phone::CreateConferenceCall {
            muted: false,
            video_stopped: false,
            join: false,
            random_id: 0_i32,
            public_key: None,
            block: None,
            params: None,
        },
        )
        .await?;

    println!("{result:?}");
    Ok(())
}
use ferogram::tl::functions;
use ferogram::update::Update;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let (client, _) = ferogram::Client::quick_connect(
        "my.session",
        12345,
        "0123456789abcdef0123456789abcdef",
    )
    .await?;

    let mut stream = client.stream_updates();
    while let Some(upd) = stream.next().await {
        if let Update::NewMessage(_msg) = upd {
            let result = client
                .invoke(
            &functions::phone::CreateConferenceCall {
                muted: false,
                video_stopped: false,
                join: false,
                random_id: 0_i32,
                public_key: None,
                block: None,
                params: None,
            },
                )
                .await?;
            println!("{result:?}");
        }
    }
    Ok(())
}