1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-10-31 21:43:48 +00:00

Add content-oriented typealiases for messages

This commit is contained in:
d1snin 2022-07-18 11:02:13 +03:00
parent 01dfedf540
commit b5006cd1e0
No known key found for this signature in database
GPG Key ID: 331A7ED19E9DEF42

View File

@ -0,0 +1,21 @@
package dev.inmo.tgbotapi.types.message.content
import dev.inmo.tgbotapi.types.message.abstracts.CommonMessage
typealias ContactMessage = CommonMessage<ContactContent>
typealias VenueMessage = CommonMessage<VenueContent>
typealias PollMessage = CommonMessage<PollContent>
typealias DiceMessage = CommonMessage<DiceContent>
typealias GameMEssage = CommonMessage<GameContent>
typealias TextMessage = CommonMessage<TextContent>
typealias LocationMessage = CommonMessage<LocationContent>
typealias PhotoMessage = CommonMessage<PhotoContent>
typealias VideoMessage = CommonMessage<VideoContent>
typealias AudioMessage = CommonMessage<AudioContent>
typealias DocumentMessage = CommonMessage<DocumentContent>
typealias VoiceMessage = CommonMessage<VoiceContent>
typealias VideoNoteMessage = CommonMessage<VideoNoteContent>
typealias AnimationMessage = CommonMessage<AnimationContent>
typealias StickerMessage = CommonMessage<StickerContent>
typealias InvoiceMessage = CommonMessage<InvoiceContent>
typealias MediaCollectionMessage<T> = CommonMessage<MediaCollectionContent<T>>