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 {