Skip to content

Commit 7976857

Browse files
committed
Fix xml
Signed-off-by: Niklas Weimann <[email protected]>
1 parent c4235ea commit 7976857

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed

src/RxTelegram.Bot/ITelegramBot.cs

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,4 +1256,47 @@ Task<ChatInviteLink> CreateChatSubscriptionInviteLink(
12561256
Task<ChatInviteLink> EditChatSubscriptionInviteLink(
12571257
EditChatSubscriptionInviteLink editChatSubscriptionInviteLink,
12581258
CancellationToken cancellationToken = default);
1259+
1260+
/// <summary>
1261+
/// Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars.
1262+
/// </summary>
1263+
/// <param name="editUserStarSubscription">Details for the subscription update</param>
1264+
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
1265+
/// <returns>Returns True on success.</returns>
1266+
Task<bool> EditUserStarSubscription(
1267+
EditUserStarSubscription editUserStarSubscription,
1268+
CancellationToken cancellationToken = default);
1269+
1270+
/// <summary>
1271+
/// Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method requestEmojiStatusAccess
1272+
/// </summary>
1273+
/// <param name="setUserEmojiStatus">Status to set for the user</param>
1274+
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
1275+
/// <returns>Returns True on success.</returns>
1276+
Task<bool> SetUserEmojiStatus(SetUserEmojiStatus setUserEmojiStatus, CancellationToken cancellationToken = default);
1277+
1278+
/// <summary>
1279+
/// Stores a message that can be sent by a user of a Mini App
1280+
/// </summary>
1281+
/// <param name="savePreparedInlineMessage">Prepared inline Message to save</param>
1282+
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
1283+
/// <returns>Returns a <see cref="PreparedInlineMessage"/> object.</returns>
1284+
Task<PreparedInlineMessage> SavePreparedInlineMessage(
1285+
SavePreparedInlineMessage savePreparedInlineMessage,
1286+
CancellationToken cancellationToken = default);
1287+
1288+
/// <summary>
1289+
/// Returns the list of gifts that can be sent by the bot to users. Requires no parameters.
1290+
/// </summary>
1291+
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
1292+
/// <returns>Returns a <see cref="Gifts"/> object.</returns>
1293+
Task<GiftsObject> GetAvailableGifts(CancellationToken cancellationToken = default);
1294+
1295+
/// <summary>
1296+
/// Sends a gift to the given user. The gift can't be converted to Telegram Stars by the user.
1297+
/// </summary>
1298+
/// <param name="sendGift">The gift to send</param>
1299+
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
1300+
/// <returns>Returns True on success.</returns>
1301+
Task<bool> SendGift(SendGift sendGift, CancellationToken cancellationToken = default);
12591302
}

src/RxTelegram.Bot/Interface/BaseTypes/Requests/Users/SetUserEmojiStatus.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace RxTelegram.Bot.Interface.BaseTypes.Requests.Users;
55

66
/// <summary>
77
/// Changes the emoji status for a given user that previously allowed the bot to manage their
8-
/// emoji status via the Mini App method <see cref="TelegramBot.RequestEmojiStatusAccess"/> . Returns True on success.
8+
/// emoji status via the Mini App method RequestEmojiStatusAccess. Returns True on success.
99
/// </summary>
1010
public class SetUserEmojiStatus : BaseValidation
1111
{

src/RxTelegram.Bot/TelegramBot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ public Task<PreparedInlineMessage> SavePreparedInlineMessage(
14201420
/// Returns the list of gifts that can be sent by the bot to users. Requires no parameters.
14211421
/// </summary>
14221422
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
1423-
/// <returns>Returns a <see cref="Gifts"/> object.</returns>
1423+
/// <returns>Returns a <see cref="GiftsObject"/> object.</returns>
14241424
public Task<GiftsObject> GetAvailableGifts(CancellationToken cancellationToken = default) =>
14251425
Get<GiftsObject>("getAvailableGifts", cancellationToken);
14261426

0 commit comments

Comments
 (0)