InlineQueryResultArticle class abstract
Represents a link to an article or web page.
- Implemented types
- Annotations
-
- @freezed
Constructors
- InlineQueryResultArticle.new({@JsonKey(name: 'id') required String id, @JsonKey(name: 'title') required String title, @JsonKey(name: 'input_message_content') @InputMessageContentConverter() required InputMessageContent inputMessageContent, @JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup, @JsonKey(name: 'url') String? url, @JsonKey(name: 'description') String? description, @JsonKey(name: 'thumbnail_url') String? thumbnailUrl, @JsonKey(name: 'thumbnail_width') int? thumbnailWidth, @JsonKey(name: 'thumbnail_height') int? thumbnailHeight, @JsonKey(name: 'type') @Default(InlineQueryResultType.article) InlineQueryResultType type})
-
This object represents a link to an article or web page.
constfactory
-
InlineQueryResultArticle.fromJson(Map<
String, dynamic> json) -
Creates an instance of InlineQueryResultArticle from JSON data
factory
Properties
-
copyWith
→ $InlineQueryResultArticleCopyWith<
InlineQueryResultArticle> -
Create a copy of InlineQueryResultArticle
with the given fields replaced by the non-null parameter values.
no setterinherited
- description → String?
-
Optional. Short description of the result
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier for this result
no setterinherited
- inputMessageContent → InputMessageContent
-
Content of the message to be sent
no setterinherited
- replyMarkup → InlineKeyboardMarkup?
-
Optional. Inline keyboard attached to the message
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thumbnailHeight → int?
-
Optional. Thumbnail height
no setterinherited
- thumbnailUrl → String?
-
Optional. Url of the thumbnail for the result
no setterinherited
- thumbnailWidth → int?
-
Optional. Thumbnail width
no setterinherited
- title → String
-
Title of the result
no setterinherited
- type → InlineQueryResultType
-
Type of the result, always InlineQueryResultType.article
no setterinherited
- url → String?
-
Optional. URL of the result
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this InlineQueryResultArticle to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited