mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Remove DialogueWithCx::with_new_dialogue
This commit is contained in:
parent
adce7a4773
commit
63b69780d4
1 changed files with 0 additions and 9 deletions
|
@ -18,15 +18,6 @@ impl<Upd, D, E> DialogueWithCx<Upd, D, E> {
|
|||
pub fn new(cx: UpdateWithCx<Upd>, dialogue: D) -> Self {
|
||||
Self { cx, dialogue: Ok(dialogue) }
|
||||
}
|
||||
|
||||
/// Creates a new instance by substituting a dialogue and preserving
|
||||
/// `self.bot` and `self.update`.
|
||||
pub fn with_new_dialogue<Nd, Ne>(
|
||||
self,
|
||||
new_dialogue: Result<Nd, Ne>,
|
||||
) -> DialogueWithCx<Upd, Nd, Ne> {
|
||||
DialogueWithCx { cx: self.cx, dialogue: new_dialogue }
|
||||
}
|
||||
}
|
||||
|
||||
impl<Upd, D, E> GetChatId for DialogueWithCx<Upd, D, E>
|
||||
|
|
Loading…
Reference in a new issue