mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Merge pull request #405 from dracarys18/dev
utils: Change the user_id type to i64
This commit is contained in:
commit
a699aad923
3 changed files with 3 additions and 2 deletions
|
@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- `Noop` and `AsyncStopToken`stop tokens.
|
||||
- `StatefulListener`.
|
||||
- Emit not only errors but also warnings and general information from teloxide, when set up by `enable_logging!`.
|
||||
- Use `i64` instead of `i32` for `user_id` in `html::user_mention` and `markdown::user_mention`.
|
||||
|
||||
### Fixed
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ pub fn link(url: &str, text: &str) -> String {
|
|||
}
|
||||
|
||||
/// Builds an inline user mention link with an anchor.
|
||||
pub fn user_mention(user_id: i32, text: &str) -> String {
|
||||
pub fn user_mention(user_id: i64, text: &str) -> String {
|
||||
link(format!("tg://user?id={}", user_id).as_str(), text)
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ pub fn link(url: &str, text: &str) -> String {
|
|||
}
|
||||
|
||||
/// Builds an inline user mention link with an anchor.
|
||||
pub fn user_mention(user_id: i32, text: &str) -> String {
|
||||
pub fn user_mention(user_id: i64, text: &str) -> String {
|
||||
link(format!("tg://user?id={}", user_id).as_str(), text)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue