mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Add LoginUrl::new
This commit is contained in:
parent
4c4f2bf67b
commit
9e9f6c1991
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,10 @@ pub struct LoginUrl {
|
|||
}
|
||||
|
||||
impl LoginUrl {
|
||||
pub fn new<S>(url: S) -> Self {
|
||||
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…
Add table
Reference in a new issue