mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-24 15:49:27 +01:00
commit
a959d8626b
4 changed files with 15 additions and 3 deletions
|
@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [0.3.2] - 2020-10-23
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- `LoginUrl::new` ([issue 298](https://github.com/teloxide/teloxide/issues/298))
|
||||||
|
|
||||||
## [0.3.1] - 2020-08-25
|
## [0.3.1] - 2020-08-25
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "teloxide"
|
name = "teloxide"
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "An elegant Telegram bots framework for Rust"
|
description = "An elegant Telegram bots framework for Rust"
|
||||||
repository = "https://github.com/teloxide/teloxide"
|
repository = "https://github.com/teloxide/teloxide"
|
||||||
|
|
|
@ -76,8 +76,8 @@ $ rustup override set nightly
|
||||||
5. Execute `cargo new my_bot`, enter the directory and put these lines into your `Cargo.toml`:
|
5. Execute `cargo new my_bot`, enter the directory and put these lines into your `Cargo.toml`:
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
teloxide = "0.3.1"
|
teloxide = "0.3"
|
||||||
teloxide-macros = "0.3.2"
|
teloxide-macros = "0.3"
|
||||||
|
|
||||||
log = "0.4.8"
|
log = "0.4.8"
|
||||||
pretty_env_logger = "0.4.0"
|
pretty_env_logger = "0.4.0"
|
||||||
|
|
|
@ -23,6 +23,13 @@ pub struct LoginUrl {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl 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
|
pub fn url<S>(mut self, val: S) -> Self
|
||||||
where
|
where
|
||||||
S: Into<String>,
|
S: Into<String>,
|
||||||
|
|
Loading…
Add table
Reference in a new issue