ConfirmCall

---functions---
phone.confirmCall#2efe1722 peer:InputPhoneCall g_a:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall

Returns

phone.PhoneCall

Parameters

peerInputPhoneCallrequired
g_abytesrequired
key_fingerprintlongrequired
protocolPhoneCallProtocolrequired

Example

Replace placeholder values with real data before running.

use ferogram::tl::functions;
use ferogram::tl::enums;

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

    let result = client
        .invoke(
        &functions::phone::ConfirmCall {
            peer: todo!() /* enums::InputPhoneCall */,
            g_a: vec![],
            key_fingerprint: 0_i64,
            protocol: todo!() /* enums::PhoneCallProtocol */,
        },
        )
        .await?;

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

#[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::ConfirmCall {
                peer: todo!() /* enums::InputPhoneCall */,
                g_a: vec![],
                key_fingerprint: 0_i64,
                protocol: todo!() /* enums::PhoneCallProtocol */,
            },
                )
                .await?;
            println!("{result:?}");
        }
    }
    Ok(())
}