fn fib_markup(mut a: u128, mut b: u128) -> reply_markup::Inline {
    let mut rows = Vec::with_capacity(NUMBERS_PER_PAGE + 1);
    for _ in 0..NUMBERS_PER_PAGE {
        let text = a.to_string();
        rows.push(vec![button::inline(&text, text.as_bytes())]);

        let bb = b;
        b = a + b;
        a = bb;
    }

    let next = format!("{},{}", a, b);
    if next.len() > MAX_PAYLOAD_DATA_LEN {
        rows.push(vec![button::inline("I'm satisfied!!", b"done".to_vec())]);
    } else {
        rows.push(vec![
            button::inline("Restart!", b"0,1".to_vec()),
            button::inline("More!", format!("{},{}", a, b).into_bytes()),
        ]);
    }
    reply_markup::inline(rows)
}
/// Generate the inline keyboard reply markup with a few more numbers from the sequence.
Generate the inline keyboard reply markup with a few more numbers from the sequence.
Generate the inline keyboard reply markup with a few more numbers from the sequence .
fn fib_markup(mut a: u128, mut b: u128) -> reply_markup::Inline {
    let mut rows = Vec::with_capacity(NUMBERS_PER_PAGE + 1);
    for _ in 0..NUMBERS_PER_PAGE {
        let text = a.to_string();
        rows.push(vec![button::inline(&text, text.as_bytes())]);
        let bb = b;
        b = a + b;
        a = bb;
    }
    let next = format!("{},{}", a, b);
    if next.len() > MAX_PAYLOAD_DATA_LEN {
        rows.push(vec![button::inline("I'm satisfied!!", b"done".to_vec())]);
    } else {
        rows.push(vec![
            button::inline("Restart!", b"0,1".to_vec()),
            button::inline("More!", format!("{},{}", a, b).into_bytes()),
        ]);
    }
    reply_markup::inline(rows)
}
fn fib_markup ( mut a : u128 , mut b : u128 ) -> reply_markup :: Inline { let mut rows = Vec :: with_capacity ( NUMBERS_PER_PAGE + 1 ) ; for _ in 0 .. NUMBERS_PER_PAGE { let text = a . to_string ( ) ; rows . push ( vec ! [ button inline ( text text as_bytes ( ) ) ] ) ; let bb = b ; b = a + b ; a = bb ; } let next = format ! ( " " a b ) ; if next . len ( ) > MAX_PAYLOAD_DATA_LEN { rows . push ( vec ! [ button inline ( " " b" " to_vec ( ) ) ] ) ; } else { rows . push ( vec ! [ button inline ( " " b" " to_vec ( ) ) button inline ( " " format ( " " a b ) into_bytes ( ) ) ] ) ; } reply_markup :: inline ( rows ) }
Generate the inline keyboard reply markup with a few more numbers from the sequence.
Generate the inline keyboard reply markup with a few more numbers from the sequence .
a
u128
b
u128
a
u128
b
u128