support of protect_content

This commit is contained in:
InsanusMokrassar committed 2022-01-01 20:13:22 +06:00
1 parent 148791ad68
commit 5c6a430f38
59 files changed
+521 -152

No files matched your search

@@ -29,29 +29,35 @@ val SentMediaGroupUpdate.mediaGroupId: MediaGroupIdentifier
fun List<CommonMessage<MediaGroupContent>>.createResend(
chatId: ChatId,
disableNotification: Boolean = false,
protectContent: Boolean = false,
replyTo: MessageIdentifier? = null
) = SendMediaGroup<MediaGroupContent>(
chatId,
map { it.content.toMediaGroupMemberInputMedia() },
disableNotification,
protectContent,
replyTo
)
fun List<CommonMessage<MediaGroupContent>>.createResend(
chat: Chat,
disableNotification: Boolean = false,
protectContent: Boolean = false,
replyTo: MessageIdentifier? = null
) = createResend(
chat.id,
disableNotification,
protectContent,
replyTo
)
fun SentMediaGroupUpdate.createResend(
disableNotification: Boolean = false,
protectContent: Boolean = false,
replyTo: MessageIdentifier? = null
) = data.createResend(
chat,
disableNotification,
protectContent,
replyTo
)