Skip to content

Commit

Permalink
Fix return type of TelegramBot.ForwardMessages
Browse files Browse the repository at this point in the history
  • Loading branch information
HedgehogNSK committed May 19, 2024
1 parent 426ef82 commit 70f0d2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RxTelegram.Bot/TelegramBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1282,8 +1282,8 @@ public Task<bool> DeleteMessages(DeleteMessages deleteMessages, CancellationToke
/// <param name="forwardMessages">MessageIds to forward</param>
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
/// <returns>Returns True on success.</returns>
public Task<bool> ForwardMessages(ForwardMessages forwardMessages, CancellationToken cancellationToken = default) =>
Post<bool>("forwardMessages", forwardMessages, cancellationToken);
public Task<MessageIdObject[]> ForwardMessages(ForwardMessages forwardMessages, CancellationToken cancellationToken = default) =>
Post<MessageIdObject[]>("forwardMessages", forwardMessages, cancellationToken);

/// <summary>
/// Use this method to get the list of boosts added to a chat by a user. Requires administrator rights in the chat.
Expand Down

0 comments on commit 70f0d2c

Please sign in to comment.