pub struct Contact { /* private fields */ }
Expand description
Represents an InlineQueryResultContact
.
Implementations§
source§impl Contact
impl Contact
sourcepub fn new(
phone_number: impl Into<String>,
first_name: impl Into<String>
) -> Self
pub fn new(
phone_number: impl Into<String>,
first_name: impl Into<String>
) -> Self
Constructs a ‘Contact’.
sourcepub fn last_name(self, name: impl Into<String>) -> Self
pub fn last_name(self, name: impl Into<String>) -> Self
Configures the last name of the contact.
sourcepub fn input_message_content(
self,
content: impl Into<InputMessageContent>
) -> Self
pub fn input_message_content(
self,
content: impl Into<InputMessageContent>
) -> Self
Configures the content shown after sending the message.