InlineQueryResultContact class
Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
- Implemented types
Constructors
- InlineQueryResultContact({required String phoneNumber, required String firstName, required String id, String? lastName, String? vcard, InlineKeyboardMarkup? replyMarkup, InputMessageContent? inputMessageContent, String? thumbnailUrl, int? thumbnailWidth, int? thumbnailHeight})
-
Constructs an InlineQueryResultContact object
const
-
InlineQueryResultContact.fromJson(Map<
String, dynamic> json) -
Constructs an InlineQueryResultContact object from a JSON map
factory
Properties
- firstName → String
-
Contact's first name
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier for this result, 1-64 Bytes
final
- inputMessageContent → InputMessageContent?
-
Optional. Content of the message to be sent instead of the contact
final
- lastName → String?
-
Optional. Contact's last name
final
- phoneNumber → String
-
Contact's phone number
final
- replyMarkup → InlineKeyboardMarkup?
-
Optional. Inline keyboard attached to the message
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thumbnailHeight → int?
-
Optional. Thumbnail height
final
- thumbnailUrl → String?
-
Optional. Url of the thumbnail for the result
final
- thumbnailWidth → int?
-
Optional. Thumbnail width
final
- type → InlineQueryResultType
-
Type of the result, always InlineQueryResultType.contact
no setteroverride
- vcard → String?
-
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
final
Methods
-
copyWith(
{String? id, String? phoneNumber, String? firstName, String? lastName, String? vcard, InlineKeyboardMarkup? replyMarkup, InputMessageContent? inputMessageContent, String? thumbnailUrl, int? thumbnailWidth, int? thumbnailHeight}) → InlineQueryResultContact - Copy method
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts an InlineQueryResultContact object to a JSON map
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited