mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Merge pull request #843 from beyarkay/patch-1
Add docstring to Message::from
This commit is contained in:
commit
0688e1f6f1
1 changed files with 1 additions and 0 deletions
|
@ -620,6 +620,7 @@ mod getters {
|
|||
/// [Message]: crate::types::Message
|
||||
/// [telegram docs]: https://core.telegram.org/bots/api#message
|
||||
impl Message {
|
||||
/// Returns the user who sent the message.
|
||||
#[must_use]
|
||||
pub fn from(&self) -> Option<&User> {
|
||||
match &self.kind {
|
||||
|
|
Loading…
Reference in a new issue