From 0b42e9ebaf1f666855fbc42519e174bb05d63bd6 Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Fri, 12 Jul 2024 00:33:30 +0200 Subject: [PATCH] fix: ReplyParameters(Message from different chat) --- .azure-pipelines/variables.yml | 2 +- src/Telegram.Bot/Extend.Types.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/variables.yml b/.azure-pipelines/variables.yml index dd6628f4e..c9f4ddad9 100644 --- a/.azure-pipelines/variables.yml +++ b/.azure-pipelines/variables.yml @@ -1,7 +1,7 @@ variables: - group: Integration Tests Variables - name: versionPrefix - value: 21.6.1 + value: 21.6.2 - name: versionSuffix value: '' - name: ciVersionSuffix diff --git a/src/Telegram.Bot/Extend.Types.cs b/src/Telegram.Bot/Extend.Types.cs index 59079c8b0..655273e03 100644 --- a/src/Telegram.Bot/Extend.Types.cs +++ b/src/Telegram.Bot/Extend.Types.cs @@ -96,8 +96,8 @@ public partial class ReplyParameters { /// Implicit operator when you just want to reply to a message in same chat public static implicit operator ReplyParameters(int replyToMessageId) => new() { MessageId = replyToMessageId }; - /// Implicit operator when you just want to reply to a message in same chat - public static implicit operator ReplyParameters(Message msg) => new() { MessageId = msg.MessageId }; + /// Implicit operator when you just want to reply to a message + public static implicit operator ReplyParameters(Message msg) => new() { MessageId = msg.MessageId, ChatId = msg.Chat.Id }; } public partial class MessageId