mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-02 06:50:06 +00:00
Compare commits
No commits in common. "7d47d0ab61e80c9d80315a11310a7af3c8444ea4" and "479923a04a50947fa441f00467e989b3df082591" have entirely different histories.
7d47d0ab61
...
479923a04a
@ -13211,13 +13211,11 @@ public final class dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/Callbac
|
|||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton : dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton {
|
public final class dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton : dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton {
|
||||||
public static final field Companion Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton$Companion;
|
public static final field Companion Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton$Companion;
|
||||||
public fun <init> (Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;)V
|
public fun <init> (Ljava/lang/String;)V
|
||||||
public final fun component1 ()Ljava/lang/String;
|
public final fun component1 ()Ljava/lang/String;
|
||||||
public final fun component2 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;
|
public final fun copy (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton;
|
||||||
public final fun copy (Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton;
|
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton;
|
||||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton;
|
|
||||||
public fun equals (Ljava/lang/Object;)Z
|
public fun equals (Ljava/lang/Object;)Z
|
||||||
public final fun getData ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;
|
|
||||||
public fun getText ()Ljava/lang/String;
|
public fun getText ()Ljava/lang/String;
|
||||||
public fun hashCode ()I
|
public fun hashCode ()I
|
||||||
public fun toString ()Ljava/lang/String;
|
public fun toString ()Ljava/lang/String;
|
||||||
@ -13238,33 +13236,6 @@ public final class dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTex
|
|||||||
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData {
|
|
||||||
public static final field Companion Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData$Companion;
|
|
||||||
public fun <init> (Ljava/lang/String;)V
|
|
||||||
public final fun component1 ()Ljava/lang/String;
|
|
||||||
public final fun copy (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;
|
|
||||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;
|
|
||||||
public fun equals (Ljava/lang/Object;)Z
|
|
||||||
public final fun getText ()Ljava/lang/String;
|
|
||||||
public fun hashCode ()I
|
|
||||||
public fun toString ()Ljava/lang/String;
|
|
||||||
}
|
|
||||||
|
|
||||||
public synthetic class dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData$$serializer : kotlinx/serialization/internal/GeneratedSerializer {
|
|
||||||
public static final field INSTANCE Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData$$serializer;
|
|
||||||
public final fun childSerializers ()[Lkotlinx/serialization/KSerializer;
|
|
||||||
public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;
|
|
||||||
public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object;
|
|
||||||
public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor;
|
|
||||||
public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;)V
|
|
||||||
public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V
|
|
||||||
public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer;
|
|
||||||
}
|
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData$Companion {
|
|
||||||
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
|
||||||
}
|
|
||||||
|
|
||||||
public abstract interface class dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton {
|
public abstract interface class dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton {
|
||||||
public static final field Companion Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton$Companion;
|
public static final field Companion Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton$Companion;
|
||||||
public abstract fun getText ()Ljava/lang/String;
|
public abstract fun getText ()Ljava/lang/String;
|
||||||
@ -14184,8 +14155,7 @@ public final class dev/inmo/tgbotapi/types/buttons/WebAppKeyboardButton$Companio
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/buttons/inline/InlineKeyboardButtonsShortcutsKt {
|
public final class dev/inmo/tgbotapi/types/buttons/inline/InlineKeyboardButtonsShortcutsKt {
|
||||||
public static final fun copyTextButton (Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton;
|
public static final fun copyTextButton (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton;
|
||||||
public static final fun copyTextButton (Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton;
|
|
||||||
public static final fun dataInlineButton (Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CallbackDataInlineKeyboardButton;
|
public static final fun dataInlineButton (Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CallbackDataInlineKeyboardButton;
|
||||||
public static final fun gameInlineButton (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CallbackGameInlineKeyboardButton;
|
public static final fun gameInlineButton (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CallbackGameInlineKeyboardButton;
|
||||||
public static final fun inlineQueryInAnyCurrentChatInlineButton (Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryChosenChatInlineKeyboardButton;
|
public static final fun inlineQueryInAnyCurrentChatInlineButton (Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryChosenChatInlineKeyboardButton;
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
package dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons
|
|
||||||
|
|
||||||
import kotlinx.serialization.Serializable
|
|
||||||
|
|
||||||
@Serializable
|
|
||||||
data class CopyTextButtonData(
|
|
||||||
val text: String,
|
|
||||||
)
|
|
@ -142,13 +142,11 @@ data class URLInlineKeyboardButton(
|
|||||||
) : InlineKeyboardButton
|
) : InlineKeyboardButton
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* `copy_text` button
|
* Simple [url] button. Can be forwarded in any chat with message in case if it is the only one button in message
|
||||||
*/
|
*/
|
||||||
@Serializable
|
@Serializable
|
||||||
data class CopyTextButton(
|
data class CopyTextButton(
|
||||||
override val text: String,
|
override val text: String
|
||||||
@SerialName(copyTextField)
|
|
||||||
val data: CopyTextButtonData
|
|
||||||
) : InlineKeyboardButton
|
) : InlineKeyboardButton
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,20 +37,11 @@ inline fun loginInlineButton(
|
|||||||
) = LoginURLInlineKeyboardButton(text, loginUrl)
|
) = LoginURLInlineKeyboardButton(text, loginUrl)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [CopyTextButton]
|
* Creates [LoginURLInlineKeyboardButton]
|
||||||
*/
|
*/
|
||||||
inline fun copyTextButton(
|
inline fun copyTextButton(
|
||||||
text: String,
|
text: String
|
||||||
data: CopyTextButtonData
|
) = CopyTextButton(text)
|
||||||
) = CopyTextButton(text, data)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates [CopyTextButton]
|
|
||||||
*/
|
|
||||||
inline fun copyTextButton(
|
|
||||||
text: String,
|
|
||||||
data: String
|
|
||||||
) = copyTextButton(text, CopyTextButtonData(data))
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [SwitchInlineQueryCurrentChatInlineKeyboardButton]
|
* Creates [SwitchInlineQueryCurrentChatInlineKeyboardButton]
|
||||||
|
@ -3376,8 +3376,7 @@ public final class dev/inmo/tgbotapi/extensions/utils/shortcuts/RequestsExecutor
|
|||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/utils/types/buttons/InlineKeyboardBuilderKt {
|
public final class dev/inmo/tgbotapi/extensions/utils/types/buttons/InlineKeyboardBuilderKt {
|
||||||
public static final fun build (Ldev/inmo/tgbotapi/utils/MatrixBuilder;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
public static final fun build (Ldev/inmo/tgbotapi/utils/MatrixBuilder;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||||
public static final fun copyTextButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;)Z
|
public static final fun copyTextButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
||||||
public static final fun copyTextButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
|
||||||
public static final fun dataButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
public static final fun dataButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
||||||
public static final fun flatInlineKeyboard (Lkotlin/jvm/functions/Function1;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
public static final fun flatInlineKeyboard (Lkotlin/jvm/functions/Function1;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||||
public static final fun gameButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
public static final fun gameButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
||||||
|
@ -93,26 +93,14 @@ inline fun InlineKeyboardRowBuilder.loginButton(
|
|||||||
) = add(LoginURLInlineKeyboardButton(text, loginUrl))
|
) = add(LoginURLInlineKeyboardButton(text, loginUrl))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [CopyTextButton]
|
* Creates and put [LoginURLInlineKeyboardButton]
|
||||||
*
|
*
|
||||||
* @see inlineKeyboard
|
* @see inlineKeyboard
|
||||||
* @see InlineKeyboardBuilder.row
|
* @see InlineKeyboardBuilder.row
|
||||||
*/
|
*/
|
||||||
inline fun InlineKeyboardRowBuilder.copyTextButton(
|
inline fun InlineKeyboardRowBuilder.copyTextButton(
|
||||||
text: String,
|
text: String
|
||||||
data: CopyTextButtonData
|
) = add(CopyTextButton(text))
|
||||||
) = add(CopyTextButton(text, data))
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates [CopyTextButton]
|
|
||||||
*
|
|
||||||
* @see inlineKeyboard
|
|
||||||
* @see InlineKeyboardBuilder.row
|
|
||||||
*/
|
|
||||||
inline fun InlineKeyboardRowBuilder.copyTextButton(
|
|
||||||
text: String,
|
|
||||||
data: String
|
|
||||||
) = copyTextButton(text, CopyTextButtonData(data))
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [SwitchInlineQueryCurrentChatInlineKeyboardButton]
|
* Creates and put [SwitchInlineQueryCurrentChatInlineKeyboardButton]
|
||||||
|
Loading…
Reference in New Issue
Block a user