pub struct UpdateableMessage {
pub chat_id: ChatId,
pub message_id: MessageId,
pub text: String,
pub reply_markup: Option<InlineKeyboardMarkup>,
}Available on
teloxide only.Fields§
§chat_id: ChatId§message_id: MessageId§text: String§reply_markup: Option<InlineKeyboardMarkup>Implementations§
source§impl UpdateableMessage
impl UpdateableMessage
pub async fn new(req: JsonRequest<SendMessage>) -> Result<Self>
pub async fn resend(&mut self, bot: &Bot) -> Result<()>
pub async fn update_text(&mut self, bot: &Bot, text: &str) -> Result<()>
pub async fn update_markup( &mut self, bot: &Bot, reply_markup: Option<InlineKeyboardMarkup> ) -> Result<()>
pub async fn delete(self, bot: &Bot) -> Result<()>
Auto Trait Implementations§
impl RefUnwindSafe for UpdateableMessage
impl Send for UpdateableMessage
impl Sync for UpdateableMessage
impl Unpin for UpdateableMessage
impl UnwindSafe for UpdateableMessage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more