mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-01-09 09:19:55 +00:00
remove hide_url from InlineQueryResultArticle
This commit is contained in:
parent
d211afa26a
commit
d222987fc7
@ -9683,8 +9683,10 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
|||||||
public static final field Companion Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultArticle$Companion;
|
public static final field Companion Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultArticle$Companion;
|
||||||
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||||
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||||
|
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||||
|
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||||
public fun getDescription ()Ljava/lang/String;
|
public fun getDescription ()Ljava/lang/String;
|
||||||
public final fun getHideUrl ()Ljava/lang/Boolean;
|
public final fun getHideUrl ()Z
|
||||||
public fun getId-5UnZwr4 ()Ljava/lang/String;
|
public fun getId-5UnZwr4 ()Ljava/lang/String;
|
||||||
public fun getInputMessageContent ()Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;
|
public fun getInputMessageContent ()Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;
|
||||||
public fun getReplyMarkup ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
public fun getReplyMarkup ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||||
|
@ -19,8 +19,6 @@ class InlineQueryResultArticle(
|
|||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(urlField)
|
@SerialName(urlField)
|
||||||
override val url: String? = null,
|
override val url: String? = null,
|
||||||
@SerialName(hideUrlField)
|
|
||||||
val hideUrl: Boolean? = null,
|
|
||||||
@SerialName(descriptionField)
|
@SerialName(descriptionField)
|
||||||
override val description: String? = null,
|
override val description: String? = null,
|
||||||
@SerialName(thumbnailUrlField)
|
@SerialName(thumbnailUrlField)
|
||||||
@ -36,4 +34,31 @@ class InlineQueryResultArticle(
|
|||||||
WithInputMessageContentInlineQueryResult,
|
WithInputMessageContentInlineQueryResult,
|
||||||
UrlInlineQueryResult {
|
UrlInlineQueryResult {
|
||||||
override val type: String = "article"
|
override val type: String = "article"
|
||||||
|
@Deprecated("Field hide_url has been deprecated in Bot API 8.2. Use empty url instead")
|
||||||
|
val hideUrl: Boolean
|
||||||
|
get() = url != null && url.isEmpty()
|
||||||
|
|
||||||
|
@Deprecated("Field hide_url has been deprecated in Bot API 8.2. Use empty url instead")
|
||||||
|
constructor(
|
||||||
|
id: InlineQueryId,
|
||||||
|
title: String,
|
||||||
|
inputMessageContent: InputMessageContent,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
|
url: String? = null,
|
||||||
|
hideUrl: Boolean?,
|
||||||
|
description: String? = null,
|
||||||
|
thumbnailUrl: String? = null,
|
||||||
|
thumbnailWidth: Int? = null,
|
||||||
|
thumbnailHeight: Int? = null
|
||||||
|
) : this(
|
||||||
|
id = id,
|
||||||
|
title = title,
|
||||||
|
inputMessageContent = inputMessageContent,
|
||||||
|
replyMarkup = replyMarkup,
|
||||||
|
url = url,
|
||||||
|
description = description,
|
||||||
|
thumbnailUrl = thumbnailUrl,
|
||||||
|
thumbnailWidth = thumbnailWidth,
|
||||||
|
thumbnailHeight = thumbnailHeight
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user