Compare commits
3 Commits
0a9235bcd9
...
4bff860c01
Author | SHA1 | Date |
---|---|---|
InsanusMokrassar | 4bff860c01 | |
InsanusMokrassar | 6a8b83f750 | |
InsanusMokrassar | ab9718b7c6 |
|
@ -7,7 +7,7 @@ import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
|
||||||
|
|
||||||
suspend fun TelegramBot.getBusinessConnection(
|
suspend fun TelegramBot.getBusinessConnection(
|
||||||
id: BusinessConnectionId
|
id: BusinessConnectionId
|
||||||
) = execute(GetBusinessConnection(id = id))
|
) = execute(GetBusinessConnection(businessConnectionId = id))
|
||||||
|
|
||||||
@Warning("This method may lead to error due to raw String type usage")
|
@Warning("This method may lead to error due to raw String type usage")
|
||||||
suspend fun TelegramBot.getBusinessConnection(
|
suspend fun TelegramBot.getBusinessConnection(
|
||||||
|
|
|
@ -4158,14 +4158,15 @@ public final class dev/inmo/tgbotapi/requests/games/abstracts/SetGameScore$Defau
|
||||||
public static fun method (Ldev/inmo/tgbotapi/requests/games/abstracts/SetGameScore;)Ljava/lang/String;
|
public static fun method (Ldev/inmo/tgbotapi/requests/games/abstracts/SetGameScore;)Ljava/lang/String;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/requests/get/GetBusinessConnection : dev/inmo/tgbotapi/requests/abstracts/SimpleRequest {
|
public final class dev/inmo/tgbotapi/requests/get/GetBusinessConnection : dev/inmo/tgbotapi/abstracts/types/WithBusinessConnectionId, dev/inmo/tgbotapi/requests/abstracts/SimpleRequest {
|
||||||
public static final field Companion Ldev/inmo/tgbotapi/requests/get/GetBusinessConnection$Companion;
|
public static final field Companion Ldev/inmo/tgbotapi/requests/get/GetBusinessConnection$Companion;
|
||||||
public synthetic fun <init> (Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
public synthetic fun <init> (Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||||
public final fun component1-T-_HSQI ()Ljava/lang/String;
|
public final fun component1-T-_HSQI ()Ljava/lang/String;
|
||||||
public final fun copy-SYn5crI (Ljava/lang/String;)Ldev/inmo/tgbotapi/requests/get/GetBusinessConnection;
|
public final fun copy-SYn5crI (Ljava/lang/String;)Ldev/inmo/tgbotapi/requests/get/GetBusinessConnection;
|
||||||
public static synthetic fun copy-SYn5crI$default (Ldev/inmo/tgbotapi/requests/get/GetBusinessConnection;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/get/GetBusinessConnection;
|
public static synthetic fun copy-SYn5crI$default (Ldev/inmo/tgbotapi/requests/get/GetBusinessConnection;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/get/GetBusinessConnection;
|
||||||
public fun equals (Ljava/lang/Object;)Z
|
public fun equals (Ljava/lang/Object;)Z
|
||||||
public final fun getId-T-_HSQI ()Ljava/lang/String;
|
public fun getBusinessConnectionId-T-_HSQI ()Ljava/lang/String;
|
||||||
|
public synthetic fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String;
|
||||||
public fun getRequestSerializer ()Lkotlinx/serialization/SerializationStrategy;
|
public fun getRequestSerializer ()Lkotlinx/serialization/SerializationStrategy;
|
||||||
public fun getResultDeserializer ()Lkotlinx/serialization/DeserializationStrategy;
|
public fun getResultDeserializer ()Lkotlinx/serialization/DeserializationStrategy;
|
||||||
public fun hashCode ()I
|
public fun hashCode ()I
|
||||||
|
@ -11879,17 +11880,17 @@ public final class dev/inmo/tgbotapi/types/business_connection/BusinessLocation$
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/business_connection/BusinessMessagesDeleted : dev/inmo/tgbotapi/abstracts/types/WithBusinessConnectionId {
|
public final class dev/inmo/tgbotapi/types/business_connection/BusinessMessagesDeleted : dev/inmo/tgbotapi/abstracts/types/WithBusinessConnectionId {
|
||||||
public static final field Companion Ldev/inmo/tgbotapi/types/business_connection/BusinessMessagesDeleted$Companion;
|
public static final field Companion Ldev/inmo/tgbotapi/types/business_connection/BusinessMessagesDeleted$Companion;
|
||||||
public synthetic fun <init> (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewChat;JLkotlin/jvm/internal/DefaultConstructorMarker;)V
|
public synthetic fun <init> (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/util/List;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||||
public final fun component1-T-_HSQI ()Ljava/lang/String;
|
public final fun component1-T-_HSQI ()Ljava/lang/String;
|
||||||
public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/PreviewChat;
|
public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/PreviewChat;
|
||||||
public final fun component3-APLFQys ()J
|
public final fun component3 ()Ljava/util/List;
|
||||||
public final fun copy-BHBJ6J4 (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewChat;J)Ldev/inmo/tgbotapi/types/business_connection/BusinessMessagesDeleted;
|
public final fun copy-LpiUw8E (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/util/List;)Ldev/inmo/tgbotapi/types/business_connection/BusinessMessagesDeleted;
|
||||||
public static synthetic fun copy-BHBJ6J4$default (Ldev/inmo/tgbotapi/types/business_connection/BusinessMessagesDeleted;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewChat;JILjava/lang/Object;)Ldev/inmo/tgbotapi/types/business_connection/BusinessMessagesDeleted;
|
public static synthetic fun copy-LpiUw8E$default (Ldev/inmo/tgbotapi/types/business_connection/BusinessMessagesDeleted;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/util/List;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/business_connection/BusinessMessagesDeleted;
|
||||||
public fun equals (Ljava/lang/Object;)Z
|
public fun equals (Ljava/lang/Object;)Z
|
||||||
public fun getBusinessConnectionId-T-_HSQI ()Ljava/lang/String;
|
public fun getBusinessConnectionId-T-_HSQI ()Ljava/lang/String;
|
||||||
public synthetic fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String;
|
public synthetic fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String;
|
||||||
public final fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat;
|
public final fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat;
|
||||||
public final fun getMessageId-APLFQys ()J
|
public final fun getMessageIds ()Ljava/util/List;
|
||||||
public fun hashCode ()I
|
public fun hashCode ()I
|
||||||
public fun toString ()Ljava/lang/String;
|
public fun toString ()Ljava/lang/String;
|
||||||
}
|
}
|
||||||
|
@ -11919,7 +11920,6 @@ public final class dev/inmo/tgbotapi/types/business_connection/BusinessOpeningHo
|
||||||
public fun equals (Ljava/lang/Object;)Z
|
public fun equals (Ljava/lang/Object;)Z
|
||||||
public final fun getOpeningHours ()Ljava/util/List;
|
public final fun getOpeningHours ()Ljava/util/List;
|
||||||
public final fun getTimeZoneName ()Ljava/lang/String;
|
public final fun getTimeZoneName ()Ljava/lang/String;
|
||||||
public final fun getTimezone ()Lkorlibs/time/Timezone;
|
|
||||||
public fun hashCode ()I
|
public fun hashCode ()I
|
||||||
public fun toString ()Ljava/lang/String;
|
public fun toString ()Ljava/lang/String;
|
||||||
}
|
}
|
||||||
|
@ -12000,45 +12000,6 @@ public final class dev/inmo/tgbotapi/types/business_connection/MinutesInterval$C
|
||||||
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/business_connection/RawBusinessConnection {
|
|
||||||
public static final field Companion Ldev/inmo/tgbotapi/types/business_connection/RawBusinessConnection$Companion;
|
|
||||||
public fun <init> (Ldev/inmo/tgbotapi/types/business_connection/BusinessConnection;)V
|
|
||||||
public synthetic fun <init> (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewUser;JLdev/inmo/tgbotapi/types/TelegramDate;ZZLkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
||||||
public final fun component1-T-_HSQI ()Ljava/lang/String;
|
|
||||||
public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/PreviewUser;
|
|
||||||
public final fun component3-tHkBKVM ()J
|
|
||||||
public final fun component4 ()Ldev/inmo/tgbotapi/types/TelegramDate;
|
|
||||||
public final fun component5 ()Z
|
|
||||||
public final fun component6 ()Z
|
|
||||||
public final fun copy-FubJ-Q0 (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewUser;JLdev/inmo/tgbotapi/types/TelegramDate;ZZ)Ldev/inmo/tgbotapi/types/business_connection/RawBusinessConnection;
|
|
||||||
public static synthetic fun copy-FubJ-Q0$default (Ldev/inmo/tgbotapi/types/business_connection/RawBusinessConnection;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewUser;JLdev/inmo/tgbotapi/types/TelegramDate;ZZILjava/lang/Object;)Ldev/inmo/tgbotapi/types/business_connection/RawBusinessConnection;
|
|
||||||
public fun equals (Ljava/lang/Object;)Z
|
|
||||||
public final fun getAsBusinessConnection ()Ldev/inmo/tgbotapi/types/business_connection/BusinessConnection;
|
|
||||||
public final fun getCanReply ()Z
|
|
||||||
public final fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate;
|
|
||||||
public final fun getId-T-_HSQI ()Ljava/lang/String;
|
|
||||||
public final fun getUser ()Ldev/inmo/tgbotapi/types/chat/PreviewUser;
|
|
||||||
public final fun getUserChatId-tHkBKVM ()J
|
|
||||||
public fun hashCode ()I
|
|
||||||
public final fun isEnabled ()Z
|
|
||||||
public fun toString ()Ljava/lang/String;
|
|
||||||
}
|
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/business_connection/RawBusinessConnection$$serializer : kotlinx/serialization/internal/GeneratedSerializer {
|
|
||||||
public static final field INSTANCE Ldev/inmo/tgbotapi/types/business_connection/RawBusinessConnection$$serializer;
|
|
||||||
public fun childSerializers ()[Lkotlinx/serialization/KSerializer;
|
|
||||||
public fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/business_connection/RawBusinessConnection;
|
|
||||||
public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object;
|
|
||||||
public fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor;
|
|
||||||
public fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/business_connection/RawBusinessConnection;)V
|
|
||||||
public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V
|
|
||||||
public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer;
|
|
||||||
}
|
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/business_connection/RawBusinessConnection$Companion {
|
|
||||||
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
|
||||||
}
|
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CallbackDataInlineKeyboardButton : dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton {
|
public final class dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CallbackDataInlineKeyboardButton : dev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton {
|
||||||
public static final field Companion Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CallbackDataInlineKeyboardButton$Companion;
|
public static final field Companion Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CallbackDataInlineKeyboardButton$Companion;
|
||||||
public fun <init> (Ljava/lang/String;Ljava/lang/String;)V
|
public fun <init> (Ljava/lang/String;Ljava/lang/String;)V
|
||||||
|
@ -12478,10 +12439,10 @@ public final class dev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat$$se
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat$Companion {
|
public final class dev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat$Companion {
|
||||||
public final fun Channel-tzG5d64 (SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;
|
public final fun Channel-jf4QQwM (SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;
|
||||||
public static synthetic fun Channel-tzG5d64$default (Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat$Companion;SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;
|
public static synthetic fun Channel-jf4QQwM$default (Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat$Companion;SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;
|
||||||
public final fun Group-pV1CTLE (SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;
|
public final fun Group-79T4ZTI (SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;
|
||||||
public static synthetic fun Group-pV1CTLE$default (Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat$Companion;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;
|
public static synthetic fun Group-79T4ZTI$default (Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat$Companion;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;
|
||||||
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13031,26 +12992,27 @@ public final class dev/inmo/tgbotapi/types/buttons/inline/InlineKeyboardButtonsS
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/buttons/reply/ReplyKeyboardButtonsShortcutsKt {
|
public final class dev/inmo/tgbotapi/types/buttons/reply/ReplyKeyboardButtonsShortcutsKt {
|
||||||
public static final fun requestBotsReplyButton-TwpgBjg (Ljava/lang/String;SI)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
public static final fun requestBotsReplyButton-DMiTggw (Ljava/lang/String;SILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
||||||
public static synthetic fun requestBotsReplyButton-TwpgBjg$default (Ljava/lang/String;SIILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
public static synthetic fun requestBotsReplyButton-DMiTggw$default (Ljava/lang/String;SILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
||||||
public static final fun requestChannelReplyButton--ZHpl2Q (Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/types/buttons/RequestChatKeyboardButton;
|
public static final fun requestChannelReplyButton-48zEUc8 (Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/types/buttons/RequestChatKeyboardButton;
|
||||||
public static synthetic fun requestChannelReplyButton--ZHpl2Q$default (Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestChatKeyboardButton;
|
public static synthetic fun requestChannelReplyButton-48zEUc8$default (Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestChatKeyboardButton;
|
||||||
public static final fun requestChannelReplyButton-DwHZ6rQ (Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Z)Ldev/inmo/tgbotapi/types/buttons/RequestChatKeyboardButton;
|
public static final fun requestChannelReplyButton-x7olw_Q (Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;ZLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/types/buttons/RequestChatKeyboardButton;
|
||||||
public static synthetic fun requestChannelReplyButton-DwHZ6rQ$default (Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;ZILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestChatKeyboardButton;
|
public static synthetic fun requestChannelReplyButton-x7olw_Q$default (Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;ZLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestChatKeyboardButton;
|
||||||
public static final fun requestChatReplyButton (Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;)Ldev/inmo/tgbotapi/types/buttons/RequestChatKeyboardButton;
|
public static final fun requestChatReplyButton (Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;)Ldev/inmo/tgbotapi/types/buttons/RequestChatKeyboardButton;
|
||||||
public static final fun requestChatReplyButton-Rgd8aa8 (Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Z)Ldev/inmo/tgbotapi/types/buttons/RequestChatKeyboardButton;
|
public static final fun requestChatReplyButton-Q8_HZNU (Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;ZLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/types/buttons/RequestChatKeyboardButton;
|
||||||
public static synthetic fun requestChatReplyButton-Rgd8aa8$default (Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;ZILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestChatKeyboardButton;
|
public static synthetic fun requestChatReplyButton-Q8_HZNU$default (Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;ZLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestChatKeyboardButton;
|
||||||
public static final fun requestContactReplyButton (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/RequestContactKeyboardButton;
|
public static final fun requestContactReplyButton (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/RequestContactKeyboardButton;
|
||||||
public static final fun requestLocationReplyButton (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/RequestLocationKeyboardButton;
|
public static final fun requestLocationReplyButton (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/RequestLocationKeyboardButton;
|
||||||
public static final fun requestPollReplyButton (Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonPollType;)Ldev/inmo/tgbotapi/types/buttons/RequestPollKeyboardButton;
|
public static final fun requestPollReplyButton (Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonPollType;)Ldev/inmo/tgbotapi/types/buttons/RequestPollKeyboardButton;
|
||||||
public static final fun requestUserOrBotReplyButton-LWJCOyk (Ljava/lang/String;S)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
public static final fun requestUserOrBotReplyButton-L4bH-_U (Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
||||||
public static final fun requestUserReplyButton-AjjO_Wo (Ljava/lang/String;SLjava/lang/Boolean;I)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
public static synthetic fun requestUserOrBotReplyButton-L4bH-_U$default (Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
||||||
public static synthetic fun requestUserReplyButton-AjjO_Wo$default (Ljava/lang/String;SLjava/lang/Boolean;IILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
public static final fun requestUserReplyButton-DwHZ6rQ (Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
||||||
public static final fun requestUsersOrBotsReplyButton-AjjO_Wo (Ljava/lang/String;SLjava/lang/Boolean;I)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
public static synthetic fun requestUserReplyButton-DwHZ6rQ$default (Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
||||||
public static synthetic fun requestUsersOrBotsReplyButton-AjjO_Wo$default (Ljava/lang/String;SLjava/lang/Boolean;IILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
public static final fun requestUsersOrBotsReplyButton-DwHZ6rQ (Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
||||||
|
public static synthetic fun requestUsersOrBotsReplyButton-DwHZ6rQ$default (Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
||||||
public static final fun requestUsersReplyButton (Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestUsers;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
public static final fun requestUsersReplyButton (Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestUsers;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
||||||
public static final fun requestUsersReplyButton-AjjO_Wo (Ljava/lang/String;SLjava/lang/Boolean;I)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
public static final fun requestUsersReplyButton-DwHZ6rQ (Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
||||||
public static synthetic fun requestUsersReplyButton-AjjO_Wo$default (Ljava/lang/String;SLjava/lang/Boolean;IILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
public static synthetic fun requestUsersReplyButton-DwHZ6rQ$default (Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/RequestUserKeyboardButton;
|
||||||
public static final fun simpleReplyButton (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/SimpleKeyboardButton;
|
public static final fun simpleReplyButton (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/SimpleKeyboardButton;
|
||||||
public static final fun webAppReplyButton (Ljava/lang/String;Ldev/inmo/tgbotapi/types/webapps/WebAppInfo;)Ldev/inmo/tgbotapi/types/buttons/WebAppKeyboardButton;
|
public static final fun webAppReplyButton (Ljava/lang/String;Ldev/inmo/tgbotapi/types/webapps/WebAppInfo;)Ldev/inmo/tgbotapi/types/buttons/WebAppKeyboardButton;
|
||||||
public static final fun webAppReplyButton (Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/WebAppKeyboardButton;
|
public static final fun webAppReplyButton (Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/buttons/WebAppKeyboardButton;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
package dev.inmo.tgbotapi.requests.get
|
package dev.inmo.tgbotapi.requests.get
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.abstracts.types.WithBusinessConnectionId
|
||||||
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||||
|
import dev.inmo.tgbotapi.types.businessConnectionIdField
|
||||||
import dev.inmo.tgbotapi.types.business_connection.BusinessConnection
|
import dev.inmo.tgbotapi.types.business_connection.BusinessConnection
|
||||||
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
|
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
|
||||||
import dev.inmo.tgbotapi.types.files.PathedFile
|
|
||||||
import dev.inmo.tgbotapi.types.idField
|
|
||||||
import kotlinx.serialization.DeserializationStrategy
|
import kotlinx.serialization.DeserializationStrategy
|
||||||
import kotlinx.serialization.SerialName
|
import kotlinx.serialization.SerialName
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
@ -12,15 +12,15 @@ import kotlinx.serialization.SerializationStrategy
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class GetBusinessConnection(
|
data class GetBusinessConnection(
|
||||||
@SerialName(idField)
|
@SerialName(businessConnectionIdField)
|
||||||
val id: BusinessConnectionId
|
override val businessConnectionId: BusinessConnectionId
|
||||||
) : SimpleRequest<BusinessConnection> {
|
) : SimpleRequest<BusinessConnection>, WithBusinessConnectionId {
|
||||||
override fun method(): String {
|
override fun method(): String {
|
||||||
return "getBusinessConnection"
|
return "getBusinessConnection"
|
||||||
}
|
}
|
||||||
|
|
||||||
override val resultDeserializer: DeserializationStrategy<BusinessConnection>
|
override val resultDeserializer: DeserializationStrategy<BusinessConnection>
|
||||||
get() = BusinessConnection.serializer()
|
get() = BusinessConnection.Companion
|
||||||
override val requestSerializer: SerializationStrategy<*>
|
override val requestSerializer: SerializationStrategy<*>
|
||||||
get() = serializer()
|
get() = serializer()
|
||||||
}
|
}
|
|
@ -4,15 +4,12 @@ import dev.inmo.tgbotapi.abstracts.types.WithBusinessConnectionId
|
||||||
import dev.inmo.tgbotapi.types.*
|
import dev.inmo.tgbotapi.types.*
|
||||||
import dev.inmo.tgbotapi.types.chat.PreviewUser
|
import dev.inmo.tgbotapi.types.chat.PreviewUser
|
||||||
import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded
|
import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded
|
||||||
import kotlinx.serialization.EncodeDefault
|
import kotlinx.serialization.*
|
||||||
import kotlinx.serialization.KSerializer
|
|
||||||
import kotlinx.serialization.SerialName
|
|
||||||
import kotlinx.serialization.Serializable
|
|
||||||
import kotlinx.serialization.descriptors.SerialDescriptor
|
import kotlinx.serialization.descriptors.SerialDescriptor
|
||||||
import kotlinx.serialization.encoding.Decoder
|
import kotlinx.serialization.encoding.Decoder
|
||||||
import kotlinx.serialization.encoding.Encoder
|
import kotlinx.serialization.encoding.Encoder
|
||||||
|
|
||||||
@Serializable
|
@Serializable(BusinessConnection.Companion::class)
|
||||||
@ClassCastsIncluded
|
@ClassCastsIncluded
|
||||||
sealed interface BusinessConnection : WithBusinessConnectionId {
|
sealed interface BusinessConnection : WithBusinessConnectionId {
|
||||||
val id: BusinessConnectionId
|
val id: BusinessConnectionId
|
||||||
|
@ -59,6 +56,7 @@ sealed interface BusinessConnection : WithBusinessConnectionId {
|
||||||
override val isEnabled: Boolean = false
|
override val isEnabled: Boolean = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Serializer(BusinessConnection::class)
|
||||||
companion object : KSerializer<BusinessConnection> {
|
companion object : KSerializer<BusinessConnection> {
|
||||||
override val descriptor: SerialDescriptor
|
override val descriptor: SerialDescriptor
|
||||||
get() = RawBusinessConnection.serializer().descriptor
|
get() = RawBusinessConnection.serializer().descriptor
|
||||||
|
@ -69,8 +67,7 @@ sealed interface BusinessConnection : WithBusinessConnectionId {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun serialize(encoder: Encoder, value: BusinessConnection) {
|
override fun serialize(encoder: Encoder, value: BusinessConnection) {
|
||||||
|
RawBusinessConnection.serializer().serialize(encoder, RawBusinessConnection(value))
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,8 @@ package dev.inmo.tgbotapi.types.business_connection
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.abstracts.types.WithBusinessConnectionId
|
import dev.inmo.tgbotapi.abstracts.types.WithBusinessConnectionId
|
||||||
import dev.inmo.tgbotapi.abstracts.types.WithOptionalBusinessConnectionId
|
import dev.inmo.tgbotapi.abstracts.types.WithOptionalBusinessConnectionId
|
||||||
import dev.inmo.tgbotapi.types.MessageId
|
import dev.inmo.tgbotapi.types.*
|
||||||
import dev.inmo.tgbotapi.types.businessConnectionIdField
|
|
||||||
import dev.inmo.tgbotapi.types.chat.PreviewChat
|
import dev.inmo.tgbotapi.types.chat.PreviewChat
|
||||||
import dev.inmo.tgbotapi.types.chatField
|
|
||||||
import dev.inmo.tgbotapi.types.messageIdField
|
|
||||||
import kotlinx.serialization.SerialName
|
import kotlinx.serialization.SerialName
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
@ -16,6 +13,6 @@ data class BusinessMessagesDeleted(
|
||||||
override val businessConnectionId: BusinessConnectionId,
|
override val businessConnectionId: BusinessConnectionId,
|
||||||
@SerialName(chatField)
|
@SerialName(chatField)
|
||||||
val chat: PreviewChat,
|
val chat: PreviewChat,
|
||||||
@SerialName(messageIdField)
|
@SerialName(messageIdsField)
|
||||||
val messageId: MessageId
|
val messageIds: List<MessageId>
|
||||||
) : WithBusinessConnectionId
|
) : WithBusinessConnectionId
|
||||||
|
|
|
@ -12,7 +12,4 @@ data class BusinessOpeningHours(
|
||||||
val timeZoneName: String,
|
val timeZoneName: String,
|
||||||
@SerialName(openingHoursField)
|
@SerialName(openingHoursField)
|
||||||
val openingHours: List<BusinessOpeningHoursInterval>
|
val openingHours: List<BusinessOpeningHoursInterval>
|
||||||
) {
|
)
|
||||||
val timezone: Timezone
|
|
||||||
get() = Timezone.valueOf(timeZoneName)
|
|
||||||
}
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import kotlinx.serialization.SerialName
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class RawBusinessConnection(
|
internal data class RawBusinessConnection(
|
||||||
@SerialName(idField)
|
@SerialName(idField)
|
||||||
val id: BusinessConnectionId,
|
val id: BusinessConnectionId,
|
||||||
@SerialName(userField)
|
@SerialName(userField)
|
||||||
|
|
|
@ -42,7 +42,10 @@ data class KeyboardButtonRequestChat(
|
||||||
isOwnedBy: Boolean? = null,
|
isOwnedBy: Boolean? = null,
|
||||||
userRightsInChat: ChatCommonAdministratorRights? = null,
|
userRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botRightsInChat: ChatCommonAdministratorRights? = null,
|
botRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botIsMember: Boolean? = null
|
botIsMember: Boolean? = null,
|
||||||
|
requestTitle: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = KeyboardButtonRequestChat(
|
) = KeyboardButtonRequestChat(
|
||||||
requestId = requestId,
|
requestId = requestId,
|
||||||
isChannel = true,
|
isChannel = true,
|
||||||
|
@ -51,7 +54,10 @@ data class KeyboardButtonRequestChat(
|
||||||
isOwnedBy = isOwnedBy,
|
isOwnedBy = isOwnedBy,
|
||||||
userRightsInChat = userRightsInChat,
|
userRightsInChat = userRightsInChat,
|
||||||
botRightsInChat = botRightsInChat,
|
botRightsInChat = botRightsInChat,
|
||||||
botIsMember = botIsMember
|
botIsMember = botIsMember,
|
||||||
|
requestTitle = requestTitle,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto,
|
||||||
)
|
)
|
||||||
|
|
||||||
fun Group(
|
fun Group(
|
||||||
|
@ -61,7 +67,10 @@ data class KeyboardButtonRequestChat(
|
||||||
isOwnedBy: Boolean? = null,
|
isOwnedBy: Boolean? = null,
|
||||||
userRightsInChat: ChatCommonAdministratorRights? = null,
|
userRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botRightsInChat: ChatCommonAdministratorRights? = null,
|
botRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botIsMember: Boolean? = null
|
botIsMember: Boolean? = null,
|
||||||
|
requestTitle: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = KeyboardButtonRequestChat(
|
) = KeyboardButtonRequestChat(
|
||||||
requestId = requestId,
|
requestId = requestId,
|
||||||
isChannel = false,
|
isChannel = false,
|
||||||
|
@ -70,7 +79,10 @@ data class KeyboardButtonRequestChat(
|
||||||
isOwnedBy = isOwnedBy,
|
isOwnedBy = isOwnedBy,
|
||||||
userRightsInChat = userRightsInChat,
|
userRightsInChat = userRightsInChat,
|
||||||
botRightsInChat = botRightsInChat,
|
botRightsInChat = botRightsInChat,
|
||||||
botIsMember = botIsMember
|
botIsMember = botIsMember,
|
||||||
|
requestTitle = requestTitle,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,11 @@ import dev.inmo.tgbotapi.types.buttons.*
|
||||||
import dev.inmo.tgbotapi.types.chat.member.ChatCommonAdministratorRights
|
import dev.inmo.tgbotapi.types.chat.member.ChatCommonAdministratorRights
|
||||||
import dev.inmo.tgbotapi.types.keyboardButtonRequestUserLimit
|
import dev.inmo.tgbotapi.types.keyboardButtonRequestUserLimit
|
||||||
import dev.inmo.tgbotapi.types.request.RequestId
|
import dev.inmo.tgbotapi.types.request.RequestId
|
||||||
|
import dev.inmo.tgbotapi.types.requestNameField
|
||||||
|
import dev.inmo.tgbotapi.types.requestPhotoField
|
||||||
|
import dev.inmo.tgbotapi.types.requestUsernameField
|
||||||
import dev.inmo.tgbotapi.types.webapps.WebAppInfo
|
import dev.inmo.tgbotapi.types.webapps.WebAppInfo
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
import kotlin.math.max
|
import kotlin.math.max
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,10 +75,19 @@ inline fun requestUsersReplyButton(
|
||||||
inline fun requestBotsReplyButton(
|
inline fun requestBotsReplyButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestId: RequestId,
|
requestId: RequestId,
|
||||||
maxCount: Int = keyboardButtonRequestUserLimit.first
|
maxCount: Int = keyboardButtonRequestUserLimit.first,
|
||||||
|
requestName: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestUsersReplyButton(
|
) = requestUsersReplyButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestUsers.Bot(requestId, maxCount)
|
KeyboardButtonRequestUsers.Bot(
|
||||||
|
requestId = requestId,
|
||||||
|
maxCount = maxCount,
|
||||||
|
requestName = requestName,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -84,10 +97,20 @@ inline fun requestUsersReplyButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestId: RequestId,
|
requestId: RequestId,
|
||||||
premiumUser: Boolean? = null,
|
premiumUser: Boolean? = null,
|
||||||
maxCount: Int = keyboardButtonRequestUserLimit.first
|
maxCount: Int = keyboardButtonRequestUserLimit.first,
|
||||||
|
requestName: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestUsersReplyButton(
|
) = requestUsersReplyButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestUsers.Common(requestId, premiumUser, maxCount)
|
KeyboardButtonRequestUsers.Common(
|
||||||
|
requestId = requestId,
|
||||||
|
isPremium = premiumUser,
|
||||||
|
maxCount = maxCount,
|
||||||
|
requestName = requestName,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -97,12 +120,18 @@ inline fun requestUserReplyButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestId: RequestId,
|
requestId: RequestId,
|
||||||
premiumUser: Boolean? = null,
|
premiumUser: Boolean? = null,
|
||||||
maxCount: Int = keyboardButtonRequestUserLimit.first
|
maxCount: Int = keyboardButtonRequestUserLimit.first,
|
||||||
|
requestName: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestUsersReplyButton(
|
) = requestUsersReplyButton(
|
||||||
text,
|
text,
|
||||||
requestId,
|
requestId,
|
||||||
premiumUser,
|
premiumUser,
|
||||||
maxCount
|
maxCount,
|
||||||
|
requestName = requestName,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -112,10 +141,20 @@ inline fun requestUsersOrBotsReplyButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestId: RequestId,
|
requestId: RequestId,
|
||||||
premiumUser: Boolean? = null,
|
premiumUser: Boolean? = null,
|
||||||
maxCount: Int = keyboardButtonRequestUserLimit.first
|
maxCount: Int = keyboardButtonRequestUserLimit.first,
|
||||||
|
requestName: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestUsersReplyButton(
|
) = requestUsersReplyButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestUsers.Any(requestId, premiumUser, maxCount)
|
KeyboardButtonRequestUsers.Any(
|
||||||
|
requestId = requestId,
|
||||||
|
isPremium = premiumUser,
|
||||||
|
maxCount = maxCount,
|
||||||
|
requestName = requestName,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -123,10 +162,18 @@ inline fun requestUsersOrBotsReplyButton(
|
||||||
*/
|
*/
|
||||||
inline fun requestUserOrBotReplyButton(
|
inline fun requestUserOrBotReplyButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestId: RequestId
|
requestId: RequestId,
|
||||||
|
requestName: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestUsersReplyButton(
|
) = requestUsersReplyButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestUsers.Any(requestId)
|
KeyboardButtonRequestUsers.Any(
|
||||||
|
requestId = requestId,
|
||||||
|
requestName = requestName,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -153,7 +200,10 @@ inline fun requestChatReplyButton(
|
||||||
isOwnedBy: Boolean? = null,
|
isOwnedBy: Boolean? = null,
|
||||||
userRightsInChat: ChatCommonAdministratorRights? = null,
|
userRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botRightsInChat: ChatCommonAdministratorRights? = null,
|
botRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botIsMember: Boolean = false
|
botIsMember: Boolean = false,
|
||||||
|
requestTitle: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestChatReplyButton(
|
) = requestChatReplyButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestChat(
|
KeyboardButtonRequestChat(
|
||||||
|
@ -164,7 +214,10 @@ inline fun requestChatReplyButton(
|
||||||
isOwnedBy = isOwnedBy,
|
isOwnedBy = isOwnedBy,
|
||||||
userRightsInChat = userRightsInChat,
|
userRightsInChat = userRightsInChat,
|
||||||
botRightsInChat = botRightsInChat,
|
botRightsInChat = botRightsInChat,
|
||||||
botIsMember = botIsMember
|
botIsMember = botIsMember,
|
||||||
|
requestTitle = requestTitle,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -178,7 +231,10 @@ inline fun requestChannelReplyButton(
|
||||||
isOwnedBy: Boolean? = null,
|
isOwnedBy: Boolean? = null,
|
||||||
userRightsInChat: ChatCommonAdministratorRights? = null,
|
userRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botRightsInChat: ChatCommonAdministratorRights? = null,
|
botRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botIsMember: Boolean = false
|
botIsMember: Boolean = false,
|
||||||
|
requestTitle: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestChatReplyButton(
|
) = requestChatReplyButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestChat.Channel(
|
KeyboardButtonRequestChat.Channel(
|
||||||
|
@ -187,7 +243,10 @@ inline fun requestChannelReplyButton(
|
||||||
isOwnedBy = isOwnedBy,
|
isOwnedBy = isOwnedBy,
|
||||||
userRightsInChat = userRightsInChat,
|
userRightsInChat = userRightsInChat,
|
||||||
botRightsInChat = botRightsInChat,
|
botRightsInChat = botRightsInChat,
|
||||||
botIsMember = botIsMember
|
botIsMember = botIsMember,
|
||||||
|
requestTitle = requestTitle,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -203,7 +262,10 @@ inline fun requestChannelReplyButton(
|
||||||
isOwnedBy: Boolean? = null,
|
isOwnedBy: Boolean? = null,
|
||||||
userRightsInChat: ChatCommonAdministratorRights? = null,
|
userRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botRightsInChat: ChatCommonAdministratorRights? = null,
|
botRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botIsMember: Boolean? = null
|
botIsMember: Boolean? = null,
|
||||||
|
requestTitle: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestChatReplyButton(
|
) = requestChatReplyButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestChat.Group(
|
KeyboardButtonRequestChat.Group(
|
||||||
|
@ -213,6 +275,9 @@ inline fun requestChannelReplyButton(
|
||||||
isOwnedBy = isOwnedBy,
|
isOwnedBy = isOwnedBy,
|
||||||
userRightsInChat = userRightsInChat,
|
userRightsInChat = userRightsInChat,
|
||||||
botRightsInChat = botRightsInChat,
|
botRightsInChat = botRightsInChat,
|
||||||
botIsMember = botIsMember
|
botIsMember = botIsMember,
|
||||||
|
requestTitle = requestTitle,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -49,6 +49,7 @@ internal data class RawUpdate constructor(
|
||||||
private val message_reaction_count: ChatMessageReactionsCountUpdated? = null,
|
private val message_reaction_count: ChatMessageReactionsCountUpdated? = null,
|
||||||
private val chat_boost: ChatBoostUpdated? = null,
|
private val chat_boost: ChatBoostUpdated? = null,
|
||||||
private val removed_chat_boost: ChatBoostRemoved? = null,
|
private val removed_chat_boost: ChatBoostRemoved? = null,
|
||||||
|
@Serializable(BusinessConnection.Companion::class)
|
||||||
private val business_connection: BusinessConnection? = null,
|
private val business_connection: BusinessConnection? = null,
|
||||||
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
||||||
private val business_message: BusinessContentMessage<*>? = null,
|
private val business_message: BusinessContentMessage<*>? = null,
|
||||||
|
|
|
@ -3196,27 +3196,29 @@ public final class dev/inmo/tgbotapi/extensions/utils/types/buttons/ReplyKeyboar
|
||||||
public static synthetic fun flatReplyKeyboard$default (Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/ReplyKeyboardMarkup;
|
public static synthetic fun flatReplyKeyboard$default (Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/ReplyKeyboardMarkup;
|
||||||
public static final fun replyKeyboard (Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/jvm/functions/Function1;)Ldev/inmo/tgbotapi/types/buttons/ReplyKeyboardMarkup;
|
public static final fun replyKeyboard (Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/jvm/functions/Function1;)Ldev/inmo/tgbotapi/types/buttons/ReplyKeyboardMarkup;
|
||||||
public static synthetic fun replyKeyboard$default (Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/ReplyKeyboardMarkup;
|
public static synthetic fun replyKeyboard$default (Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/ReplyKeyboardMarkup;
|
||||||
public static final fun requestBotButton-k9yqfdo (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;S)Z
|
public static final fun requestBotButton-6J3sOes (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
||||||
public static final fun requestBotsButton-t22p7TQ (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SI)Z
|
public static synthetic fun requestBotButton-6J3sOes$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
||||||
public static synthetic fun requestBotsButton-t22p7TQ$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SIILjava/lang/Object;)Z
|
public static final fun requestBotsButton-6xNxnbw (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
||||||
public static final fun requestChannelButton-XjXd-ic (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;)Z
|
public static synthetic fun requestBotsButton-6xNxnbw$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
||||||
public static synthetic fun requestChannelButton-XjXd-ic$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
public static final fun requestChannelButton-cvDvKfo (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
||||||
|
public static synthetic fun requestChannelButton-cvDvKfo$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
||||||
public static final fun requestChatButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;)Z
|
public static final fun requestChatButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;)Z
|
||||||
public static final fun requestChatButton-Lj92p0I (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;)Z
|
public static final fun requestChatButton-n4yCVdQ (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
||||||
public static synthetic fun requestChatButton-Lj92p0I$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
public static synthetic fun requestChatButton-n4yCVdQ$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
||||||
public static final fun requestContactButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
public static final fun requestContactButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
||||||
public static final fun requestGroupButton-GP8XSDU (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;)Z
|
public static final fun requestGroupButton-dh25vGQ (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
||||||
public static synthetic fun requestGroupButton-GP8XSDU$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
public static synthetic fun requestGroupButton-dh25vGQ$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
||||||
public static final fun requestLocationButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
public static final fun requestLocationButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
||||||
public static final fun requestPollButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonPollType;)Z
|
public static final fun requestPollButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonPollType;)Z
|
||||||
public static final fun requestUserButton-t22p7TQ (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;)Z
|
public static final fun requestUserButton-6xNxnbw (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
||||||
public static synthetic fun requestUserButton-t22p7TQ$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Object;)Z
|
public static synthetic fun requestUserButton-6xNxnbw$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
||||||
public static final fun requestUserOrBotButton-k9yqfdo (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;S)Z
|
public static final fun requestUserOrBotButton-6J3sOes (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
||||||
|
public static synthetic fun requestUserOrBotButton-6J3sOes$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
||||||
public static final fun requestUsersButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestUsers;)Z
|
public static final fun requestUsersButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestUsers;)Z
|
||||||
public static final fun requestUsersButton-0GQog4c (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;I)Z
|
public static final fun requestUsersButton-XjXd-ic (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
||||||
public static synthetic fun requestUsersButton-0GQog4c$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;IILjava/lang/Object;)Z
|
public static synthetic fun requestUsersButton-XjXd-ic$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
||||||
public static final fun requestUsersOrBotsButton-0GQog4c (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;I)Z
|
public static final fun requestUsersOrBotsButton-XjXd-ic (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
||||||
public static synthetic fun requestUsersOrBotsButton-0GQog4c$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;IILjava/lang/Object;)Z
|
public static synthetic fun requestUsersOrBotsButton-XjXd-ic$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
||||||
public static final fun simpleButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
public static final fun simpleButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
||||||
public static final fun webAppButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/webapps/WebAppInfo;)Z
|
public static final fun webAppButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/webapps/WebAppInfo;)Z
|
||||||
public static final fun webAppButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
public static final fun webAppButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
||||||
|
|
|
@ -158,10 +158,19 @@ inline fun ReplyKeyboardRowBuilder.requestUsersButton(
|
||||||
inline fun ReplyKeyboardRowBuilder.requestBotsButton(
|
inline fun ReplyKeyboardRowBuilder.requestBotsButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestId: RequestId,
|
requestId: RequestId,
|
||||||
maxCount: Int = keyboardButtonRequestUserLimit.first
|
maxCount: Int = keyboardButtonRequestUserLimit.first,
|
||||||
|
requestName: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestUsersButton(
|
) = requestUsersButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestUsers.Bot(requestId, maxCount)
|
KeyboardButtonRequestUsers.Bot(
|
||||||
|
requestId = requestId,
|
||||||
|
maxCount = maxCount,
|
||||||
|
requestName = requestName,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -172,11 +181,17 @@ inline fun ReplyKeyboardRowBuilder.requestBotsButton(
|
||||||
*/
|
*/
|
||||||
inline fun ReplyKeyboardRowBuilder.requestBotButton(
|
inline fun ReplyKeyboardRowBuilder.requestBotButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestId: RequestId
|
requestId: RequestId,
|
||||||
|
requestName: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestBotsButton(
|
) = requestBotsButton(
|
||||||
text,
|
text,
|
||||||
requestId,
|
requestId,
|
||||||
maxCount = keyboardButtonRequestUserLimit.first
|
maxCount = keyboardButtonRequestUserLimit.first,
|
||||||
|
requestName = requestName,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -189,10 +204,20 @@ inline fun ReplyKeyboardRowBuilder.requestUsersButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestId: RequestId,
|
requestId: RequestId,
|
||||||
premiumUser: Boolean? = null,
|
premiumUser: Boolean? = null,
|
||||||
maxCount: Int = keyboardButtonRequestUserLimit.first
|
maxCount: Int = keyboardButtonRequestUserLimit.first,
|
||||||
|
requestName: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestUsersButton(
|
) = requestUsersButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestUsers.Common(requestId, premiumUser, maxCount)
|
KeyboardButtonRequestUsers.Common(
|
||||||
|
requestId = requestId,
|
||||||
|
isPremium = premiumUser,
|
||||||
|
maxCount = maxCount,
|
||||||
|
requestName = requestName,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -204,8 +229,19 @@ inline fun ReplyKeyboardRowBuilder.requestUsersButton(
|
||||||
inline fun ReplyKeyboardRowBuilder.requestUserButton(
|
inline fun ReplyKeyboardRowBuilder.requestUserButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestId: RequestId,
|
requestId: RequestId,
|
||||||
premiumUser: Boolean? = null
|
premiumUser: Boolean? = null,
|
||||||
) = requestUsersButton(text, requestId, premiumUser, maxCount = keyboardButtonRequestUserLimit.first)
|
requestName: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
|
) = requestUsersButton(
|
||||||
|
text = text,
|
||||||
|
requestId = requestId,
|
||||||
|
premiumUser = premiumUser,
|
||||||
|
maxCount = keyboardButtonRequestUserLimit.first,
|
||||||
|
requestName = requestName,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto
|
||||||
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [RequestUserKeyboardButton] with [KeyboardButtonRequestUsers.Any]
|
* Creates and put [RequestUserKeyboardButton] with [KeyboardButtonRequestUsers.Any]
|
||||||
|
@ -217,10 +253,20 @@ inline fun ReplyKeyboardRowBuilder.requestUsersOrBotsButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestId: RequestId,
|
requestId: RequestId,
|
||||||
premiumUser: Boolean? = null,
|
premiumUser: Boolean? = null,
|
||||||
maxCount: Int = keyboardButtonRequestUserLimit.first
|
maxCount: Int = keyboardButtonRequestUserLimit.first,
|
||||||
|
requestName: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestUsersButton(
|
) = requestUsersButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestUsers.Any(requestId, premiumUser, maxCount)
|
KeyboardButtonRequestUsers.Any(
|
||||||
|
requestId = requestId,
|
||||||
|
isPremium = premiumUser,
|
||||||
|
maxCount = maxCount,
|
||||||
|
requestName = requestName,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -231,11 +277,17 @@ inline fun ReplyKeyboardRowBuilder.requestUsersOrBotsButton(
|
||||||
*/
|
*/
|
||||||
inline fun ReplyKeyboardRowBuilder.requestUserOrBotButton(
|
inline fun ReplyKeyboardRowBuilder.requestUserOrBotButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestId: RequestId
|
requestId: RequestId,
|
||||||
|
requestName: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestUsersOrBotsButton(
|
) = requestUsersOrBotsButton(
|
||||||
text,
|
text = text,
|
||||||
requestId,
|
requestId = requestId,
|
||||||
maxCount = keyboardButtonRequestUserLimit.first
|
maxCount = keyboardButtonRequestUserLimit.first,
|
||||||
|
requestName = requestName,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -270,7 +322,10 @@ inline fun ReplyKeyboardRowBuilder.requestChatButton(
|
||||||
isOwnedBy: Boolean? = null,
|
isOwnedBy: Boolean? = null,
|
||||||
userRightsInChat: ChatCommonAdministratorRights? = null,
|
userRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botRightsInChat: ChatCommonAdministratorRights? = null,
|
botRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botIsMember: Boolean? = null
|
botIsMember: Boolean? = null,
|
||||||
|
requestTitle: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestChatButton(
|
) = requestChatButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestChat(
|
KeyboardButtonRequestChat(
|
||||||
|
@ -281,7 +336,10 @@ inline fun ReplyKeyboardRowBuilder.requestChatButton(
|
||||||
isOwnedBy = isOwnedBy,
|
isOwnedBy = isOwnedBy,
|
||||||
userRightsInChat = userRightsInChat,
|
userRightsInChat = userRightsInChat,
|
||||||
botRightsInChat = botRightsInChat,
|
botRightsInChat = botRightsInChat,
|
||||||
botIsMember = botIsMember
|
botIsMember = botIsMember,
|
||||||
|
requestTitle = requestTitle,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -298,7 +356,10 @@ inline fun ReplyKeyboardRowBuilder.requestChannelButton(
|
||||||
isOwnedBy: Boolean? = null,
|
isOwnedBy: Boolean? = null,
|
||||||
userRightsInChat: ChatCommonAdministratorRights? = null,
|
userRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botRightsInChat: ChatCommonAdministratorRights? = null,
|
botRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botIsMember: Boolean? = null
|
botIsMember: Boolean? = null,
|
||||||
|
requestTitle: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestChatButton(
|
) = requestChatButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestChat.Channel(
|
KeyboardButtonRequestChat.Channel(
|
||||||
|
@ -307,7 +368,10 @@ inline fun ReplyKeyboardRowBuilder.requestChannelButton(
|
||||||
isOwnedBy = isOwnedBy,
|
isOwnedBy = isOwnedBy,
|
||||||
userRightsInChat = userRightsInChat,
|
userRightsInChat = userRightsInChat,
|
||||||
botRightsInChat = botRightsInChat,
|
botRightsInChat = botRightsInChat,
|
||||||
botIsMember = botIsMember
|
botIsMember = botIsMember,
|
||||||
|
requestTitle = requestTitle,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -325,7 +389,10 @@ inline fun ReplyKeyboardRowBuilder.requestGroupButton(
|
||||||
isOwnedBy: Boolean? = null,
|
isOwnedBy: Boolean? = null,
|
||||||
userRightsInChat: ChatCommonAdministratorRights? = null,
|
userRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botRightsInChat: ChatCommonAdministratorRights? = null,
|
botRightsInChat: ChatCommonAdministratorRights? = null,
|
||||||
botIsMember: Boolean? = null
|
botIsMember: Boolean? = null,
|
||||||
|
requestTitle: Boolean? = null,
|
||||||
|
requestUsername: Boolean? = null,
|
||||||
|
requestPhoto: Boolean? = null,
|
||||||
) = requestChatButton(
|
) = requestChatButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestChat.Group(
|
KeyboardButtonRequestChat.Group(
|
||||||
|
@ -335,6 +402,9 @@ inline fun ReplyKeyboardRowBuilder.requestGroupButton(
|
||||||
isOwnedBy = isOwnedBy,
|
isOwnedBy = isOwnedBy,
|
||||||
userRightsInChat = userRightsInChat,
|
userRightsInChat = userRightsInChat,
|
||||||
botRightsInChat = botRightsInChat,
|
botRightsInChat = botRightsInChat,
|
||||||
botIsMember = botIsMember
|
botIsMember = botIsMember,
|
||||||
|
requestTitle = requestTitle,
|
||||||
|
requestUsername = requestUsername,
|
||||||
|
requestPhoto = requestPhoto,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue