Skip to content

Commit 3142914

Browse files
authored
Merge pull request #427 from mircoianese/api_9.2_fixes
Field "topicId" in DirectMessagesTopic updated to type Long
2 parents 51156fd + beaa08c commit 3142914

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/src/main/java/com/pengrad/telegrambot/model/DirectMessagesTopic.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.pengrad.telegrambot.model
22

33
@Suppress("unused")
44
data class DirectMessagesTopic (
5-
@get:JvmName("topicId") val topicId: Int,
5+
@get:JvmName("topicId") val topicId: Long,
66
@get:JvmName("user") val user: User?
77
) {
88
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ abstract class AbstractSendRequest<REQ : AbstractSendRequest<REQ>>(
1616

1717
var businessConnectionId: String? by optionalRequestParameter()
1818
var messageThreadId: Int? by optionalRequestParameter()
19-
var directMessagesTopicId: Int? by optionalRequestParameter()
19+
var directMessagesTopicId: Long? by optionalRequestParameter()
2020
var disableNotification: Boolean? by optionalRequestParameter()
2121
var protectContent: Boolean? by optionalRequestParameter()
2222
var allowPaidBroadcast: Boolean? by optionalRequestParameter()
@@ -29,7 +29,7 @@ abstract class AbstractSendRequest<REQ : AbstractSendRequest<REQ>>(
2929

3030
fun messageThreadId(messageThreadId: Int) = applySelf { this.messageThreadId = messageThreadId }
3131

32-
fun directMessagesTopicId(directMessagesTopicId: Int) = applySelf { this.directMessagesTopicId = directMessagesTopicId }
32+
fun directMessagesTopicId(directMessagesTopicId: Long) = applySelf { this.directMessagesTopicId = directMessagesTopicId }
3333

3434
fun disableNotification(disableNotification: Boolean) = applySelf { this.disableNotification = disableNotification }
3535

0 commit comments

Comments
 (0)