use frankenstein::{Api, TelegramApi}; static TOKEN: &str = "API_TOKEN"; fn main() { let api = Api::new(TOKEN); match api.get_me() { Ok(response) => { let user = response.result; println!( "Hello, I'm @{}, https://t.me/{}", user.first_name, user.username.expect("The bot must have a username.") ); } Err(error) => { eprintln!("Failed to get me: {error:?}"); } } }