Skip to content

Commit f820777

Browse files
committed
Update ITelegramBot
1 parent 55f3105 commit f820777

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

src/RxTelegram.Bot/ITelegramBot.cs

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using RxTelegram.Bot.Interface.Games.Requests;
2020
using RxTelegram.Bot.Interface.InlineMode;
2121
using RxTelegram.Bot.Interface.Passport.Requests;
22+
using RxTelegram.Bot.Interface.Payments;
2223
using RxTelegram.Bot.Interface.Payments.Requests;
2324
using RxTelegram.Bot.Interface.Reaction.Requests;
2425
using RxTelegram.Bot.Interface.Setup;
@@ -1207,4 +1208,52 @@ Task<BusinessConnection> GetBusinessConnection(
12071208
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
12081209
/// <returns>Returns an array of <see cref="MessageIdObject"/> on success.</returns>
12091210
Task<MessageIdObject[]> CopyMessages(CopyMessages copyMessages, CancellationToken cancellationToken = default);
1211+
1212+
/// <summary>
1213+
/// Refunds a successful payment in Telegram Stars.
1214+
/// </summary>
1215+
/// <param name="refundStarPayment">Information about the payment</param>
1216+
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
1217+
/// <returns>Returns True on success.</returns>
1218+
Task<bool> RefundStarPayment(RefundStarPayment refundStarPayment, CancellationToken cancellationToken = default);
1219+
1220+
/// <summary>
1221+
/// Returns the bot's Telegram Star transactions in chronological order.
1222+
/// </summary>
1223+
/// <param name="getStarTransactions">Information about the transactions</param>
1224+
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
1225+
/// <returns>On success, returns a <see cref="StarTransactions"/> object.</returns>
1226+
Task<StarTransactions> GetStarTransactions(
1227+
GetStarTransactions getStarTransactions,
1228+
CancellationToken cancellationToken = default);
1229+
1230+
/// <summary>
1231+
/// Use this method to send paid media to channel chats.
1232+
/// </summary>
1233+
/// <param name="sendPaidMedia">Details for the media to send</param>
1234+
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
1235+
/// <returns>On success, the sent <see cref="Message"/> is returned.</returns>
1236+
Task<Message> SendPaidMedia(SendPaidMedia sendPaidMedia, CancellationToken cancellationToken = default);
1237+
1238+
/// <summary>
1239+
/// Use this method to create a subscription invite link for a channel chat.
1240+
/// The bot must have the can_invite_users administrator rights.
1241+
/// The link can be edited using the method editChatSubscriptionInviteLink or revoked using the method <see cref="TelegramBot.RevokeChatInviteLink"/>.
1242+
/// </summary>
1243+
/// <param name="createChatSubscriptionInviteLink">Details for the invite link</param>
1244+
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
1245+
/// <returns>Returns the new invite link as a <see cref="ChatInviteLink"/> object.</returns>
1246+
Task<ChatInviteLink> CreateChatSubscriptionInviteLink(
1247+
CreateChatSubscriptionInviteLink createChatSubscriptionInviteLink,
1248+
CancellationToken cancellationToken = default);
1249+
1250+
/// <summary>
1251+
/// Use this method to edit a subscription invite link created by the bot. The bot must have the can_invite_users administrator rights
1252+
/// </summary>
1253+
/// <param name="editChatSubscriptionInviteLink">Details for the invite link</param>
1254+
/// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
1255+
/// <returns>Returns the new invite link as a <see cref="ChatInviteLink"/> object.</returns>
1256+
Task<ChatInviteLink> EditChatSubscriptionInviteLink(
1257+
EditChatSubscriptionInviteLink editChatSubscriptionInviteLink,
1258+
CancellationToken cancellationToken = default);
12101259
}

0 commit comments

Comments
 (0)