From f5ff145a7ce4aca2c870ad0220c1062dbc5e7257 Mon Sep 17 00:00:00 2001 From: Boyd Kane <33420535+beyarkay@users.noreply.github.com> Date: Wed, 8 Feb 2023 10:50:28 +0200 Subject: [PATCH] Add docstring to Message::from --- crates/teloxide-core/src/types/message.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/teloxide-core/src/types/message.rs b/crates/teloxide-core/src/types/message.rs index e121ee1f..6b8922cb 100644 --- a/crates/teloxide-core/src/types/message.rs +++ b/crates/teloxide-core/src/types/message.rs @@ -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 {