Skip to content

Commit 110dff3

Browse files
committed
Fix parameter names for EditUserStarSubscription, SavePreparedInlineMessage, SetUserEmojiStatus
1 parent 0d098b5 commit 110dff3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

library/src/main/java/com/pengrad/telegrambot/request/EditUserStarSubscription.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class EditUserStarSubscription(
99
isCanceled: Boolean
1010
) : KBaseRequest<EditUserStarSubscription, BaseResponse>(BaseResponse::class) {
1111

12-
val userId: Long by requestParameter(userId)
12+
val userId: Long by requestParameter(userId, customParameterName = "user_id")
1313
val telegramPaymentChargeId: String by requestParameter(telegramPaymentChargeId, customParameterName = "telegram_payment_charge_id")
1414
val isCanceled: Boolean by requestParameter(isCanceled, customParameterName = "is_canceled")
1515

library/src/main/java/com/pengrad/telegrambot/request/SavePreparedInlineMessage.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class SavePreparedInlineMessage(
1313
SavePreparedInlineMessageResponse::class
1414
) {
1515

16-
val userId: Long by requestParameter(userId)
16+
val userId: Long by requestParameter(userId, customParameterName = "user_id")
1717
val result: InlineQueryResult<*> by requestParameter(result)
1818

1919
var allowUserChats: Boolean? by optionalRequestParameter(customParameterName = "allow_user_chats")

library/src/main/java/com/pengrad/telegrambot/request/SetUserEmojiStatus.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class SetUserEmojiStatus(
99
emojiStatusExpirationDate: Int
1010
) : KBaseRequest<SetUserEmojiStatus, BaseResponse>(BaseResponse::class) {
1111

12-
val userId: Long by requestParameter(userId)
12+
val userId: Long by requestParameter(userId, customParameterName = "user_id")
1313
val emojiStatusCustomEmojiId: String by requestParameter(emojiStatusCustomEmojiId, customParameterName = "emoji_status_custom_emoji_id")
1414
val emojiStatusExpirationDate: Int by requestParameter(emojiStatusExpirationDate, customParameterName = "emoji_status_expiration_date")
1515

0 commit comments

Comments
 (0)