mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-26 03:58:44 +00:00
FromUserMessage extends Message
This commit is contained in:
parent
9982534001
commit
5451adf4ac
@ -9,6 +9,9 @@
|
|||||||
* `Core`:
|
* `Core`:
|
||||||
* All `TextSource` implementators have become `Serializable`
|
* All `TextSource` implementators have become `Serializable`
|
||||||
* New serializer `TextSourceSerializer`
|
* New serializer `TextSourceSerializer`
|
||||||
|
* Interface`FromUserMessage` now extends `Message`
|
||||||
|
* New interface `FromUser`
|
||||||
|
* Interface `FromUserMessage` now extends `FromUser`
|
||||||
* `Extensions Utils`
|
* `Extensions Utils`
|
||||||
* Fixes in `parseCommandsWithParams`
|
* Fixes in `parseCommandsWithParams`
|
||||||
|
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
package dev.inmo.tgbotapi.CommonAbstracts
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.User
|
||||||
|
|
||||||
|
interface FromUser {
|
||||||
|
val user: User
|
||||||
|
}
|
@ -1,7 +1,5 @@
|
|||||||
package dev.inmo.tgbotapi.types.message.abstracts
|
package dev.inmo.tgbotapi.types.message.abstracts
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.types.User
|
import dev.inmo.tgbotapi.CommonAbstracts.FromUser
|
||||||
|
|
||||||
interface FromUserMessage {
|
interface FromUserMessage : FromUser, Message
|
||||||
val user: User
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user