mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Add Message::video_chat_participants_invited
This commit is contained in:
parent
a411bff31c
commit
16c20e371c
1 changed files with 13 additions and 1 deletions
|
@ -615,7 +615,7 @@ mod getters {
|
||||||
MessageGroupChatCreated, MessageInvoice, MessageLeftChatMember, MessageNewChatMembers,
|
MessageGroupChatCreated, MessageInvoice, MessageLeftChatMember, MessageNewChatMembers,
|
||||||
MessageNewChatPhoto, MessageNewChatTitle, MessagePassportData, MessagePinned,
|
MessageNewChatPhoto, MessageNewChatTitle, MessagePassportData, MessagePinned,
|
||||||
MessageProximityAlertTriggered, MessageSuccessfulPayment, MessageSupergroupChatCreated,
|
MessageProximityAlertTriggered, MessageSuccessfulPayment, MessageSupergroupChatCreated,
|
||||||
PhotoSize, True, User,
|
MessageVideoChatParticipantsInvited, PhotoSize, True, User,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Getters for [Message] fields from [telegram docs].
|
/// Getters for [Message] fields from [telegram docs].
|
||||||
|
@ -1178,6 +1178,18 @@ mod getters {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[must_use]
|
||||||
|
pub fn video_chat_participants_invited(
|
||||||
|
&self,
|
||||||
|
) -> Option<&types::VideoChatParticipantsInvited> {
|
||||||
|
match &self.kind {
|
||||||
|
VideoChatParticipantsInvited(MessageVideoChatParticipantsInvited {
|
||||||
|
video_chat_participants_invited,
|
||||||
|
}) => Some(video_chat_participants_invited),
|
||||||
|
_ => None,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn reply_markup(&self) -> Option<&types::InlineKeyboardMarkup> {
|
pub fn reply_markup(&self) -> Option<&types::InlineKeyboardMarkup> {
|
||||||
match &self.kind {
|
match &self.kind {
|
||||||
|
|
Loading…
Reference in a new issue