mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +01:00
Add setters to MessagePinned
This commit is contained in:
parent
f5b81e87b4
commit
5d6604bd52
1 changed files with 11 additions and 0 deletions
|
@ -333,6 +333,17 @@ pub struct MessagePinned {
|
|||
pub pinned: Box<Message>,
|
||||
}
|
||||
|
||||
impl MessagePinned {
|
||||
pub fn new(pinned: Message) -> Self {
|
||||
Self { pinned: Box::new(pinned) }
|
||||
}
|
||||
|
||||
pub fn pinned(mut self, val: Message) -> Self {
|
||||
self.pinned = Box::new(val);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[non_exhaustive]
|
||||
pub struct MessageInvoice {
|
||||
|
|
Loading…
Reference in a new issue