Skip to content

Commit

Permalink
feat(Client::send_message): add support to return scheduled message…
Browse files Browse the repository at this point in the history
… from Update
  • Loading branch information
IMXEren committed Mar 26, 2024
1 parent 1f0371a commit c5fa262
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/grammers-client/src/client/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ fn map_random_ids_to_messages(
message,
..
}) => Some(message),
tl::enums::Update::NewScheduledMessage(tl::types::UpdateNewScheduledMessage {
message,
..
}) => Some(message),
_ => None,
})
.filter_map(|message| Message::new(client, message, &chats))
Expand Down

0 comments on commit c5fa262

Please sign in to comment.