/// Creates new API using custom connector.
///
///
/// ```rust
/// # extern crate telegram_bot_fork;
/// # extern crate tokio;
/// # #[cfg(feature = "hyper_connector")]
/// # fn main() {
/// use telegram_bot_fork::{connector::hyper, Api};
///
/// # let telegram_token = "token";
/// let api = Api::with_connector(telegram_token.to_string(), hyper::default_connector().unwrap());
/// # }
///
/// # #[cfg(not(feature = "hyper_connector"))]
/// # fn main() {}
/// ```
Creates new API using custom connector.
Creates new API using custom connector .
pub fn with_connector(token: String, connector: C) -> Api<C> {
        Api {
            url: None,
            token,
            connector,
        }
    }
pub fn with_connector ( token : String , connector : C ) -> Api < C > { Api { url : None , token , connector , } }
Creates new API using custom connector.
Creates new API using custom connector .
token
String
connector
C
extern crate telegram_bot_fork;
None
extern crate tokio;
None
#[cfg(feature = "hyper_connector")]
None
fn main() {
use telegram_bot_fork::{connector::hyper, Api}.
use telegram_bot_fork :: { connector :: hyper Api } .
let telegram_token = "token";
let api = Api::with_connector(telegram_token.to_string(), hyper::default_connector().unwrap()).
let api = Api :: with_connector ( telegram_token . to_string () hyper :: default_connector () . unwrap () ) .
}
None
#[cfg(not(feature = "hyper_connector"))]
None
fn main() {}
None