1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 16:47:13 +00:00

FromUserMessage extends Message

This commit is contained in:
InsanusMokrassar 2021-04-16 18:07:27 +06:00
parent 9982534001
commit 5451adf4ac
3 changed files with 12 additions and 4 deletions

View File

@ -9,6 +9,9 @@
* `Core`:
* All `TextSource` implementators have become `Serializable`
* New serializer `TextSourceSerializer`
* Interface`FromUserMessage` now extends `Message`
* New interface `FromUser`
* Interface `FromUserMessage` now extends `FromUser`
* `Extensions Utils`
* Fixes in `parseCommandsWithParams`

View File

@ -0,0 +1,7 @@
package dev.inmo.tgbotapi.CommonAbstracts
import dev.inmo.tgbotapi.types.User
interface FromUser {
val user: User
}

View File

@ -1,7 +1,5 @@
package dev.inmo.tgbotapi.types.message.abstracts
import dev.inmo.tgbotapi.types.User
import dev.inmo.tgbotapi.CommonAbstracts.FromUser
interface FromUserMessage {
val user: User
}
interface FromUserMessage : FromUser, Message