mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-26 03:58:44 +00:00
rename replyInChat -> replyInChatId; replace AccessibleMessage by Message in Reply parts
This commit is contained in:
parent
4d92588390
commit
d88fc2c9c0
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -4,6 +4,6 @@ import dev.inmo.tgbotapi.types.ReplyInfo
|
|||||||
|
|
||||||
interface PossiblyReplyMessage {
|
interface PossiblyReplyMessage {
|
||||||
val replyInfo: ReplyInfo?
|
val replyInfo: ReplyInfo?
|
||||||
val replyTo: AccessibleMessage?
|
val replyTo: Message?
|
||||||
get() = (replyInfo as? ReplyInfo.Internal) ?.message
|
get() = (replyInfo as? ReplyInfo.Internal) ?.message
|
||||||
}
|
}
|
@ -50,7 +50,7 @@ inline val AccessibleMessage.forward_date: TelegramDate?
|
|||||||
inline val AccessibleMessage.is_automatic_forward: Boolean?
|
inline val AccessibleMessage.is_automatic_forward: Boolean?
|
||||||
get() = this is ConnectedFromChannelGroupContentMessage<*>
|
get() = this is ConnectedFromChannelGroupContentMessage<*>
|
||||||
@RiskFeature(RawFieldsUsageWarning)
|
@RiskFeature(RawFieldsUsageWarning)
|
||||||
inline val AccessibleMessage.reply_to_message: AccessibleMessage?
|
inline val AccessibleMessage.reply_to_message: Message?
|
||||||
get() = asPossiblyReplyMessage() ?.replyTo
|
get() = asPossiblyReplyMessage() ?.replyTo
|
||||||
@RiskFeature(RawFieldsUsageWarning)
|
@RiskFeature(RawFieldsUsageWarning)
|
||||||
inline val AccessibleMessage.via_bot: CommonBot?
|
inline val AccessibleMessage.via_bot: CommonBot?
|
||||||
|
Loading…
Reference in New Issue
Block a user