mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
changed field type String to ParseMode (completed TODO)
This commit is contained in:
parent
82f0156ef8
commit
dda98e7db8
1 changed files with 2 additions and 3 deletions
|
@ -2,7 +2,7 @@ use crate::core::requests::form_builder::FormBuilder;
|
|||
use crate::core::requests::{
|
||||
ChatId, Request, RequestFuture, RequestContext, ResponseResult,
|
||||
};
|
||||
use crate::core::{network, types::Message};
|
||||
use crate::core::{network, types::Message, types::ParseMode};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct SendMessage<'a> {
|
||||
|
@ -11,8 +11,7 @@ pub struct SendMessage<'a> {
|
|||
pub chat_id: ChatId,
|
||||
pub text: String,
|
||||
|
||||
pub parse_mode: Option<String>,
|
||||
// TODO: ParseMode enum
|
||||
pub parse_mode: Option<ParseMode>,
|
||||
pub disable_web_page_preview: Option<bool>,
|
||||
pub disable_notification: Option<bool>,
|
||||
pub reply_to_message_id: Option<i64>,
|
||||
|
|
Loading…
Reference in a new issue