Now all media sending factories which contains "thumb" have default "null" value

This commit is contained in:
InsanusMokrassar 2019-01-20 13:13:42 +08:00
parent a1fd6dd899
commit bc0606e879
7 changed files with 7 additions and 6 deletions

View File

@ -29,3 +29,4 @@
* VideoNote * VideoNote
* Voice * Voice
* `MessageContent` now is `ResendableContent` * `MessageContent` now is `ResendableContent`
* Now all media sending factories which contains `thumb` have default `null` value

View File

@ -14,7 +14,7 @@ import kotlinx.serialization.*
fun SendAnimation( fun SendAnimation(
chatId: ChatIdentifier, chatId: ChatIdentifier,
animation: InputFile, animation: InputFile,
thumb: InputFile?, thumb: InputFile? = null,
caption: String? = null, caption: String? = null,
parseMode: ParseMode? = null, parseMode: ParseMode? = null,
duration: Long? = null, duration: Long? = null,

View File

@ -14,7 +14,7 @@ import kotlinx.serialization.*
fun SendAudio( fun SendAudio(
chatId: ChatIdentifier, chatId: ChatIdentifier,
audio: InputFile, audio: InputFile,
thumb: InputFile?, thumb: InputFile? = null,
caption: String? = null, caption: String? = null,
parseMode: ParseMode? = null, parseMode: ParseMode? = null,
duration: Long? = null, duration: Long? = null,

View File

@ -14,7 +14,7 @@ import kotlinx.serialization.*
fun SendDocument( fun SendDocument(
chatId: ChatIdentifier, chatId: ChatIdentifier,
document: InputFile, document: InputFile,
thumb: InputFile?, thumb: InputFile? = null,
caption: String? = null, caption: String? = null,
parseMode: ParseMode? = null, parseMode: ParseMode? = null,
disableNotification: Boolean = false, disableNotification: Boolean = false,

View File

@ -14,7 +14,7 @@ import kotlinx.serialization.*
fun SendVideo( fun SendVideo(
chatId: ChatIdentifier, chatId: ChatIdentifier,
video: InputFile, video: InputFile,
thumb: InputFile?, thumb: InputFile? = null,
caption: String? = null, caption: String? = null,
parseMode: ParseMode? = null, parseMode: ParseMode? = null,
duration: Long? = null, duration: Long? = null,

View File

@ -14,7 +14,7 @@ import kotlinx.serialization.*
fun SendVideoNote( fun SendVideoNote(
chatId: ChatIdentifier, chatId: ChatIdentifier,
videoNote: InputFile, videoNote: InputFile,
thumb: InputFile?, thumb: InputFile? = null,
caption: String? = null, caption: String? = null,
parseMode: ParseMode? = null, parseMode: ParseMode? = null,
duration: Long? = null, duration: Long? = null,

View File

@ -14,7 +14,7 @@ import kotlinx.serialization.*
fun SendVoice( fun SendVoice(
chatId: ChatIdentifier, chatId: ChatIdentifier,
voice: InputFile, voice: InputFile,
thumb: InputFile?, thumb: InputFile? = null,
caption: String? = null, caption: String? = null,
parseMode: ParseMode? = null, parseMode: ParseMode? = null,
duration: Long? = null, duration: Long? = null,