Content-Length: 301977 | pFad | http://github.com/pengrad/java-telegram-bot-api/commit/6c2dd9cca286a6f6ccaf9c6bd36598b176f52a89

7A Fix sendVideo test: apply @JvmSynthetic only to getters & make SendGi… · pengrad/java-telegram-bot-api@6c2dd9c · GitHub
Skip to content

Commit 6c2dd9c

Browse files
committed
Fix sendVideo test: apply @JvmSynthetic only to getters & make SendGift#fromChatId @JvmStatic
1 parent a1b18ad commit 6c2dd9c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ data class Video(
44
@get:JvmName("fileId") val fileId: String,
55
@get:JvmName("fileUniqueId") val fileUniqueId: String,
66

7-
@JvmSynthetic val width: Int,
8-
@JvmSynthetic val height: Int,
9-
@JvmSynthetic val duration: Int,
7+
@get:JvmSynthetic val width: Int,
8+
@get:JvmSynthetic val height: Int,
9+
@get:JvmSynthetic val duration: Int,
1010

1111
@get:JvmName("thumbnail") val thumbnail: PhotoSize? = null,
1212
@get:JvmName("cover") val cover: List<PhotoSize>? = null,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SendGift private constructor(
2222
giftId = giftId
2323
)
2424

25-
@JvmSynthetic
25+
@JvmStatic
2626
fun fromChatId(chatId: Long, giftId: String) =
2727
SendGift(
2828
chatId = chatId,

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/pengrad/java-telegram-bot-api/commit/6c2dd9cca286a6f6ccaf9c6bd36598b176f52a89

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy