Skip to content

Commit

Permalink
Merge pull request #1400 from TelegramBots/develop
Browse files Browse the repository at this point in the history
fix: ReplyParameters(Message from different chat)
  • Loading branch information
wiz0u committed Jul 11, 2024
2 parents d5cb767 + 0b42e9e commit 91dc795
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/variables.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variables:
- group: Integration Tests Variables
- name: versionPrefix
value: 21.6.1
value: 21.6.2
- name: versionSuffix
value: ''
- name: ciVersionSuffix
Expand Down
4 changes: 2 additions & 2 deletions src/Telegram.Bot/Extend.Types.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ public partial class ReplyParameters
{
/// <summary>Implicit operator when you just want to reply to a message in same chat</summary>
public static implicit operator ReplyParameters(int replyToMessageId) => new() { MessageId = replyToMessageId };
/// <summary>Implicit operator when you just want to reply to a message in same chat</summary>
public static implicit operator ReplyParameters(Message msg) => new() { MessageId = msg.MessageId };
/// <summary>Implicit operator when you just want to reply to a message</summary>
public static implicit operator ReplyParameters(Message msg) => new() { MessageId = msg.MessageId, ChatId = msg.Chat.Id };
}

public partial class MessageId
Expand Down

0 comments on commit 91dc795

Please sign in to comment.