pub struct InputWidgetMessageContent {
pub html: String,
pub width: Option<u32>,
pub height: Option<u32>,
pub public_data: Option<String>,
pub chat_data: Option<String>,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub show_caption_above_media: Option<bool>,
pub allow_queries: Option<bool>,
pub is_shared: Option<bool>,
}Expand description
Content of an inline message with a new HTML widget. Telegram does not currently allow widgets in production inline results.
Fields§
§html: StringHTML code, 1–32768 bytes and no more than 4096 bytes compressed with zlib at the maximum compression level.
width: Option<u32>Width in logical pixels, or None to fill the message bubble.
height: Option<u32>Height in logical pixels, or None if not fixed.
public_data: Option<String>Data available wherever the widget is shown, up to 1024 bytes.
chat_data: Option<String>Data specific to the message, up to 1024 bytes.
caption: Option<String>Caption, up to 1024 characters after parsing entities.
parse_mode: Option<ParseMode>Mode for parsing entities in the caption.
caption_entities: Option<Vec<MessageEntity>>Caption entities, which can be specified instead of parse_mode.
show_caption_above_media: Option<bool>Whether the caption should be displayed above the widget.
allow_queries: Option<bool>Whether the widget may send queries to the bot.
Whether each message sent from the result creates a new shared widget.
Trait Implementations§
Source§impl Clone for InputWidgetMessageContent
impl Clone for InputWidgetMessageContent
Source§fn clone(&self) -> InputWidgetMessageContent
fn clone(&self) -> InputWidgetMessageContent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InputWidgetMessageContent
impl Debug for InputWidgetMessageContent
Source§impl<'de> Deserialize<'de> for InputWidgetMessageContent
impl<'de> Deserialize<'de> for InputWidgetMessageContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InputWidgetMessageContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InputWidgetMessageContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for InputWidgetMessageContent
Source§impl Hash for InputWidgetMessageContent
impl Hash for InputWidgetMessageContent
Source§impl Serialize for InputWidgetMessageContent
impl Serialize for InputWidgetMessageContent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for InputWidgetMessageContent
Auto Trait Implementations§
impl Forget for InputWidgetMessageContent
impl Freeze for InputWidgetMessageContent
impl Move for InputWidgetMessageContent
impl RefUnwindSafe for InputWidgetMessageContent
impl Send for InputWidgetMessageContentwhere
RawVecInner: Send,
impl Sync for InputWidgetMessageContentwhere
RawVecInner: Sync,
impl Unpin for InputWidgetMessageContent
impl UnsafeUnpin for InputWidgetMessageContentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<MessageEntity>: UnsafeUnpin,
impl UnwindSafe for InputWidgetMessageContentwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Erasable for T
impl<T> Erasable for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more