mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-31 16:40:37 +01:00
commit
7b1fbabdcb
3 changed files with 10 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "teloxide"
|
||||
version = "0.3.1"
|
||||
version = "0.3.2"
|
||||
edition = "2018"
|
||||
description = "An elegant Telegram bots framework for Rust"
|
||||
repository = "https://github.com/teloxide/teloxide"
|
||||
|
|
|
@ -78,8 +78,8 @@ $ rustup override set nightly
|
|||
5. Run `cargo new my_bot`, enter the directory and put these lines into your `Cargo.toml`:
|
||||
```toml
|
||||
[dependencies]
|
||||
teloxide = "0.3.1"
|
||||
teloxide-macros = "0.3.2"
|
||||
teloxide = "0.3"
|
||||
teloxide-macros = "0.3"
|
||||
|
||||
log = "0.4.8"
|
||||
pretty_env_logger = "0.4.0"
|
||||
|
|
|
@ -23,6 +23,13 @@ pub struct LoginUrl {
|
|||
}
|
||||
|
||||
impl LoginUrl {
|
||||
pub fn new<S>(url: S) -> Self
|
||||
where
|
||||
S: Into<String>,
|
||||
{
|
||||
Self { url: url.into(), forward_text: None, bot_username: None, request_write_access: None }
|
||||
}
|
||||
|
||||
pub fn url<S>(mut self, val: S) -> Self
|
||||
where
|
||||
S: Into<String>,
|
||||
|
|
Loading…
Reference in a new issue