mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-03 15:19:30 +00:00
WAT A HUGE REFACTOR
This commit is contained in:
@@ -1315,8 +1315,6 @@ public final class dev/inmo/tgbotapi/requests/answers/InlineQueryResultsButton$S
|
||||
public final class dev/inmo/tgbotapi/requests/answers/InlineQueryResultsButton$Unknown : dev/inmo/tgbotapi/requests/answers/InlineQueryResultsButton {
|
||||
public static final field Companion Ldev/inmo/tgbotapi/requests/answers/InlineQueryResultsButton$Unknown$Companion;
|
||||
public final fun component1 ()Ljava/lang/String;
|
||||
public final fun copy (Ljava/lang/String;)Ldev/inmo/tgbotapi/requests/answers/InlineQueryResultsButton$Unknown;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/requests/answers/InlineQueryResultsButton$Unknown;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/answers/InlineQueryResultsButton$Unknown;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getText ()Ljava/lang/String;
|
||||
public fun hashCode ()I
|
||||
@@ -4341,8 +4339,6 @@ public final class dev/inmo/tgbotapi/requests/edit/caption/EditChatMessageCaptio
|
||||
public final fun component6-nXr5wdE ()Ljava/lang/String;
|
||||
public final fun component7 ()Z
|
||||
public final fun component8 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||
public final fun copy-cEjrTps (Ldev/inmo/tgbotapi/types/ChatIdentifier;JLjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;)Ldev/inmo/tgbotapi/requests/edit/caption/EditChatMessageCaption;
|
||||
public static synthetic fun copy-cEjrTps$default (Ldev/inmo/tgbotapi/requests/edit/caption/EditChatMessageCaption;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/edit/caption/EditChatMessageCaption;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String;
|
||||
public fun getChatId ()Ldev/inmo/tgbotapi/types/ChatIdentifier;
|
||||
@@ -4391,8 +4387,6 @@ public final class dev/inmo/tgbotapi/requests/edit/caption/EditInlineMessageCapt
|
||||
public final fun component2 ()Ljava/lang/String;
|
||||
public final fun component3 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component5 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||
public final fun copy-qSk9tD0 (Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;)Ldev/inmo/tgbotapi/requests/edit/caption/EditInlineMessageCaption;
|
||||
public static synthetic fun copy-qSk9tD0$default (Ldev/inmo/tgbotapi/requests/edit/caption/EditInlineMessageCaption;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/edit/caption/EditInlineMessageCaption;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
public fun getInlineMessageId-u1p_GH0 ()Ljava/lang/String;
|
||||
@@ -4852,8 +4846,6 @@ public final class dev/inmo/tgbotapi/requests/edit/text/EditChatMessageText : de
|
||||
public final fun component6-nXr5wdE ()Ljava/lang/String;
|
||||
public final fun component7 ()Ldev/inmo/tgbotapi/types/LinkPreviewOptions;
|
||||
public final fun component8 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||
public final fun copy-cEjrTps (Ldev/inmo/tgbotapi/types/ChatIdentifier;JLjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;)Ldev/inmo/tgbotapi/requests/edit/text/EditChatMessageText;
|
||||
public static synthetic fun copy-cEjrTps$default (Ldev/inmo/tgbotapi/requests/edit/text/EditChatMessageText;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/edit/text/EditChatMessageText;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String;
|
||||
public fun getChatId ()Ldev/inmo/tgbotapi/types/ChatIdentifier;
|
||||
@@ -4905,8 +4897,6 @@ public final class dev/inmo/tgbotapi/requests/edit/text/EditInlineMessageText :
|
||||
public final fun component5 ()Z
|
||||
public final fun component6 ()Ldev/inmo/tgbotapi/types/LinkPreviewOptions;
|
||||
public final fun component7 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||
public final fun copy-bH2Jftc (Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/LinkPreviewOptions;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;)Ldev/inmo/tgbotapi/requests/edit/text/EditInlineMessageText;
|
||||
public static synthetic fun copy-bH2Jftc$default (Ldev/inmo/tgbotapi/requests/edit/text/EditInlineMessageText;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/LinkPreviewOptions;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/edit/text/EditInlineMessageText;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDisableWebPagePreview ()Ljava/lang/Boolean;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -5373,8 +5363,6 @@ public final class dev/inmo/tgbotapi/requests/gifts/GiftPremiumSubscription : de
|
||||
public final fun component3 ()I
|
||||
public final fun component4 ()Ljava/lang/String;
|
||||
public final fun component5 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun copy-hWD7qso (JIILjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;)Ldev/inmo/tgbotapi/requests/gifts/GiftPremiumSubscription;
|
||||
public static synthetic fun copy-hWD7qso$default (Ldev/inmo/tgbotapi/requests/gifts/GiftPremiumSubscription;JIILjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/gifts/GiftPremiumSubscription;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
public final fun getMonthCount ()I
|
||||
@@ -5418,8 +5406,6 @@ public final class dev/inmo/tgbotapi/requests/gifts/SendGift : dev/inmo/tgbotapi
|
||||
public final fun component4 ()Ljava/lang/String;
|
||||
public final fun component5 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component7 ()Z
|
||||
public final fun copy-xmxulwY (Ldev/inmo/tgbotapi/types/ChatId;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Z)Ldev/inmo/tgbotapi/requests/gifts/SendGift;
|
||||
public static synthetic fun copy-xmxulwY$default (Ldev/inmo/tgbotapi/requests/gifts/SendGift;Ldev/inmo/tgbotapi/types/ChatId;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/gifts/SendGift;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun getChatId ()Ldev/inmo/tgbotapi/types/ChatIdentifier;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -5532,8 +5518,6 @@ public final class dev/inmo/tgbotapi/requests/send/CopyMessage : dev/inmo/tgbota
|
||||
public final fun component7 ()Z
|
||||
public final fun component8-S3HF-10 ()Ldev/inmo/tgbotapi/types/MessageThreadId;
|
||||
public final fun component9 ()Ljava/lang/Integer;
|
||||
public final fun copy-iAqBLco (Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/Integer;ZZZLdev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;)Ldev/inmo/tgbotapi/requests/send/CopyMessage;
|
||||
public static synthetic fun copy-iAqBLco$default (Ldev/inmo/tgbotapi/requests/send/CopyMessage;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/Integer;ZZZLdev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/CopyMessage;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getAllowPaidBroadcast ()Z
|
||||
public fun getAllowSendingWithoutReply ()Ljava/lang/Boolean;
|
||||
@@ -5999,8 +5983,6 @@ public final class dev/inmo/tgbotapi/requests/send/SendTextMessage : dev/inmo/tg
|
||||
public final fun component7 ()Ldev/inmo/tgbotapi/types/LinkPreviewOptions;
|
||||
public final fun component8 ()Z
|
||||
public final fun component9 ()Z
|
||||
public final fun copy-NChqpRY (Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;)Ldev/inmo/tgbotapi/requests/send/SendTextMessage;
|
||||
public static synthetic fun copy-NChqpRY$default (Ldev/inmo/tgbotapi/requests/send/SendTextMessage;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/SendTextMessage;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getAllowPaidBroadcast ()Z
|
||||
public fun getAllowSendingWithoutReply ()Ljava/lang/Boolean;
|
||||
@@ -6325,8 +6307,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendAnimationData : dev
|
||||
public final fun component7 ()Z
|
||||
public final fun component8 ()Z
|
||||
public final fun component9 ()Ljava/lang/Long;
|
||||
public final fun copy-k4bYsrE (Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZZLjava/lang/Long;Ljava/lang/Integer;Ljava/lang/Integer;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;)Ldev/inmo/tgbotapi/requests/send/media/SendAnimationData;
|
||||
public static synthetic fun copy-k4bYsrE$default (Ldev/inmo/tgbotapi/requests/send/media/SendAnimationData;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZZLjava/lang/Long;Ljava/lang/Integer;Ljava/lang/Integer;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendAnimationData;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getAllowPaidBroadcast ()Z
|
||||
public fun getAllowSendingWithoutReply ()Ljava/lang/Boolean;
|
||||
@@ -6387,8 +6367,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendAnimationFiles : ja
|
||||
public fun containsKey (Ljava/lang/String;)Z
|
||||
public fun containsValue (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Z
|
||||
public final fun containsValue (Ljava/lang/Object;)Z
|
||||
public final fun copy (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Ldev/inmo/tgbotapi/requests/send/media/SendAnimationFiles;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/requests/send/media/SendAnimationFiles;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendAnimationFiles;
|
||||
public final fun entrySet ()Ljava/util/Set;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun get (Ljava/lang/Object;)Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;
|
||||
@@ -6449,8 +6427,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendAudioData : dev/inm
|
||||
public final fun component7 ()Ljava/lang/Long;
|
||||
public final fun component8 ()Ljava/lang/String;
|
||||
public final fun component9 ()Ljava/lang/String;
|
||||
public final fun copy-fnMCT1Y (Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;)Ldev/inmo/tgbotapi/requests/send/media/SendAudioData;
|
||||
public static synthetic fun copy-fnMCT1Y$default (Ldev/inmo/tgbotapi/requests/send/media/SendAudioData;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendAudioData;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getAllowPaidBroadcast ()Z
|
||||
public fun getAllowSendingWithoutReply ()Ljava/lang/Boolean;
|
||||
@@ -6509,8 +6485,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendAudioFiles : java/u
|
||||
public fun containsKey (Ljava/lang/String;)Z
|
||||
public fun containsValue (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Z
|
||||
public final fun containsValue (Ljava/lang/Object;)Z
|
||||
public final fun copy (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Ldev/inmo/tgbotapi/requests/send/media/SendAudioFiles;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/requests/send/media/SendAudioFiles;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendAudioFiles;
|
||||
public final fun entrySet ()Ljava/util/Set;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun get (Ljava/lang/Object;)Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;
|
||||
@@ -6569,8 +6543,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendDocumentData : dev/
|
||||
public final fun component7-S3HF-10 ()Ldev/inmo/tgbotapi/types/MessageThreadId;
|
||||
public final fun component8-nXr5wdE ()Ljava/lang/String;
|
||||
public final fun component9 ()Z
|
||||
public final fun copy-CoeeeEM (Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/requests/send/media/SendDocumentData;
|
||||
public static synthetic fun copy-CoeeeEM$default (Ldev/inmo/tgbotapi/requests/send/media/SendDocumentData;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendDocumentData;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getAllowPaidBroadcast ()Z
|
||||
public fun getAllowSendingWithoutReply ()Ljava/lang/Boolean;
|
||||
@@ -6627,8 +6599,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendDocumentFiles : jav
|
||||
public fun containsKey (Ljava/lang/String;)Z
|
||||
public fun containsValue (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Z
|
||||
public final fun containsValue (Ljava/lang/Object;)Z
|
||||
public final fun copy (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Ldev/inmo/tgbotapi/requests/send/media/SendDocumentFiles;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/requests/send/media/SendDocumentFiles;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendDocumentFiles;
|
||||
public final fun entrySet ()Ljava/util/Set;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun get (Ljava/lang/Object;)Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;
|
||||
@@ -6682,8 +6652,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendMediaGroupData : de
|
||||
public final fun component7 ()Z
|
||||
public final fun component8-Ts0V7ak ()Ljava/lang/String;
|
||||
public final fun component9 ()Ldev/inmo/tgbotapi/types/ReplyParameters;
|
||||
public final fun copy-aWUkcs0 (Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/util/List;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;)Ldev/inmo/tgbotapi/requests/send/media/SendMediaGroupData;
|
||||
public static synthetic fun copy-aWUkcs0$default (Ldev/inmo/tgbotapi/requests/send/media/SendMediaGroupData;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/util/List;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendMediaGroupData;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getAllowPaidBroadcast ()Z
|
||||
public fun getAllowSendingWithoutReply ()Ljava/lang/Boolean;
|
||||
@@ -6731,8 +6699,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendMediaGroupFiles : j
|
||||
public fun containsKey (Ljava/lang/String;)Z
|
||||
public fun containsValue (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Z
|
||||
public final fun containsValue (Ljava/lang/Object;)Z
|
||||
public final fun copy (Ljava/util/List;)Ldev/inmo/tgbotapi/requests/send/media/SendMediaGroupFiles;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/requests/send/media/SendMediaGroupFiles;Ljava/util/List;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendMediaGroupFiles;
|
||||
public final fun entrySet ()Ljava/util/Set;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun get (Ljava/lang/Object;)Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;
|
||||
@@ -6795,8 +6761,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendPaidMediaData : dev
|
||||
public final fun component7-Y25QJn4 ()Ljava/lang/String;
|
||||
public final fun component8 ()Z
|
||||
public final fun component9-S3HF-10 ()Ldev/inmo/tgbotapi/types/MessageThreadId;
|
||||
public final fun copy-vxIIXgw (Ldev/inmo/tgbotapi/types/ChatIdentifier;ILjava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLdev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;)Ldev/inmo/tgbotapi/requests/send/media/SendPaidMediaData;
|
||||
public static synthetic fun copy-vxIIXgw$default (Ldev/inmo/tgbotapi/requests/send/media/SendPaidMediaData;Ldev/inmo/tgbotapi/types/ChatIdentifier;ILjava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLdev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendPaidMediaData;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getAllowPaidBroadcast ()Z
|
||||
public fun getAllowSendingWithoutReply ()Ljava/lang/Boolean;
|
||||
@@ -6852,8 +6816,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendPaidMediaFiles : ja
|
||||
public fun containsKey (Ljava/lang/String;)Z
|
||||
public fun containsValue (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Z
|
||||
public final fun containsValue (Ljava/lang/Object;)Z
|
||||
public final fun copy (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Ldev/inmo/tgbotapi/requests/send/media/SendPaidMediaFiles;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/requests/send/media/SendPaidMediaFiles;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendPaidMediaFiles;
|
||||
public final fun entrySet ()Ljava/util/Set;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun get (Ljava/lang/Object;)Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;
|
||||
@@ -6911,8 +6873,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendPhotoData : dev/inm
|
||||
public final fun component7 ()Z
|
||||
public final fun component8-S3HF-10 ()Ldev/inmo/tgbotapi/types/MessageThreadId;
|
||||
public final fun component9-nXr5wdE ()Ljava/lang/String;
|
||||
public final fun copy-274AP-Q (Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZZLdev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;)Ldev/inmo/tgbotapi/requests/send/media/SendPhotoData;
|
||||
public static synthetic fun copy-274AP-Q$default (Ldev/inmo/tgbotapi/requests/send/media/SendPhotoData;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZZLdev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendPhotoData;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getAllowPaidBroadcast ()Z
|
||||
public fun getAllowSendingWithoutReply ()Ljava/lang/Boolean;
|
||||
@@ -6967,8 +6927,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendPhotoFiles : java/u
|
||||
public fun containsKey (Ljava/lang/String;)Z
|
||||
public fun containsValue (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Z
|
||||
public final fun containsValue (Ljava/lang/Object;)Z
|
||||
public final fun copy (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Ldev/inmo/tgbotapi/requests/send/media/SendPhotoFiles;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/requests/send/media/SendPhotoFiles;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendPhotoFiles;
|
||||
public final fun entrySet ()Ljava/util/Set;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun get (Ljava/lang/Object;)Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;
|
||||
@@ -7023,8 +6981,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendStickerByFileId : d
|
||||
public final fun component7 ()Z
|
||||
public final fun component8 ()Z
|
||||
public final fun component9-Ts0V7ak ()Ljava/lang/String;
|
||||
public final fun copy-S2mil8w (Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;)Ldev/inmo/tgbotapi/requests/send/media/SendStickerByFileId;
|
||||
public static synthetic fun copy-S2mil8w$default (Ldev/inmo/tgbotapi/requests/send/media/SendStickerByFileId;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendStickerByFileId;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getAllowPaidBroadcast ()Z
|
||||
public fun getAllowSendingWithoutReply ()Ljava/lang/Boolean;
|
||||
@@ -7090,8 +7046,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendVideoData : dev/inm
|
||||
public final fun component6 ()Ljava/lang/String;
|
||||
public final fun component7 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component9 ()Z
|
||||
public final fun copy-2N3v4LM (Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/Integer;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZZLjava/lang/Long;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;)Ldev/inmo/tgbotapi/requests/send/media/SendVideoData;
|
||||
public static synthetic fun copy-2N3v4LM$default (Ldev/inmo/tgbotapi/requests/send/media/SendVideoData;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/Integer;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZZLjava/lang/Long;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendVideoData;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getAllowPaidBroadcast ()Z
|
||||
public fun getAllowSendingWithoutReply ()Ljava/lang/Boolean;
|
||||
@@ -7155,8 +7109,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendVideoFiles : java/u
|
||||
public fun containsKey (Ljava/lang/String;)Z
|
||||
public fun containsValue (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Z
|
||||
public final fun containsValue (Ljava/lang/Object;)Z
|
||||
public final fun copy (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Ldev/inmo/tgbotapi/requests/send/media/SendVideoFiles;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/requests/send/media/SendVideoFiles;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendVideoFiles;
|
||||
public final fun entrySet ()Ljava/util/Set;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun get (Ljava/lang/Object;)Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;
|
||||
@@ -7214,8 +7166,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendVideoNoteData : dev
|
||||
public final fun component7-nXr5wdE ()Ljava/lang/String;
|
||||
public final fun component8 ()Z
|
||||
public final fun component9 ()Z
|
||||
public final fun copy-e6jUd8c (Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Integer;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;)Ldev/inmo/tgbotapi/requests/send/media/SendVideoNoteData;
|
||||
public static synthetic fun copy-e6jUd8c$default (Ldev/inmo/tgbotapi/requests/send/media/SendVideoNoteData;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Integer;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendVideoNoteData;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getAllowPaidBroadcast ()Z
|
||||
public fun getAllowSendingWithoutReply ()Ljava/lang/Boolean;
|
||||
@@ -7270,8 +7220,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendVideoNoteFiles : ja
|
||||
public fun containsKey (Ljava/lang/String;)Z
|
||||
public fun containsValue (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Z
|
||||
public final fun containsValue (Ljava/lang/Object;)Z
|
||||
public final fun copy (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Ldev/inmo/tgbotapi/requests/send/media/SendVideoNoteFiles;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/requests/send/media/SendVideoNoteFiles;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendVideoNoteFiles;
|
||||
public final fun entrySet ()Ljava/util/Set;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun get (Ljava/lang/Object;)Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;
|
||||
@@ -7327,8 +7275,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendVoiceData : dev/inm
|
||||
public final fun component7-S3HF-10 ()Ldev/inmo/tgbotapi/types/MessageThreadId;
|
||||
public final fun component8-nXr5wdE ()Ljava/lang/String;
|
||||
public final fun component9 ()Z
|
||||
public final fun copy-5jCUU4o (Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/lang/Long;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;)Ldev/inmo/tgbotapi/requests/send/media/SendVoiceData;
|
||||
public static synthetic fun copy-5jCUU4o$default (Ldev/inmo/tgbotapi/requests/send/media/SendVoiceData;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/lang/Long;Ldev/inmo/tgbotapi/types/MessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendVoiceData;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getAllowPaidBroadcast ()Z
|
||||
public fun getAllowSendingWithoutReply ()Ljava/lang/Boolean;
|
||||
@@ -7384,8 +7330,6 @@ public final class dev/inmo/tgbotapi/requests/send/media/SendVoiceFiles : java/u
|
||||
public fun containsKey (Ljava/lang/String;)Z
|
||||
public fun containsValue (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Z
|
||||
public final fun containsValue (Ljava/lang/Object;)Z
|
||||
public final fun copy (Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;)Ldev/inmo/tgbotapi/requests/send/media/SendVoiceFiles;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/requests/send/media/SendVoiceFiles;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/send/media/SendVoiceFiles;
|
||||
public final fun entrySet ()Ljava/util/Set;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun get (Ljava/lang/Object;)Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;
|
||||
@@ -7812,8 +7756,6 @@ public final class dev/inmo/tgbotapi/requests/stickers/AddStickerToSetData : dev
|
||||
public final fun component1-tHkBKVM ()J
|
||||
public final fun component2-KVV53SM ()Ljava/lang/String;
|
||||
public final fun component3 ()Ldev/inmo/tgbotapi/requests/stickers/InputSticker;
|
||||
public final fun copy-FKW6xZo (JLjava/lang/String;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;)Ldev/inmo/tgbotapi/requests/stickers/AddStickerToSetData;
|
||||
public static synthetic fun copy-FKW6xZo$default (Ldev/inmo/tgbotapi/requests/stickers/AddStickerToSetData;JLjava/lang/String;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/stickers/AddStickerToSetData;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getName-KVV53SM ()Ljava/lang/String;
|
||||
public fun getNewSticker ()Ldev/inmo/tgbotapi/requests/stickers/InputSticker;
|
||||
@@ -7990,8 +7932,6 @@ public final class dev/inmo/tgbotapi/requests/stickers/CreateNewStickerSet$Surro
|
||||
public final fun component4 ()Ljava/util/List;
|
||||
public final fun component5 ()Ldev/inmo/tgbotapi/types/StickerType;
|
||||
public final fun component6 ()Ljava/lang/Boolean;
|
||||
public final fun copy-zj6nCqY (JLjava/lang/String;Ljava/lang/String;Ljava/util/List;Ldev/inmo/tgbotapi/types/StickerType;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/requests/stickers/CreateNewStickerSet$SurrogateCreateNewSticker;
|
||||
public static synthetic fun copy-zj6nCqY$default (Ldev/inmo/tgbotapi/requests/stickers/CreateNewStickerSet$SurrogateCreateNewSticker;JLjava/lang/String;Ljava/lang/String;Ljava/util/List;Ldev/inmo/tgbotapi/types/StickerType;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/stickers/CreateNewStickerSet$SurrogateCreateNewSticker;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getName-KVV53SM ()Ljava/lang/String;
|
||||
public final fun getNeedsRepainting ()Ljava/lang/Boolean;
|
||||
@@ -8224,8 +8164,6 @@ public final class dev/inmo/tgbotapi/requests/stickers/InputStickerSerializer$Su
|
||||
public final fun component3 ()Ljava/util/List;
|
||||
public final fun component4 ()Ljava/util/List;
|
||||
public final fun component5 ()Ldev/inmo/tgbotapi/types/stickers/MaskPosition;
|
||||
public final fun copy (Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Ldev/inmo/tgbotapi/types/StickerType;)Ldev/inmo/tgbotapi/requests/stickers/InputStickerSerializer$SurrogateInputSticker;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/requests/stickers/InputStickerSerializer$SurrogateInputSticker;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Ldev/inmo/tgbotapi/types/StickerType;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/stickers/InputStickerSerializer$SurrogateInputSticker;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun getEmojisList ()Ljava/util/List;
|
||||
public final fun getFormat ()Ldev/inmo/tgbotapi/types/StickerFormat;
|
||||
@@ -8257,8 +8195,6 @@ public final class dev/inmo/tgbotapi/requests/stickers/ReplaceStickerInSetData :
|
||||
public final fun component2-KVV53SM ()Ljava/lang/String;
|
||||
public final fun component3 ()Ldev/inmo/tgbotapi/requests/abstracts/FileId;
|
||||
public final fun component4 ()Ldev/inmo/tgbotapi/requests/stickers/InputSticker;
|
||||
public final fun copy-ekB4Uzg (JLjava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;)Ldev/inmo/tgbotapi/requests/stickers/ReplaceStickerInSetData;
|
||||
public static synthetic fun copy-ekB4Uzg$default (Ldev/inmo/tgbotapi/requests/stickers/ReplaceStickerInSetData;JLjava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/stickers/ReplaceStickerInSetData;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getName-KVV53SM ()Ljava/lang/String;
|
||||
public fun getNewSticker ()Ldev/inmo/tgbotapi/requests/stickers/InputSticker;
|
||||
@@ -8652,8 +8588,6 @@ public final class dev/inmo/tgbotapi/requests/stories/EditStory : dev/inmo/tgbot
|
||||
public final fun component4 ()Ljava/lang/String;
|
||||
public final fun component5 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component7 ()Ljava/util/List;
|
||||
public final fun copy-isQzPXY (Ljava/lang/String;JLdev/inmo/tgbotapi/types/stories/InputStoryContent;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/util/List;)Ldev/inmo/tgbotapi/requests/stories/EditStory;
|
||||
public static synthetic fun copy-isQzPXY$default (Ldev/inmo/tgbotapi/requests/stories/EditStory;Ljava/lang/String;JLdev/inmo/tgbotapi/types/stories/InputStoryContent;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/util/List;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/stories/EditStory;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun getAreas ()Ljava/util/List;
|
||||
public fun getBusinessConnectionId-T-_HSQI ()Ljava/lang/String;
|
||||
@@ -8709,8 +8643,6 @@ public final class dev/inmo/tgbotapi/requests/stories/PostStory : dev/inmo/tgbot
|
||||
public final fun component7 ()Ljava/util/List;
|
||||
public final fun component8 ()Z
|
||||
public final fun component9 ()Z
|
||||
public final fun copy-beo5bKg (Ljava/lang/String;Ldev/inmo/tgbotapi/types/stories/InputStoryContent;ILjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/util/List;ZZ)Ldev/inmo/tgbotapi/requests/stories/PostStory;
|
||||
public static synthetic fun copy-beo5bKg$default (Ldev/inmo/tgbotapi/requests/stories/PostStory;Ljava/lang/String;Ldev/inmo/tgbotapi/types/stories/InputStoryContent;ILjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/util/List;ZZILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/stories/PostStory;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun getActivePeriod ()I
|
||||
public final fun getAreas ()Ljava/util/List;
|
||||
@@ -8938,8 +8870,6 @@ public final class dev/inmo/tgbotapi/requests/webhook/SetWebhook : dev/inmo/tgbo
|
||||
public final fun component5 ()Ljava/util/List;
|
||||
public final fun component6 ()Ljava/lang/Boolean;
|
||||
public final fun component7 ()Ljava/lang/String;
|
||||
public final fun copy (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/util/List;Ljava/lang/Boolean;Ljava/lang/String;)Ldev/inmo/tgbotapi/requests/webhook/SetWebhook;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/requests/webhook/SetWebhook;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/util/List;Ljava/lang/Boolean;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/webhook/SetWebhook;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun getAllowedUpdates ()Ljava/util/List;
|
||||
public final fun getCertificateFile ()Ljava/lang/String;
|
||||
@@ -10940,8 +10870,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
||||
public final fun component4 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component6 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||
public final fun component7 ()Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;
|
||||
public final fun copy-bK9-QN0 (Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultAudioCachedImpl;
|
||||
public static synthetic fun copy-bK9-QN0$default (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultAudioCachedImpl;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultAudioCachedImpl;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
public fun getFileId ()Ldev/inmo/tgbotapi/requests/abstracts/FileId;
|
||||
@@ -10990,8 +10918,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
||||
public final fun component6 ()Ljava/lang/String;
|
||||
public final fun component7 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component9 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||
public final fun copy-mRbB0zs (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultAudioImpl;
|
||||
public static synthetic fun copy-mRbB0zs$default (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultAudioImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultAudioImpl;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDuration ()Ljava/lang/Integer;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -11089,8 +11015,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
||||
public final fun component6 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component8 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||
public final fun component9 ()Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;
|
||||
public final fun copy-L6b5ui0 (Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultDocumentCachedImpl;
|
||||
public static synthetic fun copy-L6b5ui0$default (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultDocumentCachedImpl;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultDocumentCachedImpl;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDescription ()Ljava/lang/String;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -11144,8 +11068,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
||||
public final fun component7 ()Ljava/lang/Integer;
|
||||
public final fun component8 ()Ljava/lang/String;
|
||||
public final fun component9 ()Ljava/lang/String;
|
||||
public final fun copy-BXzB6xg (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/utils/MimeType;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultDocumentImpl;
|
||||
public static synthetic fun copy-BXzB6xg$default (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultDocumentImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/utils/MimeType;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultDocumentImpl;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDescription ()Ljava/lang/String;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -11224,8 +11146,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
||||
public final fun component7 ()Z
|
||||
public final fun component8 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||
public final fun component9 ()Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;
|
||||
public final fun copy-L6b5ui0 (Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultGifCachedImpl;
|
||||
public static synthetic fun copy-L6b5ui0$default (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultGifCachedImpl;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultGifCachedImpl;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
public fun getFileId ()Ldev/inmo/tgbotapi/requests/abstracts/FileId;
|
||||
@@ -11280,8 +11200,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
||||
public final fun component7 ()Ljava/lang/Integer;
|
||||
public final fun component8 ()Ljava/lang/String;
|
||||
public final fun component9 ()Ljava/lang/String;
|
||||
public final fun copy-Vi6B_GQ (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/utils/MimeType;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultGifImpl;
|
||||
public static synthetic fun copy-Vi6B_GQ$default (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultGifImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/utils/MimeType;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultGifImpl;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDuration ()Ljava/lang/Integer;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -11393,8 +11311,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
||||
public final fun component7 ()Z
|
||||
public final fun component8 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||
public final fun component9 ()Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;
|
||||
public final fun copy-L6b5ui0 (Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultMpeg4GifCachedImpl;
|
||||
public static synthetic fun copy-L6b5ui0$default (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultMpeg4GifCachedImpl;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultMpeg4GifCachedImpl;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
public fun getFileId ()Ldev/inmo/tgbotapi/requests/abstracts/FileId;
|
||||
@@ -11449,8 +11365,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
||||
public final fun component7 ()Ljava/lang/Integer;
|
||||
public final fun component8 ()Ljava/lang/String;
|
||||
public final fun component9 ()Ljava/lang/String;
|
||||
public final fun copy-Vi6B_GQ (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/utils/MimeType;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultMpeg4GifImpl;
|
||||
public static synthetic fun copy-Vi6B_GQ$default (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultMpeg4GifImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/utils/MimeType;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultMpeg4GifImpl;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDuration ()Ljava/lang/Integer;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -11506,8 +11420,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
||||
public final fun component6 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component8 ()Z
|
||||
public final fun component9 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||
public final fun copy-mRbB0zs (Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultPhotoCachedImpl;
|
||||
public static synthetic fun copy-mRbB0zs$default (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultPhotoCachedImpl;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultPhotoCachedImpl;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDescription ()Ljava/lang/String;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -11562,8 +11474,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
||||
public final fun component7 ()Ljava/lang/String;
|
||||
public final fun component8 ()Ljava/lang/String;
|
||||
public final fun component9 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun copy-BXzB6xg (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultPhotoImpl;
|
||||
public static synthetic fun copy-BXzB6xg$default (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultPhotoImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultPhotoImpl;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDescription ()Ljava/lang/String;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -11708,8 +11618,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
||||
public final fun component6 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component8 ()Z
|
||||
public final fun component9 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||
public final fun copy-mRbB0zs (Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultVideoCachedImpl;
|
||||
public static synthetic fun copy-mRbB0zs$default (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultVideoCachedImpl;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultVideoCachedImpl;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDescription ()Ljava/lang/String;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -11766,8 +11674,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
||||
public final fun component7 ()Ljava/lang/Integer;
|
||||
public final fun component8 ()Ljava/lang/Integer;
|
||||
public final fun component9 ()Ljava/lang/String;
|
||||
public final fun copy-qXbAnbE (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/utils/MimeType;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultVideoImpl;
|
||||
public static synthetic fun copy-qXbAnbE$default (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultVideoImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/utils/MimeType;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultVideoImpl;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDescription ()Ljava/lang/String;
|
||||
public fun getDuration ()Ljava/lang/Integer;
|
||||
@@ -11822,8 +11728,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
||||
public final fun component5 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component7 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||
public final fun component8 ()Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;
|
||||
public final fun copy-3XIVVSw (Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultVoiceCachedImpl;
|
||||
public static synthetic fun copy-3XIVVSw$default (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultVoiceCachedImpl;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultVoiceCachedImpl;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
public fun getFileId ()Ldev/inmo/tgbotapi/requests/abstracts/FileId;
|
||||
@@ -11872,8 +11776,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/Inlin
|
||||
public final fun component6 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component8 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||
public final fun component9 ()Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;
|
||||
public final fun copy-L6b5ui0 (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultVoiceImpl;
|
||||
public static synthetic fun copy-L6b5ui0$default (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultVoiceImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputMessageContent;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultVoiceImpl;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDuration ()Ljava/lang/Integer;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -12289,8 +12191,6 @@ public final class dev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/Inp
|
||||
public final fun component1 ()Ljava/lang/String;
|
||||
public final fun component2 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component4 ()Ldev/inmo/tgbotapi/types/LinkPreviewOptions;
|
||||
public final fun copy (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;)Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputTextMessageContent;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputTextMessageContent;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/InlineQueries/InputMessageContent/InputTextMessageContent;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDisableWebPagePreview ()Ljava/lang/Boolean;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -13274,8 +13174,6 @@ public final class dev/inmo/tgbotapi/types/ReplyParameters : dev/inmo/tgbotapi/a
|
||||
public final fun component4 ()Ljava/lang/String;
|
||||
public final fun component5 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component7 ()Ljava/lang/Integer;
|
||||
public final fun copy-JOF9uy8 (Ldev/inmo/tgbotapi/types/ChatIdentifier;JLjava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/lang/Integer;)Ldev/inmo/tgbotapi/types/ReplyParameters;
|
||||
public static synthetic fun copy-JOF9uy8$default (Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLjava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/lang/Integer;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/ReplyParameters;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun getAllowSendingWithoutReply ()Ljava/lang/Boolean;
|
||||
public final fun getChatIdentifier ()Ldev/inmo/tgbotapi/types/ChatIdentifier;
|
||||
@@ -13716,8 +13614,6 @@ public final class dev/inmo/tgbotapi/types/TextQuote : dev/inmo/tgbotapi/abstrac
|
||||
public final fun component1 ()Ljava/lang/String;
|
||||
public final fun component2 ()I
|
||||
public final fun component4 ()Z
|
||||
public final fun copy (Ljava/lang/String;ILjava/util/List;Z)Ldev/inmo/tgbotapi/types/TextQuote;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/TextQuote;Ljava/lang/String;ILjava/util/List;ZILjava/lang/Object;)Ldev/inmo/tgbotapi/types/TextQuote;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun getPosition ()I
|
||||
public fun getText ()Ljava/lang/String;
|
||||
@@ -15765,8 +15661,6 @@ public final class dev/inmo/tgbotapi/types/buttons/UnknownKeyboardButton : dev/i
|
||||
public static final field Companion Ldev/inmo/tgbotapi/types/buttons/UnknownKeyboardButton$Companion;
|
||||
public final fun component1 ()Ljava/lang/String;
|
||||
public final fun component2 ()Ljava/lang/String;
|
||||
public final fun copy (Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/UnknownKeyboardButton;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/buttons/UnknownKeyboardButton;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/UnknownKeyboardButton;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun getRaw ()Ljava/lang/String;
|
||||
public fun getText ()Ljava/lang/String;
|
||||
@@ -16142,8 +16036,6 @@ public final class dev/inmo/tgbotapi/types/chat/ChatMessageReactionUpdated$Surro
|
||||
public final fun component5 ()Ldev/inmo/tgbotapi/types/TelegramDate;
|
||||
public final fun component6 ()Ljava/util/List;
|
||||
public final fun component7 ()Ljava/util/List;
|
||||
public final fun copy-JOF9uy8 (Ldev/inmo/tgbotapi/types/chat/PreviewChat;JLdev/inmo/tgbotapi/types/chat/PreviewUser;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/util/List;Ljava/util/List;)Ldev/inmo/tgbotapi/types/chat/ChatMessageReactionUpdated$Surrogate;
|
||||
public static synthetic fun copy-JOF9uy8$default (Ldev/inmo/tgbotapi/types/chat/ChatMessageReactionUpdated$Surrogate;Ldev/inmo/tgbotapi/types/chat/PreviewChat;JLdev/inmo/tgbotapi/types/chat/PreviewUser;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/util/List;Ljava/util/List;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/chat/ChatMessageReactionUpdated$Surrogate;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat;
|
||||
public final fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate;
|
||||
@@ -16414,8 +16306,11 @@ public abstract class dev/inmo/tgbotapi/types/chat/ChatType {
|
||||
|
||||
public final class dev/inmo/tgbotapi/types/chat/ChatType$Channel : dev/inmo/tgbotapi/types/chat/ChatType {
|
||||
public static final field INSTANCE Ldev/inmo/tgbotapi/types/chat/ChatType$Channel;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getStringified ()Ljava/lang/String;
|
||||
public fun hashCode ()I
|
||||
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
||||
public fun toString ()Ljava/lang/String;
|
||||
}
|
||||
|
||||
public final class dev/inmo/tgbotapi/types/chat/ChatType$Companion {
|
||||
@@ -16424,32 +16319,50 @@ public final class dev/inmo/tgbotapi/types/chat/ChatType$Companion {
|
||||
|
||||
public final class dev/inmo/tgbotapi/types/chat/ChatType$Group : dev/inmo/tgbotapi/types/chat/ChatType {
|
||||
public static final field INSTANCE Ldev/inmo/tgbotapi/types/chat/ChatType$Group;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getStringified ()Ljava/lang/String;
|
||||
public fun hashCode ()I
|
||||
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
||||
public fun toString ()Ljava/lang/String;
|
||||
}
|
||||
|
||||
public final class dev/inmo/tgbotapi/types/chat/ChatType$Private : dev/inmo/tgbotapi/types/chat/ChatType {
|
||||
public static final field INSTANCE Ldev/inmo/tgbotapi/types/chat/ChatType$Private;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getStringified ()Ljava/lang/String;
|
||||
public fun hashCode ()I
|
||||
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
||||
public fun toString ()Ljava/lang/String;
|
||||
}
|
||||
|
||||
public final class dev/inmo/tgbotapi/types/chat/ChatType$Sender : dev/inmo/tgbotapi/types/chat/ChatType {
|
||||
public static final field INSTANCE Ldev/inmo/tgbotapi/types/chat/ChatType$Sender;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getStringified ()Ljava/lang/String;
|
||||
public fun hashCode ()I
|
||||
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
||||
public fun toString ()Ljava/lang/String;
|
||||
}
|
||||
|
||||
public final class dev/inmo/tgbotapi/types/chat/ChatType$Supergroup : dev/inmo/tgbotapi/types/chat/ChatType {
|
||||
public static final field INSTANCE Ldev/inmo/tgbotapi/types/chat/ChatType$Supergroup;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getStringified ()Ljava/lang/String;
|
||||
public fun hashCode ()I
|
||||
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
||||
public fun toString ()Ljava/lang/String;
|
||||
}
|
||||
|
||||
public final class dev/inmo/tgbotapi/types/chat/ChatType$Unknown : dev/inmo/tgbotapi/types/chat/ChatType {
|
||||
public static final field Companion Ldev/inmo/tgbotapi/types/chat/ChatType$Unknown$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/chat/ChatType$Unknown;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/chat/ChatType$Unknown;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/chat/ChatType$Unknown;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getStringified ()Ljava/lang/String;
|
||||
public fun hashCode ()I
|
||||
public fun toString ()Ljava/lang/String;
|
||||
}
|
||||
|
||||
public final class dev/inmo/tgbotapi/types/chat/ChatType$Unknown$Companion {
|
||||
@@ -18588,8 +18501,6 @@ public abstract interface class dev/inmo/tgbotapi/types/commands/ChatBotCommandS
|
||||
public final class dev/inmo/tgbotapi/types/commands/UnknownBotCommandScope : dev/inmo/tgbotapi/types/commands/BotCommandScope {
|
||||
public static final field Companion Ldev/inmo/tgbotapi/types/commands/UnknownBotCommandScope$Companion;
|
||||
public final fun component1 ()Ljava/lang/String;
|
||||
public final fun copy (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/commands/UnknownBotCommandScope;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/commands/UnknownBotCommandScope;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/commands/UnknownBotCommandScope;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getType ()Ljava/lang/String;
|
||||
public fun hashCode ()I
|
||||
@@ -21155,8 +21066,6 @@ public final class dev/inmo/tgbotapi/types/media/TelegramMediaAnimation : dev/in
|
||||
public final fun component7 ()Ljava/lang/Integer;
|
||||
public final fun component8 ()Ljava/lang/Integer;
|
||||
public final fun component9 ()Ljava/lang/Long;
|
||||
public final fun copy (Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZZLjava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Long;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;)Ldev/inmo/tgbotapi/types/media/TelegramMediaAnimation;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/media/TelegramMediaAnimation;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZZLjava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Long;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/media/TelegramMediaAnimation;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDuration ()Ljava/lang/Long;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -21206,8 +21115,6 @@ public final class dev/inmo/tgbotapi/types/media/TelegramMediaAudio : dev/inmo/t
|
||||
public final fun component6 ()Ljava/lang/String;
|
||||
public final fun component7 ()Ljava/lang/String;
|
||||
public final fun component8 ()Ldev/inmo/tgbotapi/requests/abstracts/InputFile;
|
||||
public final fun copy (Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;)Ldev/inmo/tgbotapi/types/media/TelegramMediaAudio;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/media/TelegramMediaAudio;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/media/TelegramMediaAudio;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDuration ()Ljava/lang/Long;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -21258,8 +21165,6 @@ public final class dev/inmo/tgbotapi/types/media/TelegramMediaDocument : dev/inm
|
||||
public final fun component3 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component5 ()Ldev/inmo/tgbotapi/requests/abstracts/InputFile;
|
||||
public final fun component6 ()Ljava/lang/Boolean;
|
||||
public final fun copy (Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/types/media/TelegramMediaDocument;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/media/TelegramMediaDocument;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/media/TelegramMediaDocument;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun getDisableContentTypeDetection ()Ljava/lang/Boolean;
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
@@ -21308,8 +21213,6 @@ public final class dev/inmo/tgbotapi/types/media/TelegramMediaPhoto : dev/inmo/t
|
||||
public final fun component3 ()Ldev/inmo/tgbotapi/types/message/ParseMode;
|
||||
public final fun component5 ()Z
|
||||
public final fun component6 ()Z
|
||||
public final fun copy (Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZZ)Ldev/inmo/tgbotapi/types/media/TelegramMediaPhoto;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/media/TelegramMediaPhoto;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZZILjava/lang/Object;)Ldev/inmo/tgbotapi/types/media/TelegramMediaPhoto;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getEntities ()Ljava/util/List;
|
||||
public fun getFile ()Ldev/inmo/tgbotapi/requests/abstracts/InputFile;
|
||||
@@ -21373,8 +21276,6 @@ public final class dev/inmo/tgbotapi/types/media/TelegramMediaVideo : dev/inmo/t
|
||||
public final fun component7 ()Ljava/lang/Integer;
|
||||
public final fun component8 ()Z
|
||||
public final fun component9 ()Ljava/lang/Integer;
|
||||
public final fun copy (Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Long;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;)Ldev/inmo/tgbotapi/types/media/TelegramMediaVideo;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/media/TelegramMediaVideo;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/util/List;ZLdev/inmo/tgbotapi/requests/abstracts/InputFile;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Long;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/media/TelegramMediaVideo;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getCover ()Ldev/inmo/tgbotapi/requests/abstracts/InputFile;
|
||||
public fun getDuration ()Ljava/lang/Long;
|
||||
@@ -22757,8 +22658,6 @@ public final class dev/inmo/tgbotapi/types/message/MessageOrigin$Unknown : dev/i
|
||||
public final fun component1 ()Ljava/lang/String;
|
||||
public final fun component2 ()Ldev/inmo/tgbotapi/types/TelegramDate;
|
||||
public final fun component3 ()Lkotlinx/serialization/json/JsonElement;
|
||||
public final fun copy (Ljava/lang/String;Ldev/inmo/tgbotapi/types/TelegramDate;Lkotlinx/serialization/json/JsonElement;)Ldev/inmo/tgbotapi/types/message/MessageOrigin$Unknown;
|
||||
public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/MessageOrigin$Unknown;Ljava/lang/String;Ldev/inmo/tgbotapi/types/TelegramDate;Lkotlinx/serialization/json/JsonElement;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/MessageOrigin$Unknown;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate;
|
||||
public final fun getSource ()Lkotlinx/serialization/json/JsonElement;
|
||||
@@ -28365,8 +28264,6 @@ public final class dev/inmo/tgbotapi/types/polls/UnknownPollType : dev/inmo/tgbo
|
||||
public final fun component6 ()Z
|
||||
public final fun component7 ()Z
|
||||
public final fun component8 ()Lkotlinx/serialization/json/JsonElement;
|
||||
public final fun copy-KILYFNk (Ljava/lang/String;Ljava/lang/String;Ljava/util/List;ILjava/util/List;ZZLkotlinx/serialization/json/JsonElement;)Ldev/inmo/tgbotapi/types/polls/UnknownPollType;
|
||||
public static synthetic fun copy-KILYFNk$default (Ldev/inmo/tgbotapi/types/polls/UnknownPollType;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;ILjava/util/List;ZZLkotlinx/serialization/json/JsonElement;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/polls/UnknownPollType;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public fun getId-S5FO_mE ()Ljava/lang/String;
|
||||
public fun getOptions ()Ljava/util/List;
|
||||
@@ -30794,6 +30691,13 @@ public final class dev/inmo/tgbotapi/utils/JSONKt {
|
||||
public static final fun withoutNulls (Lkotlinx/serialization/json/JsonObject;)Lkotlinx/serialization/json/JsonObject;
|
||||
}
|
||||
|
||||
public final class dev/inmo/tgbotapi/utils/LaunchWithBotLoggerKt {
|
||||
public static final fun launchWithBotLogger (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/Job;
|
||||
public static synthetic fun launchWithBotLogger$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||
public static final fun subscribeWithBotLogger (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Lkotlinx/coroutines/flow/Flow;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/Job;
|
||||
public static synthetic fun subscribeWithBotLogger$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Lkotlinx/coroutines/flow/Flow;Lkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||
}
|
||||
|
||||
public final class dev/inmo/tgbotapi/utils/LongRGBAFromHEXAColorSerializer : kotlinx/serialization/KSerializer {
|
||||
public static final field INSTANCE Ldev/inmo/tgbotapi/utils/LongRGBAFromHEXAColorSerializer;
|
||||
public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object;
|
||||
|
@@ -1,10 +1,13 @@
|
||||
@file:OptIn(ExperimentalCoroutinesApi::class)
|
||||
|
||||
package dev.inmo.tgbotapi.bot.exceptions
|
||||
|
||||
import korlibs.time.DateTime
|
||||
import dev.inmo.tgbotapi.types.Response
|
||||
import dev.inmo.tgbotapi.types.RetryAfterError
|
||||
import io.ktor.utils.io.errors.IOException
|
||||
import kotlinx.coroutines.CopyableThrowable
|
||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||
import kotlinx.io.IOException
|
||||
|
||||
fun newRequestException(
|
||||
response: Response,
|
||||
@@ -42,7 +45,7 @@ class CommonBotException(message: String = "Something went wrong", cause: Throwa
|
||||
override fun createCopy(): BotException = CommonBotException(message!!, cause)
|
||||
}
|
||||
|
||||
sealed class RequestException constructor(
|
||||
sealed class RequestException (
|
||||
val response: Response,
|
||||
val plainAnswer: String,
|
||||
message: String? = null,
|
||||
|
@@ -18,6 +18,7 @@ import kotlinx.serialization.json.Json
|
||||
* * On JS, JVM and MingwX64 platforms it is [dev.inmo.tgbotapi.bot.ktor.base.DefaultKtorRequestsExecutor]
|
||||
* * On LinuxX64 it is [dev.inmo.tgbotapi.bot.ktor.base.MultipleClientKtorRequestsExecutor]
|
||||
*/
|
||||
@Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
|
||||
expect class KtorRequestsExecutor internal constructor(
|
||||
telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper,
|
||||
client: HttpClient,
|
||||
@@ -52,5 +53,5 @@ fun KtorRequestsExecutor(
|
||||
jsonFormatter = jsonFormatter,
|
||||
pipelineStepsHolder = pipelineStepsHolder,
|
||||
logger = logger,
|
||||
diff = kotlin.Unit,
|
||||
diff = Unit,
|
||||
)
|
||||
|
@@ -3,7 +3,6 @@ package dev.inmo.tgbotapi.bot.ktor.base
|
||||
import dev.inmo.kslog.common.KSLog
|
||||
import dev.inmo.kslog.common.v
|
||||
import dev.inmo.kslog.common.w
|
||||
import dev.inmo.micro_utils.coroutines.runCatchingSafely
|
||||
import dev.inmo.tgbotapi.bot.ktor.KtorCallFactory
|
||||
import dev.inmo.tgbotapi.bot.exceptions.newRequestException
|
||||
import dev.inmo.tgbotapi.requests.GetUpdatesRequest
|
||||
@@ -73,7 +72,7 @@ abstract class AbstractRequestCallFactory(
|
||||
val responseObject = jsonFormatter.decodeFromString(Response.serializer(), content)
|
||||
logger.v { "Answer as json for $request: $responseObject" }
|
||||
|
||||
return runCatchingSafely {
|
||||
return runCatching {
|
||||
(responseObject.result?.let {
|
||||
jsonFormatter.decodeFromJsonElement(request.resultDeserializer, it)
|
||||
} ?: response.let {
|
||||
|
@@ -1,7 +1,6 @@
|
||||
package dev.inmo.tgbotapi.bot.ktor.base
|
||||
|
||||
import dev.inmo.kslog.common.*
|
||||
import dev.inmo.micro_utils.coroutines.runCatchingSafely
|
||||
import dev.inmo.tgbotapi.bot.BaseRequestsExecutor
|
||||
import dev.inmo.tgbotapi.bot.exceptions.BotException
|
||||
import dev.inmo.tgbotapi.bot.exceptions.CommonBotException
|
||||
@@ -83,7 +82,7 @@ class DefaultKtorRequestsExecutor internal constructor(
|
||||
|
||||
when (e) {
|
||||
is ClientRequestException -> {
|
||||
val exceptionResult = runCatchingSafely {
|
||||
val exceptionResult = runCatching {
|
||||
val content = e.response.bodyAsText()
|
||||
val responseObject = jsonFormatter.decodeFromString(Response.serializer(), content)
|
||||
newRequestException(
|
||||
|
@@ -24,11 +24,12 @@ object DownloadFileChannelRequestCallFactory : KtorCallFactory {
|
||||
): T? = (request as? DownloadFileStream) ?.let {
|
||||
val fullUrl = urlsKeeper.createFileLinkUrl(it.filePath)
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
ByteReadChannelAllocator {
|
||||
val scope = CoroutineScope(currentCoroutineContext() + SupervisorJob())
|
||||
val outChannel = ByteChannel()
|
||||
scope.launch {
|
||||
runCatchingSafely {
|
||||
runCatching {
|
||||
val response = client.get(fullUrl)
|
||||
val channel: ByteReadChannel = response.bodyAsChannel()
|
||||
channel.copyAndClose(outChannel)
|
||||
|
@@ -21,9 +21,7 @@ object DownloadFileRequestCallFactory : KtorCallFactory {
|
||||
): T? = (request as? DownloadFile)?.let {
|
||||
val fullUrl = urlsKeeper.createFileLinkUrl(it.filePath)
|
||||
|
||||
safely {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
client.get(fullUrl).readRawBytes() as T // always ByteArray
|
||||
}
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
client.get(fullUrl).readRawBytes() as T // always ByteArray
|
||||
}
|
||||
}
|
||||
|
@@ -1,7 +1,6 @@
|
||||
package dev.inmo.tgbotapi.bot.ktor.base
|
||||
|
||||
import dev.inmo.kslog.common.KSLog
|
||||
import dev.inmo.micro_utils.coroutines.runCatchingSafely
|
||||
import dev.inmo.tgbotapi.bot.BaseRequestsExecutor
|
||||
import dev.inmo.tgbotapi.bot.ktor.KtorCallFactory
|
||||
import dev.inmo.tgbotapi.bot.ktor.TelegramBotPipelinesHandler
|
||||
@@ -107,7 +106,7 @@ class MultipleClientKtorRequestsExecutor(
|
||||
|
||||
private suspend fun <T> withRequestExecutor(block: suspend (DefaultKtorRequestsExecutor) -> T): T {
|
||||
val requestsExecutor = prepareRequestsExecutor()
|
||||
val result = runCatchingSafely {
|
||||
val result = runCatching {
|
||||
block(requestsExecutor)
|
||||
}
|
||||
freeRequestsExecutor(requestsExecutor)
|
||||
|
@@ -35,6 +35,7 @@ open class TelegramBotMiddleware(
|
||||
) : TelegramBotPipelinesHandler {
|
||||
object ResultAbsence : Throwable()
|
||||
override suspend fun <T : Any> onRequestException(request: Request<T>, t: Throwable): T? {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
return onRequestException ?.invoke(request, t) as? T
|
||||
}
|
||||
|
||||
@@ -51,6 +52,7 @@ open class TelegramBotMiddleware(
|
||||
request: Request<T>,
|
||||
potentialFactory: KtorCallFactory
|
||||
): T? {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
return onAfterCallFactoryMakeCall ?.invoke(result, request, potentialFactory) as? T
|
||||
}
|
||||
|
||||
@@ -60,6 +62,7 @@ open class TelegramBotMiddleware(
|
||||
resultCallFactory: KtorCallFactory,
|
||||
callsFactories: List<KtorCallFactory>
|
||||
): T? {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
return onRequestResultPresented ?.invoke(result, request, resultCallFactory, callsFactories) as? T
|
||||
}
|
||||
|
||||
@@ -67,6 +70,7 @@ open class TelegramBotMiddleware(
|
||||
request: Request<T>,
|
||||
callsFactories: List<KtorCallFactory>
|
||||
): T? {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
return onRequestResultAbsent ?.invoke(request, callsFactories) as? T
|
||||
}
|
||||
|
||||
@@ -75,6 +79,7 @@ open class TelegramBotMiddleware(
|
||||
request: Request<T>,
|
||||
callsFactories: List<KtorCallFactory>
|
||||
): Result<T> {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
return onRequestReturnResult ?.invoke(result, request, callsFactories) as? Result<T> ?: Result.failure(ResultAbsence)
|
||||
}
|
||||
|
||||
|
@@ -1,6 +1,5 @@
|
||||
package dev.inmo.tgbotapi.bot.settings.limiters
|
||||
|
||||
import dev.inmo.micro_utils.coroutines.runCatchingSafely
|
||||
import dev.inmo.tgbotapi.bot.exceptions.TooMuchRequestsException
|
||||
import kotlinx.coroutines.delay
|
||||
|
||||
@@ -11,7 +10,7 @@ object ExceptionsOnlyLimiter : RequestLimiter {
|
||||
override suspend fun <T> limit(block: suspend () -> T): T {
|
||||
var result: Result<T>? = null
|
||||
while (result == null || result.isFailure) {
|
||||
result = runCatchingSafely {
|
||||
result = runCatching {
|
||||
block()
|
||||
}.onFailure {
|
||||
if (it is TooMuchRequestsException) {
|
||||
|
@@ -1,7 +1,8 @@
|
||||
@file:Suppress("unused", "RemoveExplicitTypeArguments")
|
||||
|
||||
package dev.inmo.tgbotapi.bot.settings.limiters
|
||||
|
||||
import dev.inmo.micro_utils.coroutines.actor
|
||||
import dev.inmo.micro_utils.coroutines.safely
|
||||
import dev.inmo.tgbotapi.types.MilliSeconds
|
||||
import kotlinx.coroutines.*
|
||||
import kotlinx.serialization.Serializable
|
||||
@@ -56,7 +57,7 @@ data class PowLimiter(
|
||||
}
|
||||
delay(delayMillis)
|
||||
return try {
|
||||
safely { block() }
|
||||
block()
|
||||
} finally {
|
||||
eventsChannel.send(CompleteRequest)
|
||||
}
|
||||
|
@@ -8,6 +8,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
|
||||
@Serializable
|
||||
data class SetPassportDataErrors(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
val user: UserId,
|
||||
@SerialName(errorsField)
|
||||
|
@@ -1,3 +1,6 @@
|
||||
@file:OptIn(ExperimentalSerializationApi::class)
|
||||
@file:Suppress("DEPRECATION") // for io.ktor.utils.io.core.ByteReadPacket
|
||||
|
||||
package dev.inmo.tgbotapi.requests.abstracts
|
||||
|
||||
import com.benasher44.uuid.uuid4
|
||||
@@ -70,6 +73,7 @@ internal inline val InputFile.fileIdToSend
|
||||
/**
|
||||
* Contains file id or file url
|
||||
*/
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@Serializable(InputFileSerializer::class)
|
||||
data class FileId(
|
||||
override val fileId: String
|
||||
@@ -92,6 +96,7 @@ object InputFileSerializer : KSerializer<InputFile> {
|
||||
*
|
||||
* @see asMultipartFile
|
||||
*/
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@Serializable(InputFileSerializer::class)
|
||||
data class MultipartFile (
|
||||
val filename: String,
|
||||
@@ -126,5 +131,5 @@ suspend inline fun ByteReadChannelAllocator.asMultipartFile(
|
||||
) = this.invoke().asMultipartFile(fileName)
|
||||
|
||||
expect fun MPPFile.asMultipartFile(): MultipartFile
|
||||
@Suppress("NOTHING_TO_INLINE")
|
||||
@Suppress("NOTHING_TO_INLINE", "unused")
|
||||
inline fun MPPFile.multipartFile() = asMultipartFile()
|
||||
|
@@ -1,7 +1,5 @@
|
||||
package dev.inmo.tgbotapi.requests.answers
|
||||
|
||||
import dev.inmo.micro_utils.common.Warning
|
||||
import dev.inmo.tgbotapi.types.StartParameter
|
||||
import dev.inmo.tgbotapi.types.startParameterField
|
||||
import dev.inmo.tgbotapi.types.textField
|
||||
import dev.inmo.tgbotapi.types.webAppField
|
||||
@@ -29,6 +27,7 @@ sealed interface InlineQueryResultsButton {
|
||||
val deepLinkParameter: String? = null
|
||||
)
|
||||
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@Serializable(InlineQueryResultsButtonSerializer::class)
|
||||
data class WebApp(
|
||||
@SerialName(textField)
|
||||
@@ -37,6 +36,7 @@ sealed interface InlineQueryResultsButton {
|
||||
val webAppInfo: WebAppInfo
|
||||
) : InlineQueryResultsButton
|
||||
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@Serializable(InlineQueryResultsButtonSerializer::class)
|
||||
data class Start(
|
||||
@SerialName(textField)
|
||||
@@ -45,6 +45,8 @@ sealed interface InlineQueryResultsButton {
|
||||
val deepLinkParameter: String
|
||||
) : InlineQueryResultsButton
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@Serializable(InlineQueryResultsButtonSerializer::class)
|
||||
data class Unknown internal constructor (
|
||||
@SerialName(textField)
|
||||
|
@@ -1,14 +1,14 @@
|
||||
@file:OptIn(ExperimentalSerializationApi::class)
|
||||
|
||||
package dev.inmo.tgbotapi.requests.business_connection
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.MultipartFile
|
||||
import dev.inmo.tgbotapi.types.DoubleSeconds
|
||||
import dev.inmo.tgbotapi.types.Seconds
|
||||
import dev.inmo.tgbotapi.types.StickerFormat
|
||||
import dev.inmo.tgbotapi.types.animationField
|
||||
import dev.inmo.tgbotapi.types.mainFrameTimestampField
|
||||
import dev.inmo.tgbotapi.types.photoField
|
||||
import dev.inmo.tgbotapi.utils.deserializeWithRaw
|
||||
import kotlinx.serialization.EncodeDefault
|
||||
import kotlinx.serialization.ExperimentalSerializationApi
|
||||
import kotlinx.serialization.KSerializer
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
@@ -23,6 +23,7 @@ sealed interface InputProfilePhoto {
|
||||
val mediaPair: Pair<String, MultipartFile>
|
||||
@Serializable
|
||||
data class Static(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(photoField)
|
||||
val photo: MultipartFile
|
||||
) : InputProfilePhoto {
|
||||
@@ -33,6 +34,7 @@ sealed interface InputProfilePhoto {
|
||||
}
|
||||
@Serializable
|
||||
data class Animated(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(animationField)
|
||||
val animation: MultipartFile,
|
||||
@SerialName(mainFrameTimestampField)
|
||||
|
@@ -19,6 +19,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
data class ReadBusinessMessage(
|
||||
@SerialName(businessConnectionIdField)
|
||||
override val businessConnectionId: BusinessConnectionId,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(chatIdField)
|
||||
val chatId: ChatId,
|
||||
@SerialName(messageIdField)
|
||||
|
@@ -2,21 +2,10 @@ package dev.inmo.tgbotapi.requests.business_connection
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.BusinessRequest
|
||||
import dev.inmo.tgbotapi.requests.abstracts.MultipartFile
|
||||
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||
import dev.inmo.tgbotapi.types.ChatId
|
||||
import dev.inmo.tgbotapi.types.MessageId
|
||||
import dev.inmo.tgbotapi.types.Username
|
||||
import dev.inmo.tgbotapi.types.businessConnectionIdField
|
||||
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
|
||||
import dev.inmo.tgbotapi.types.chatIdField
|
||||
import dev.inmo.tgbotapi.types.firstNameField
|
||||
import dev.inmo.tgbotapi.types.isPublicField
|
||||
import dev.inmo.tgbotapi.types.lastNameField
|
||||
import dev.inmo.tgbotapi.types.message.RawMessage
|
||||
import dev.inmo.tgbotapi.types.messageIdField
|
||||
import dev.inmo.tgbotapi.types.messageIdsField
|
||||
import dev.inmo.tgbotapi.types.photoField
|
||||
import dev.inmo.tgbotapi.types.usernameField
|
||||
import kotlinx.serialization.DeserializationStrategy
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
@@ -39,6 +28,7 @@ data class SetBusinessAccountProfilePhoto(
|
||||
override val requestSerializer: SerializationStrategy<*>
|
||||
get() = serializer()
|
||||
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
override val mediaMap: Map<String, MultipartFile> = mapOf(
|
||||
photo.mediaPair
|
||||
)
|
||||
|
@@ -20,6 +20,7 @@ data class TransferGift(
|
||||
override val businessConnectionId: BusinessConnectionId,
|
||||
@SerialName(ownedGiftIdField)
|
||||
val ownedGiftId: GiftId,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(newOwnerChatIdField)
|
||||
val newOwnerChatId: ChatId,
|
||||
@SerialName(starCountField)
|
||||
|
@@ -18,12 +18,13 @@ sealed interface ChatJoinRequestAnswer : SimpleRequest<Boolean> {
|
||||
|
||||
/**
|
||||
* Represent [approve](https://core.telegram.org/bots/api#approvechatjoinrequest) [ChatJoinRequestAnswer]. You may approve
|
||||
* the requests retrieved in with [ChatJoinRequest] (in [dev.inmo.tgbotapi.types.update.ChatJoinRequestUpdate])
|
||||
* the requests retrieved in with [dev.inmo.tgbotapi.types.chat.ChatJoinRequest] (in [dev.inmo.tgbotapi.types.update.ChatJoinRequestUpdate])
|
||||
*/
|
||||
@Serializable
|
||||
data class ApproveChatJoinRequest(
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: ChatIdentifier,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId
|
||||
) : ChatJoinRequestAnswer {
|
||||
@@ -35,12 +36,13 @@ data class ApproveChatJoinRequest(
|
||||
|
||||
/**
|
||||
* Represent [decline](https://core.telegram.org/bots/api#declinechatjoinrequest) [ChatJoinRequestAnswer]. You may approve
|
||||
* the requests retrieved in with [ChatJoinRequest] (in [dev.inmo.tgbotapi.types.update.ChatJoinRequestUpdate])
|
||||
* the requests retrieved in with [dev.inmo.tgbotapi.types.chat.ChatJoinRequest] (in [dev.inmo.tgbotapi.types.update.ChatJoinRequestUpdate])
|
||||
*/
|
||||
@Serializable
|
||||
data class DeclineChatJoinRequest(
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: ChatIdentifier,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId
|
||||
) : ChatJoinRequestAnswer {
|
||||
|
@@ -1,7 +1,9 @@
|
||||
@file:OptIn(ExperimentalSerializationApi::class)
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.requests.chat.invite_links
|
||||
|
||||
import dev.inmo.tgbotapi.abstracts.types.SubscriptionInfo
|
||||
import dev.inmo.tgbotapi.abstracts.types.SubscriptionPeriodInfo
|
||||
import korlibs.time.DateTime
|
||||
import dev.inmo.tgbotapi.requests.chat.abstracts.*
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
|
@@ -1,7 +1,9 @@
|
||||
@file:OptIn(ExperimentalSerializationApi::class)
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.requests.chat.invite_links
|
||||
|
||||
import korlibs.time.DateTime
|
||||
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||
import dev.inmo.tgbotapi.requests.chat.abstracts.*
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
import kotlinx.serialization.*
|
||||
|
@@ -10,6 +10,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
data class BanChatMember(
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: ChatIdentifier,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(untilDateField)
|
||||
|
@@ -12,6 +12,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
data class BanChatSenderChat(
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: ChatIdentifier,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(senderChatIdField)
|
||||
override val senderChatId: IdChatIdentifier
|
||||
) : ChatSenderRequest {
|
||||
|
@@ -10,6 +10,7 @@ import kotlinx.serialization.*
|
||||
data class GetChatMember(
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: ChatIdentifier,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId
|
||||
) : ChatMemberRequest<ChatMember> {
|
||||
|
@@ -12,6 +12,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
data class PromoteChatMember(
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: ChatIdentifier,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(untilDateField)
|
||||
|
@@ -11,6 +11,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
data class RestrictChatMember(
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: ChatIdentifier,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(untilDateField)
|
||||
|
@@ -9,6 +9,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
data class SetChatAdministratorCustomTitle(
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: ChatIdentifier,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(customTitleField)
|
||||
|
@@ -9,6 +9,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
data class UnbanChatMember(
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: ChatIdentifier,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(onlyIfBannedField)
|
||||
|
@@ -12,6 +12,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
data class UnbanChatSenderChat(
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: ChatIdentifier,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(senderChatIdField)
|
||||
override val senderChatId: IdChatIdentifier
|
||||
) : ChatSenderRequest {
|
||||
|
@@ -56,6 +56,7 @@ fun EditChatMessageCaption(
|
||||
replyMarkup = replyMarkup
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class EditChatMessageCaption internal constructor(
|
||||
@SerialName(chatIdField)
|
||||
|
@@ -37,6 +37,7 @@ fun EditInlineMessageCaption(
|
||||
replyMarkup
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class EditInlineMessageCaption internal constructor(
|
||||
@SerialName(inlineMessageIdField)
|
||||
|
@@ -23,6 +23,7 @@ data class EditChatMessageMedia(
|
||||
override val chatId: ChatIdentifier,
|
||||
@SerialName(messageIdField)
|
||||
override val messageId: MessageId,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(mediaField)
|
||||
override val media: TelegramFreeMedia,
|
||||
@SerialName(businessConnectionIdField)
|
||||
|
@@ -11,6 +11,7 @@ import kotlinx.serialization.*
|
||||
data class EditInlineMessageMedia(
|
||||
@SerialName(inlineMessageIdField)
|
||||
override val inlineMessageId: InlineMessageId,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(mediaField)
|
||||
override val media: TelegramFreeMedia,
|
||||
@SerialName(replyMarkupField)
|
||||
|
@@ -14,6 +14,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
|
||||
@Serializable
|
||||
data class EditUserStarSubscription(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
val userId: UserId,
|
||||
@SerialName(telegramPaymentChargeIdField)
|
||||
|
@@ -55,6 +55,7 @@ fun EditChatMessageText(
|
||||
replyMarkup
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class EditChatMessageText internal constructor(
|
||||
@SerialName(chatIdField)
|
||||
|
@@ -46,6 +46,7 @@ fun EditInlineMessageText(
|
||||
replyMarkup = replyMarkup
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class EditInlineMessageText internal constructor(
|
||||
@SerialName(inlineMessageIdField)
|
||||
|
@@ -7,8 +7,10 @@ import kotlinx.serialization.*
|
||||
|
||||
@Serializable
|
||||
data class GetGameHighScoresByChat (
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: IdChatIdentifier,
|
||||
@SerialName(messageIdField)
|
||||
|
@@ -7,6 +7,7 @@ import kotlinx.serialization.*
|
||||
|
||||
@Serializable
|
||||
data class GetGameHighScoresByInlineMessageId (
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(inlineMessageIdField)
|
||||
|
@@ -7,10 +7,12 @@ import kotlinx.serialization.*
|
||||
|
||||
@Serializable
|
||||
data class SetGameScoreByChatId (
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(scoreField)
|
||||
override val score: Long,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: IdChatIdentifier,
|
||||
@SerialName(messageIdField)
|
||||
|
@@ -7,6 +7,7 @@ import kotlinx.serialization.*
|
||||
|
||||
@Serializable
|
||||
data class SetGameScoreByInlineMessageId (
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(scoreField)
|
||||
|
@@ -7,6 +7,7 @@ import dev.inmo.tgbotapi.types.files.StickerSerializer
|
||||
import kotlinx.serialization.*
|
||||
import kotlinx.serialization.builtins.ListSerializer
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
internal val getCustomEmojiStickersResultSerializer = ListSerializer(StickerSerializer) as DeserializationStrategy<List<CustomEmojiSticker>>
|
||||
|
||||
@Serializable
|
||||
|
@@ -8,6 +8,7 @@ import kotlinx.serialization.*
|
||||
|
||||
@Serializable
|
||||
data class GetFile(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(fileIdField)
|
||||
val fileId: FileId
|
||||
): SimpleRequest<PathedFile> {
|
||||
|
@@ -13,6 +13,7 @@ import kotlinx.serialization.SerializationStrategy
|
||||
data class GetUserChatBoosts(
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: ChatIdentifier,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
val userId: UserId
|
||||
) : SimpleRequest<UserChatBoosts>, ChatRequest {
|
||||
|
@@ -6,6 +6,7 @@ import kotlinx.serialization.*
|
||||
|
||||
@Serializable
|
||||
data class GetUserProfilePhotos(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
val userId: UserId,
|
||||
@SerialName(offsetField)
|
||||
|
@@ -21,8 +21,10 @@ import kotlinx.serialization.Serializable
|
||||
import kotlinx.serialization.SerializationStrategy
|
||||
import kotlinx.serialization.builtins.serializer
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class GiftPremiumSubscription internal constructor(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
val userId: UserId,
|
||||
@SerialName(monthCountField)
|
||||
|
@@ -6,7 +6,6 @@ import dev.inmo.tgbotapi.types.*
|
||||
import dev.inmo.tgbotapi.types.message.ParseMode
|
||||
import dev.inmo.tgbotapi.types.message.RawMessageEntity
|
||||
import dev.inmo.tgbotapi.types.message.asTextSources
|
||||
import dev.inmo.tgbotapi.types.message.textsources.TextSource
|
||||
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
|
||||
import dev.inmo.tgbotapi.types.message.toRawMessageEntities
|
||||
import dev.inmo.tgbotapi.utils.extensions.makeSourceString
|
||||
@@ -16,8 +15,10 @@ import kotlinx.serialization.Serializable
|
||||
import kotlinx.serialization.SerializationStrategy
|
||||
import kotlinx.serialization.builtins.serializer
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SendGift internal constructor(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
val userId: UserId? = null,
|
||||
@SerialName(chatIdField)
|
||||
|
@@ -12,6 +12,7 @@ import kotlinx.serialization.SerializationStrategy
|
||||
|
||||
@Serializable
|
||||
data class SavePreparedInlineMessage(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
val userId: UserId,
|
||||
@Serializable(InlineQueryResultSerializer::class)
|
||||
|
@@ -1,8 +1,9 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.requests.send
|
||||
|
||||
import dev.inmo.tgbotapi.abstracts.TextedOutput
|
||||
import dev.inmo.tgbotapi.abstracts.WithCustomStartMediaData
|
||||
import dev.inmo.tgbotapi.abstracts.WithCustomizableCaption
|
||||
import dev.inmo.tgbotapi.abstracts.types.MessageAction
|
||||
import dev.inmo.tgbotapi.abstracts.types.ProtectContent
|
||||
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||
@@ -10,7 +11,6 @@ import dev.inmo.tgbotapi.requests.send.abstracts.OptionallyMessageThreadRequest
|
||||
import dev.inmo.tgbotapi.requests.send.abstracts.ReplyingMarkupSendMessageRequest
|
||||
import dev.inmo.tgbotapi.requests.send.abstracts.WithCustomizableCaptionRequest
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
|
||||
import dev.inmo.tgbotapi.types.message.textsources.TextSource
|
||||
import dev.inmo.tgbotapi.types.message.ParseMode
|
||||
import dev.inmo.tgbotapi.types.message.parseModeField
|
||||
@@ -143,6 +143,7 @@ fun CopyMessage(
|
||||
replyMarkup = replyMarkup
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class CopyMessage internal constructor(
|
||||
@SerialName(chatIdField)
|
||||
|
@@ -78,6 +78,7 @@ fun SendTextMessage(
|
||||
replyMarkup = replyMarkup
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SendTextMessage internal constructor(
|
||||
@SerialName(chatIdField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("FunctionName")
|
||||
|
||||
package dev.inmo.tgbotapi.requests.send.media
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.*
|
||||
@@ -133,6 +135,7 @@ fun SendAnimation(
|
||||
private val commonResultDeserializer: DeserializationStrategy<ContentMessage<AnimationContent>>
|
||||
= TelegramBotAPIMessageDeserializationStrategyClass()
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SendAnimationData internal constructor(
|
||||
@SerialName(chatIdField)
|
||||
@@ -202,6 +205,8 @@ data class SendAnimationData internal constructor(
|
||||
get() = serializer()
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
@ConsistentCopyVisibility
|
||||
data class SendAnimationFiles internal constructor(
|
||||
val animation: MultipartFile? = null,
|
||||
val thumbnail: MultipartFile? = null
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("FunctionName")
|
||||
|
||||
package dev.inmo.tgbotapi.requests.send.media
|
||||
|
||||
import dev.inmo.tgbotapi.abstracts.Performerable
|
||||
@@ -126,6 +128,7 @@ fun SendAudio(
|
||||
private val commonResultDeserializer: DeserializationStrategy<ContentMessage<AudioContent>>
|
||||
= TelegramBotAPIMessageDeserializationStrategyClass()
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SendAudioData internal constructor(
|
||||
@SerialName(chatIdField)
|
||||
@@ -190,6 +193,8 @@ data class SendAudioData internal constructor(
|
||||
get() = serializer()
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
@ConsistentCopyVisibility
|
||||
data class SendAudioFiles internal constructor(
|
||||
val audio: MultipartFile? = null,
|
||||
val thumbnail: MultipartFile? = null
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused", "FunctionName")
|
||||
|
||||
package dev.inmo.tgbotapi.requests.send.media
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.*
|
||||
@@ -144,6 +146,7 @@ private val commonResultDeserializer: DeserializationStrategy<ContentMessage<Doc
|
||||
* @see ContentMessage
|
||||
* @see DocumentContent
|
||||
*/
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SendDocumentData internal constructor(
|
||||
@SerialName(chatIdField)
|
||||
@@ -201,6 +204,7 @@ data class SendDocumentData internal constructor(
|
||||
get() = serializer()
|
||||
}
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
data class SendDocumentFiles internal constructor(
|
||||
val document: MultipartFile? = null,
|
||||
val thumbnail: MultipartFile? = null
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("FunctionName", "DuplicatedCode")
|
||||
|
||||
package dev.inmo.tgbotapi.requests.send.media
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.MultipartFile
|
||||
@@ -72,6 +74,7 @@ fun <T : MediaGroupPartContent> SendMediaGroup(
|
||||
replyParameters = replyParameters
|
||||
)
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
return (if (files.isEmpty()) {
|
||||
data
|
||||
} else {
|
||||
@@ -182,6 +185,7 @@ private object MessagesListSerializer: KSerializer<PossiblySentViaBotCommonMessa
|
||||
|
||||
}
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SendMediaGroupData internal constructor(
|
||||
@SerialName(chatIdField)
|
||||
@@ -203,6 +207,7 @@ data class SendMediaGroupData internal constructor(
|
||||
override val replyParameters: ReplyParameters? = null,
|
||||
) : DataRequest<PossiblySentViaBotCommonMessage<MediaGroupContent<MediaGroupPartContent>>>,
|
||||
SendContentMessageRequest<PossiblySentViaBotCommonMessage<MediaGroupContent<MediaGroupPartContent>>> {
|
||||
@Suppress("unused")
|
||||
@SerialName(mediaField)
|
||||
private val convertedMedia: String
|
||||
get() = buildJsonArray {
|
||||
@@ -219,6 +224,8 @@ data class SendMediaGroupData internal constructor(
|
||||
get() = MessagesListSerializer
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
@ConsistentCopyVisibility
|
||||
data class SendMediaGroupFiles internal constructor(
|
||||
val files: List<MultipartFile>
|
||||
) : Files by (files.map { it.fileId to it }.toMap())
|
||||
) : Files by (files.associateBy { it.fileId })
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("FunctionName")
|
||||
|
||||
package dev.inmo.tgbotapi.requests.send.media
|
||||
|
||||
import dev.inmo.tgbotapi.types.media.TelegramPaidMedia
|
||||
@@ -145,12 +147,14 @@ fun SendPaidMedia(
|
||||
private val commonResultDeserializer: DeserializationStrategy<ContentMessage<PaidMediaInfoContent>>
|
||||
= TelegramBotAPIMessageDeserializationStrategyClass()
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SendPaidMediaData internal constructor(
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: ChatIdentifier,
|
||||
@SerialName(starCountField)
|
||||
val starCount: Int,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(mediaField)
|
||||
val media: List<TelegramPaidMedia>,
|
||||
@SerialName(captionField)
|
||||
@@ -204,6 +208,8 @@ data class SendPaidMediaData internal constructor(
|
||||
get() = serializer()
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
@ConsistentCopyVisibility
|
||||
data class SendPaidMediaFiles internal constructor(
|
||||
val photo: MultipartFile
|
||||
) : Files by mapOf(
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("FunctionName")
|
||||
|
||||
package dev.inmo.tgbotapi.requests.send.media
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.*
|
||||
@@ -109,6 +111,7 @@ fun SendPhoto(
|
||||
private val commonResultDeserializer: DeserializationStrategy<ContentMessage<PhotoContent>>
|
||||
= TelegramBotAPIMessageDeserializationStrategyClass()
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SendPhotoData internal constructor(
|
||||
@SerialName(chatIdField)
|
||||
@@ -167,6 +170,8 @@ data class SendPhotoData internal constructor(
|
||||
get() = serializer()
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
@ConsistentCopyVisibility
|
||||
data class SendPhotoFiles internal constructor(
|
||||
val photo: MultipartFile
|
||||
) : Files by mapOf(
|
||||
|
@@ -13,6 +13,7 @@ import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializ
|
||||
import dev.inmo.tgbotapi.types.message.content.StickerContent
|
||||
import kotlinx.serialization.*
|
||||
|
||||
@Suppress("FunctionName")
|
||||
fun SendSticker(
|
||||
chatId: ChatIdentifier,
|
||||
sticker: InputFile,
|
||||
@@ -50,6 +51,7 @@ fun SendSticker(
|
||||
private val commonResultDeserializer: DeserializationStrategy<ContentMessage<StickerContent>>
|
||||
= TelegramBotAPIMessageDeserializationStrategyClass()
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SendStickerByFileId internal constructor(
|
||||
@SerialName(chatIdField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("FunctionName")
|
||||
|
||||
package dev.inmo.tgbotapi.requests.send.media
|
||||
|
||||
import dev.inmo.tgbotapi.abstracts.WithCustomStartMediaData
|
||||
@@ -148,6 +150,7 @@ fun SendVideo(
|
||||
private val commonResultDeserializer: DeserializationStrategy<ContentMessage<VideoContent>>
|
||||
= TelegramBotAPIMessageDeserializationStrategyClass()
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SendVideoData internal constructor(
|
||||
@SerialName(chatIdField)
|
||||
@@ -225,6 +228,8 @@ data class SendVideoData internal constructor(
|
||||
get() = serializer()
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
@ConsistentCopyVisibility
|
||||
data class SendVideoFiles internal constructor(
|
||||
val video: MultipartFile? = null,
|
||||
val thumbnail: MultipartFile? = null
|
||||
|
@@ -13,6 +13,7 @@ import dev.inmo.tgbotapi.types.message.content.VideoNoteContent
|
||||
import dev.inmo.tgbotapi.utils.mapOfNotNull
|
||||
import kotlinx.serialization.*
|
||||
|
||||
@Suppress("FunctionName")
|
||||
fun SendVideoNote(
|
||||
chatId: ChatIdentifier,
|
||||
videoNote: InputFile,
|
||||
@@ -60,6 +61,7 @@ fun SendVideoNote(
|
||||
private val commonResultDeserializer: DeserializationStrategy<ContentMessage<VideoNoteContent>>
|
||||
= TelegramBotAPIMessageDeserializationStrategyClass()
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SendVideoNoteData internal constructor(
|
||||
@SerialName(chatIdField)
|
||||
@@ -105,6 +107,8 @@ data class SendVideoNoteData internal constructor(
|
||||
get() = serializer()
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
@ConsistentCopyVisibility
|
||||
data class SendVideoNoteFiles internal constructor(
|
||||
val videoNote: MultipartFile? = null,
|
||||
val thumbnail: MultipartFile? = null
|
||||
|
@@ -111,6 +111,7 @@ fun SendVoice(
|
||||
private val commonResultDeserializer: DeserializationStrategy<ContentMessage<VoiceContent>>
|
||||
= TelegramBotAPIMessageDeserializationStrategyClass()
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SendVoiceData internal constructor(
|
||||
@SerialName(chatIdField)
|
||||
@@ -166,6 +167,8 @@ data class SendVoiceData internal constructor(
|
||||
get() = serializer()
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
@ConsistentCopyVisibility
|
||||
data class SendVoiceFiles internal constructor(
|
||||
val voice: MultipartFile? = null,
|
||||
val thumbnail: MultipartFile? = null
|
||||
|
@@ -8,6 +8,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
|
||||
@Serializable
|
||||
data class RefundStarPayment(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
val userId: UserId,
|
||||
@SerialName(telegramPaymentChargeIdField)
|
||||
|
@@ -5,7 +5,6 @@ import dev.inmo.tgbotapi.abstracts.types.*
|
||||
import dev.inmo.tgbotapi.requests.send.abstracts.OptionallyWithEffectRequest
|
||||
import dev.inmo.tgbotapi.requests.send.abstracts.SendMessageRequest
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
|
||||
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
|
||||
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
|
||||
import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializationStrategyClass
|
||||
@@ -24,6 +23,7 @@ private val invoiceMessageSerializer: DeserializationStrategy<ContentMessage<Inv
|
||||
*/
|
||||
@Serializable
|
||||
data class SendInvoice(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(chatIdField)
|
||||
override val chatId: IdChatIdentifier,
|
||||
@SerialName(titleField)
|
||||
|
@@ -10,6 +10,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
|
||||
@Serializable
|
||||
data class SetUserEmojiStatus(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
val userId: UserId,
|
||||
@SerialName(emojiStatusCustomEmojiIdField)
|
||||
|
@@ -6,6 +6,7 @@ import dev.inmo.tgbotapi.requests.stickers.abstracts.StandardStickerSetAction
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
import kotlinx.serialization.*
|
||||
|
||||
@Suppress("FunctionName")
|
||||
fun AddStickerToSet(
|
||||
userId: UserId,
|
||||
stickerSetName: StickerSetName,
|
||||
@@ -31,8 +32,10 @@ fun AddStickerToSet(
|
||||
inputSticker = inputSticker
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class AddStickerToSetData internal constructor(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(nameField)
|
||||
|
@@ -5,11 +5,7 @@ import dev.inmo.tgbotapi.requests.abstracts.*
|
||||
import dev.inmo.tgbotapi.requests.common.CommonMultipartFileRequest
|
||||
import dev.inmo.tgbotapi.requests.stickers.abstracts.CreateStickerSetAction
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
import dev.inmo.tgbotapi.types.stickers.MaskPosition
|
||||
import kotlinx.serialization.*
|
||||
import kotlinx.serialization.descriptors.SerialDescriptor
|
||||
import kotlinx.serialization.encoding.Decoder
|
||||
import kotlinx.serialization.encoding.Encoder
|
||||
|
||||
/**
|
||||
* Will create one of [CreateNewStickerSet] types based on the first element of [stickers]
|
||||
@@ -84,6 +80,7 @@ sealed interface CreateNewStickerSet : CreateStickerSetAction {
|
||||
|
||||
@Serializable
|
||||
data class Regular(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(nameField)
|
||||
@@ -99,6 +96,7 @@ sealed interface CreateNewStickerSet : CreateStickerSetAction {
|
||||
}
|
||||
@Serializable
|
||||
data class Mask(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(nameField)
|
||||
@@ -114,6 +112,7 @@ sealed interface CreateNewStickerSet : CreateStickerSetAction {
|
||||
}
|
||||
@Serializable
|
||||
data class CustomEmoji(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(nameField)
|
||||
@@ -130,8 +129,10 @@ sealed interface CreateNewStickerSet : CreateStickerSetAction {
|
||||
get() = StickerType.CustomEmoji
|
||||
}
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SurrogateCreateNewSticker internal constructor(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(nameField)
|
||||
|
@@ -1,7 +1,6 @@
|
||||
package dev.inmo.tgbotapi.requests.stickers
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.FileId
|
||||
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||
import dev.inmo.tgbotapi.requests.stickers.abstracts.StickerAction
|
||||
import dev.inmo.tgbotapi.types.stickerField
|
||||
import kotlinx.serialization.*
|
||||
@@ -9,6 +8,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
|
||||
@Serializable
|
||||
data class DeleteStickerFromSet(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(stickerField)
|
||||
override val sticker: FileId
|
||||
) : StickerAction<Boolean> {
|
||||
|
@@ -117,6 +117,7 @@ object InputStickerSerializer : KSerializer<InputSticker>, MapperSerializer<Inpu
|
||||
}
|
||||
},
|
||||
) {
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SurrogateInputSticker internal constructor(
|
||||
@SerialName(stickerField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("FunctionName")
|
||||
|
||||
package dev.inmo.tgbotapi.requests.stickers
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.FileId
|
||||
@@ -6,7 +8,6 @@ import dev.inmo.tgbotapi.requests.abstracts.Request
|
||||
import dev.inmo.tgbotapi.requests.common.CommonMultipartFileRequest
|
||||
import dev.inmo.tgbotapi.requests.stickers.abstracts.StandardStickerSetAction
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
import dev.inmo.tgbotapi.types.files.File
|
||||
import kotlinx.serialization.*
|
||||
|
||||
fun ReplaceStickerInSet(
|
||||
@@ -30,6 +31,7 @@ fun ReplaceStickerInSet(
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
fun ReplaceStickerInSet(
|
||||
userId: UserId,
|
||||
stickerSetName: String,
|
||||
@@ -42,12 +44,15 @@ fun ReplaceStickerInSet(
|
||||
newSticker = newSticker
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class ReplaceStickerInSetData internal constructor(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(nameField)
|
||||
override val name: StickerSetName,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(oldStickerField)
|
||||
val oldSticker: FileId,
|
||||
@SerialName(stickerField)
|
||||
|
@@ -1,16 +1,15 @@
|
||||
package dev.inmo.tgbotapi.requests.stickers
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.*
|
||||
import dev.inmo.tgbotapi.requests.common.CommonMultipartFileRequest
|
||||
import dev.inmo.tgbotapi.requests.stickers.abstracts.OwnerStickerSetAction
|
||||
import dev.inmo.tgbotapi.requests.stickers.abstracts.StickerAction
|
||||
import dev.inmo.tgbotapi.requests.stickers.abstracts.StickerSetAction
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
import kotlinx.serialization.*
|
||||
import kotlinx.serialization.builtins.serializer
|
||||
|
||||
@Suppress("unused")
|
||||
@Serializable
|
||||
data class SetStickerEmojiList (
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(stickerField)
|
||||
override val sticker: FileId,
|
||||
@SerialName(emojiListField)
|
||||
|
@@ -1,16 +1,15 @@
|
||||
package dev.inmo.tgbotapi.requests.stickers
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.*
|
||||
import dev.inmo.tgbotapi.requests.common.CommonMultipartFileRequest
|
||||
import dev.inmo.tgbotapi.requests.stickers.abstracts.OwnerStickerSetAction
|
||||
import dev.inmo.tgbotapi.requests.stickers.abstracts.StickerAction
|
||||
import dev.inmo.tgbotapi.requests.stickers.abstracts.StickerSetAction
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
import kotlinx.serialization.*
|
||||
import kotlinx.serialization.builtins.serializer
|
||||
|
||||
@Suppress("unused")
|
||||
@Serializable
|
||||
data class SetStickerKeywords (
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(stickerField)
|
||||
override val sticker: FileId,
|
||||
@SerialName(keywordsField)
|
||||
|
@@ -1,10 +1,7 @@
|
||||
package dev.inmo.tgbotapi.requests.stickers
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.*
|
||||
import dev.inmo.tgbotapi.requests.common.CommonMultipartFileRequest
|
||||
import dev.inmo.tgbotapi.requests.stickers.abstracts.OwnerStickerSetAction
|
||||
import dev.inmo.tgbotapi.requests.stickers.abstracts.StickerAction
|
||||
import dev.inmo.tgbotapi.requests.stickers.abstracts.StickerSetAction
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
import dev.inmo.tgbotapi.types.stickers.MaskPosition
|
||||
import kotlinx.serialization.*
|
||||
@@ -12,6 +9,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
|
||||
@Serializable
|
||||
data class SetStickerMaskPosition (
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(stickerField)
|
||||
override val sticker: FileId,
|
||||
@SerialName(maskPositionField)
|
||||
|
@@ -1,7 +1,6 @@
|
||||
package dev.inmo.tgbotapi.requests.stickers
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.FileId
|
||||
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||
import dev.inmo.tgbotapi.requests.stickers.abstracts.StickerAction
|
||||
import dev.inmo.tgbotapi.types.positionField
|
||||
import dev.inmo.tgbotapi.types.stickerField
|
||||
@@ -10,6 +9,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
|
||||
@Serializable
|
||||
data class SetStickerPositionInSet(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(stickerField)
|
||||
override val sticker: FileId,
|
||||
@SerialName(positionField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("FunctionName")
|
||||
|
||||
package dev.inmo.tgbotapi.requests.stickers
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.*
|
||||
@@ -18,6 +20,7 @@ fun SetStickerSetThumbnail(
|
||||
)
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
fun SetStickerSetThumbnail(
|
||||
userId: UserId,
|
||||
stickerSetName: String,
|
||||
@@ -32,12 +35,14 @@ fun SetStickerSetThumbnail(
|
||||
|
||||
@Serializable
|
||||
data class SetStickerSetThumbnail (
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
override val userId: UserId,
|
||||
@SerialName(nameField)
|
||||
override val name: StickerSetName,
|
||||
@SerialName(formatField)
|
||||
val format: StickerFormat,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(thumbnailField)
|
||||
val thumbnail: FileId? = null
|
||||
) : OwnerStickerSetAction {
|
||||
|
@@ -10,6 +10,7 @@ import kotlinx.serialization.json.JsonObject
|
||||
|
||||
@Serializable
|
||||
data class UploadStickerFile(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
val userId: UserId,
|
||||
@Transient
|
||||
@@ -17,10 +18,7 @@ data class UploadStickerFile(
|
||||
@SerialName(stickerFormatField)
|
||||
val stickerFormat: StickerFormat
|
||||
): MultipartRequest<File> {
|
||||
init {
|
||||
// TODO:: add check of width/height of image and type of file - it must be png with max side length is 512px
|
||||
}
|
||||
|
||||
// TODO:: add check of width/height of image and type of file - it must be png with max side length is 512px
|
||||
override fun method(): String = "uploadStickerFile"
|
||||
@Transient
|
||||
override val mediaMap: Map<String, MultipartFile> = mapOf(stickerField to sticker)
|
||||
|
@@ -3,10 +3,7 @@ package dev.inmo.tgbotapi.requests.stories
|
||||
import dev.inmo.tgbotapi.abstracts.TextedOutput
|
||||
import dev.inmo.tgbotapi.requests.abstracts.BusinessRequest
|
||||
import dev.inmo.tgbotapi.requests.abstracts.MultipartFile
|
||||
import dev.inmo.tgbotapi.requests.stories.PostStory
|
||||
import dev.inmo.tgbotapi.types.Seconds
|
||||
import dev.inmo.tgbotapi.types.StoryId
|
||||
import dev.inmo.tgbotapi.types.activePeriodField
|
||||
import dev.inmo.tgbotapi.types.areasField
|
||||
import dev.inmo.tgbotapi.types.businessConnectionIdField
|
||||
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
|
||||
@@ -31,6 +28,7 @@ import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlinx.serialization.SerializationStrategy
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class EditStory private constructor(
|
||||
@SerialName(businessConnectionIdField)
|
||||
|
@@ -28,6 +28,7 @@ import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlinx.serialization.SerializationStrategy
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class PostStory private constructor(
|
||||
@SerialName(businessConnectionIdField)
|
||||
@@ -120,6 +121,7 @@ data class PostStory private constructor(
|
||||
|
||||
override fun method(): String = "postStory"
|
||||
|
||||
@Suppress("unused")
|
||||
companion object {
|
||||
const val ACTIVE_PERIOD_6_HOURS: Seconds = 6 * 3600
|
||||
const val ACTIVE_PERIOD_12_HOURS: Seconds = 12 * 3600
|
||||
|
@@ -1,6 +1,5 @@
|
||||
package dev.inmo.tgbotapi.requests.verifications
|
||||
|
||||
import dev.inmo.tgbotapi.abstracts.types.ChatRequest
|
||||
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
import kotlinx.serialization.DeserializationStrategy
|
||||
@@ -9,9 +8,9 @@ import kotlinx.serialization.Serializable
|
||||
import kotlinx.serialization.SerializationStrategy
|
||||
import kotlinx.serialization.builtins.serializer
|
||||
|
||||
|
||||
@Serializable
|
||||
data class RemoveUserVerification(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
val userId: UserId,
|
||||
): SimpleRequest<Boolean> {
|
||||
|
@@ -1,6 +1,5 @@
|
||||
package dev.inmo.tgbotapi.requests.verifications
|
||||
|
||||
import dev.inmo.tgbotapi.abstracts.types.ChatRequest
|
||||
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
import kotlinx.serialization.DeserializationStrategy
|
||||
@@ -12,6 +11,7 @@ import kotlinx.serialization.builtins.serializer
|
||||
|
||||
@Serializable
|
||||
data class VerifyUser(
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
val userId: UserId,
|
||||
@SerialName(customDescriptionField)
|
||||
|
@@ -124,6 +124,7 @@ fun SetWebhook(
|
||||
* If you'd like to make sure that the Webhook request comes from Telegram, we recommend using a secret path in the [url],
|
||||
* e.g. https://www.example.com/<token>. Since nobody else knows your bot's token, you can be pretty sure it's us.
|
||||
*/
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class SetWebhook internal constructor(
|
||||
@SerialName(urlField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:OptIn(ExperimentalSerializationApi::class)
|
||||
|
||||
package dev.inmo.tgbotapi.types
|
||||
|
||||
import dev.inmo.micro_utils.colors.common.HEXAColor
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:OptIn(ExperimentalSerializationApi::class)
|
||||
|
||||
package dev.inmo.tgbotapi.types
|
||||
|
||||
import dev.inmo.micro_utils.common.Progress
|
||||
@@ -6,6 +8,7 @@ import dev.inmo.tgbotapi.utils.IntProgress100Serializer
|
||||
import dev.inmo.tgbotapi.utils.decodeDataAndJson
|
||||
import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded
|
||||
import kotlinx.serialization.EncodeDefault
|
||||
import kotlinx.serialization.ExperimentalSerializationApi
|
||||
import kotlinx.serialization.KSerializer
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types
|
||||
|
||||
import dev.inmo.micro_utils.common.Warning
|
||||
@@ -26,9 +28,10 @@ sealed interface ChatIdentifier
|
||||
/**
|
||||
* Also used as User Identifier
|
||||
*/
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@Serializable(ChatIdentifierSerializer::class)
|
||||
sealed interface IdChatIdentifier : ChatIdentifier {
|
||||
abstract val chatId: RawChatId
|
||||
val chatId: RawChatId
|
||||
val threadId: MessageThreadId?
|
||||
get() = null
|
||||
val businessConnectionId: BusinessConnectionId?
|
||||
@@ -45,10 +48,12 @@ sealed interface IdChatIdentifier : ChatIdentifier {
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@Serializable(ChatIdentifierSerializer::class)
|
||||
@JvmInline
|
||||
value class ChatId(override val chatId: RawChatId) : IdChatIdentifier
|
||||
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@Serializable(ChatIdentifierSerializer::class)
|
||||
@JvmInline
|
||||
value class ChatIdWithThreadId(val chatIdWithThreadId: Pair<RawChatId, MessageThreadId>) : IdChatIdentifier {
|
||||
@@ -59,6 +64,7 @@ value class ChatIdWithThreadId(val chatIdWithThreadId: Pair<RawChatId, MessageTh
|
||||
|
||||
constructor(chatId: RawChatId, threadId: MessageThreadId): this(chatId to threadId)
|
||||
}
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@Serializable(ChatIdentifierSerializer::class)
|
||||
@JvmInline
|
||||
value class BusinessChatId(val chatIdWithBusinessConnectionId: Pair<RawChatId, BusinessConnectionId>) : IdChatIdentifier {
|
||||
@@ -116,6 +122,7 @@ fun Byte.toChatId(): IdChatIdentifier = RawChatId(toLong()).toChatId()
|
||||
* @property full The full username string, guaranteed to start with "@".
|
||||
* @throws IllegalArgumentException if the provided [full] value doesn't start with "@" during initialization.
|
||||
*/
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE", "RemoveRedundantQualifierName")
|
||||
@Serializable(ChatIdentifierSerializer::class)
|
||||
@JvmInline
|
||||
value class Username (
|
||||
@@ -193,6 +200,7 @@ object ChatIdentifierSerializer : KSerializer<ChatIdentifier> {
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
@RiskFeature
|
||||
object FullChatIdentifierSerializer : KSerializer<ChatIdentifier> {
|
||||
private val internalSerializer = JsonPrimitive.serializer()
|
||||
@@ -216,7 +224,7 @@ object FullChatIdentifierSerializer : KSerializer<ChatIdentifier> {
|
||||
val (chatId, _, businessConnectionId) = splitted
|
||||
BusinessChatId(
|
||||
chatId.toLongOrNull() ?.let(::RawChatId) ?: return@let null,
|
||||
businessConnectionId.let(::BusinessConnectionId) ?: return@let null
|
||||
businessConnectionId.let(::BusinessConnectionId)
|
||||
)
|
||||
}
|
||||
else -> null
|
||||
|
@@ -3,7 +3,6 @@ package dev.inmo.tgbotapi.types
|
||||
import korlibs.time.DateTime
|
||||
import dev.inmo.tgbotapi.abstracts.WithUser
|
||||
import dev.inmo.tgbotapi.abstracts.types.SubscriptionInfo
|
||||
import dev.inmo.tgbotapi.abstracts.types.SubscriptionPeriodInfo
|
||||
import dev.inmo.tgbotapi.types.chat.User
|
||||
import dev.inmo.tgbotapi.utils.RiskFeature
|
||||
import dev.inmo.tgbotapi.utils.TimeSpanAsSecondsSerializer
|
||||
@@ -67,6 +66,7 @@ sealed interface ChatInviteLink : WithUser {
|
||||
/**
|
||||
* Base interface for all [ChatInviteLink]s which are NOT [PrimaryInviteLink]
|
||||
*/
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@Serializable(ChatInviteLinkSerializer::class)
|
||||
sealed interface SecondaryChatInviteLink : ChatInviteLink, SubscriptionInfo {
|
||||
override val isPrimary: Boolean
|
||||
@@ -96,7 +96,7 @@ data class PrimaryInviteLink(
|
||||
/**
|
||||
* Represent [SecondaryChatInviteLink] which will require an aprovement from one of the administrators
|
||||
*
|
||||
* @see ChatJoinRequest
|
||||
* @see dev.inmo.tgbotapi.types.chat.ChatJoinRequest
|
||||
* @see dev.inmo.tgbotapi.types.update.ChatJoinRequestUpdate
|
||||
*/
|
||||
@Serializable
|
||||
|
@@ -12,6 +12,7 @@ data class Contact(
|
||||
override val firstName: String,
|
||||
@SerialName(lastNameField)
|
||||
override val lastName: String? = null,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(userIdField)
|
||||
val userId: UserId? = null,
|
||||
@SerialName(vcardField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.FileId
|
||||
@@ -41,10 +43,12 @@ fun InlineQueryResultAudioCachedImpl(
|
||||
inputMessageContent
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InlineQueryResultAudioCachedImpl internal constructor(
|
||||
@SerialName(idField)
|
||||
override val id: InlineQueryId,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(audioFileIdField)
|
||||
override val fileId: FileId,
|
||||
@SerialName(captionField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult
|
||||
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
@@ -49,6 +51,7 @@ fun InlineQueryResultAudioImpl(
|
||||
inputMessageContent
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InlineQueryResultAudioImpl internal constructor(
|
||||
@SerialName(idField)
|
||||
|
@@ -47,10 +47,12 @@ fun InlineQueryResultDocumentCachedImpl(
|
||||
inputMessageContent
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InlineQueryResultDocumentCachedImpl internal constructor(
|
||||
@SerialName(idField)
|
||||
override val id: InlineQueryId,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(documentFileIdField)
|
||||
override val fileId: FileId,
|
||||
@SerialName(titleField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult
|
||||
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
@@ -59,6 +61,7 @@ fun InlineQueryResultDocumentImpl(
|
||||
inputMessageContent
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InlineQueryResultDocumentImpl internal constructor(
|
||||
@SerialName(idField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.FileId
|
||||
@@ -57,10 +59,12 @@ fun InlineQueryResultGifCachedImpl(
|
||||
inputMessageContent = inputMessageContent
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InlineQueryResultGifCachedImpl internal constructor(
|
||||
@SerialName(idField)
|
||||
override val id: InlineQueryId,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(gifFileIdField)
|
||||
override val fileId: FileId,
|
||||
@SerialName(titleField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.FileId
|
||||
@@ -136,6 +138,7 @@ fun InlineQueryResultGifImpl(
|
||||
inputMessageContent = inputMessageContent
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InlineQueryResultGifImpl internal constructor(
|
||||
@SerialName(idField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.FileId
|
||||
@@ -57,10 +59,12 @@ fun InlineQueryResultMpeg4GifCachedImpl(
|
||||
inputMessageContent = inputMessageContent
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InlineQueryResultMpeg4GifCachedImpl internal constructor(
|
||||
@SerialName(idField)
|
||||
override val id: InlineQueryId,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(mpeg4GifFileIdField)
|
||||
override val fileId: FileId,
|
||||
@SerialName(titleField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult
|
||||
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
@@ -77,6 +79,7 @@ fun InlineQueryResultMpeg4GifImpl(
|
||||
inputMessageContent = inputMessageContent
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InlineQueryResultMpeg4GifImpl internal constructor(
|
||||
@SerialName(idField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.FileId
|
||||
@@ -61,10 +63,12 @@ fun InlineQueryResultPhotoCachedImpl(
|
||||
inputMessageContent = inputMessageContent
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InlineQueryResultPhotoCachedImpl internal constructor(
|
||||
@SerialName(idField)
|
||||
override val id: InlineQueryId,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(photoFileIdField)
|
||||
override val fileId: FileId,
|
||||
@SerialName(titleField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult
|
||||
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
@@ -72,6 +74,7 @@ fun InlineQueryResultPhotoImpl(
|
||||
inputMessageContent = inputMessageContent
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InlineQueryResultPhotoImpl internal constructor(
|
||||
@SerialName(idField)
|
||||
|
@@ -12,6 +12,7 @@ import kotlinx.serialization.Serializable
|
||||
data class InlineQueryResultStickerCached(
|
||||
@SerialName(idField)
|
||||
override val id: InlineQueryId,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(stickerFileIdField)
|
||||
override val fileId: FileId,
|
||||
@SerialName(replyMarkupField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.FileId
|
||||
@@ -61,10 +63,12 @@ fun InlineQueryResultVideoCachedImpl(
|
||||
inputMessageContent = inputMessageContent
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InlineQueryResultVideoCachedImpl internal constructor(
|
||||
@SerialName(idField)
|
||||
override val id: InlineQueryId,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(videoFileIdField)
|
||||
override val fileId: FileId,
|
||||
@SerialName(titleField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult
|
||||
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
@@ -81,6 +83,7 @@ fun InlineQueryResultVideoImpl(
|
||||
inputMessageContent = inputMessageContent
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InlineQueryResultVideoImpl internal constructor(
|
||||
@SerialName(idField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult
|
||||
|
||||
import dev.inmo.tgbotapi.requests.abstracts.FileId
|
||||
@@ -44,10 +46,12 @@ fun InlineQueryResultVoiceCachedImpl(
|
||||
inputMessageContent
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InlineQueryResultVoiceCachedImpl internal constructor(
|
||||
@SerialName(idField)
|
||||
override val id: InlineQueryId,
|
||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||
@SerialName(voiceFileIdField)
|
||||
override val fileId: FileId,
|
||||
@SerialName(titleField)
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult
|
||||
|
||||
import dev.inmo.tgbotapi.types.*
|
||||
@@ -56,6 +58,7 @@ fun InlineQueryResultVoiceImpl(
|
||||
inputMessageContent
|
||||
)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InlineQueryResultVoiceImpl internal constructor(
|
||||
@SerialName(idField)
|
||||
|
@@ -3,12 +3,14 @@ package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.serializers
|
||||
import dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.*
|
||||
import dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.InlineQueryResult
|
||||
import dev.inmo.tgbotapi.utils.RiskFeature
|
||||
import kotlinx.serialization.ExperimentalSerializationApi
|
||||
import kotlinx.serialization.InternalSerializationApi
|
||||
import kotlinx.serialization.KSerializer
|
||||
import kotlinx.serialization.descriptors.*
|
||||
import kotlinx.serialization.encoding.Decoder
|
||||
import kotlinx.serialization.encoding.Encoder
|
||||
|
||||
@OptIn(ExperimentalSerializationApi::class)
|
||||
@RiskFeature
|
||||
object InlineQueryResultSerializer : KSerializer<InlineQueryResult> {
|
||||
@OptIn(InternalSerializationApi::class)
|
||||
@@ -39,6 +41,6 @@ object InlineQueryResultSerializer : KSerializer<InlineQueryResult> {
|
||||
}
|
||||
|
||||
override fun deserialize(decoder: Decoder): InlineQueryResult {
|
||||
throw TODO()
|
||||
throw NotImplementedError("Object can't be deserialized")
|
||||
}
|
||||
}
|
||||
|
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("unused")
|
||||
|
||||
package dev.inmo.tgbotapi.types.InlineQueries.InputMessageContent
|
||||
|
||||
import dev.inmo.tgbotapi.abstracts.TextedOutput
|
||||
@@ -30,6 +32,7 @@ fun InputTextMessageContent(
|
||||
linkPreviewOptions: LinkPreviewOptions? = null
|
||||
) = InputTextMessageContent(entities.makeString(), null, entities.toRawMessageEntities(), linkPreviewOptions)
|
||||
|
||||
@ConsistentCopyVisibility
|
||||
@Serializable
|
||||
data class InputTextMessageContent internal constructor(
|
||||
@SerialName(messageTextField)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user