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

rename replyInChat -> replyInChatId; replace AccessibleMessage by Message in Reply parts

This commit is contained in:
InsanusMokrassar 2024-01-12 01:18:25 +06:00
parent 4d92588390
commit d88fc2c9c0
4 changed files with 448 additions and 448 deletions

View File

@ -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
} }

View File

@ -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?