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