|
19 | 19 | using RxTelegram.Bot.Interface.Games.Requests;
|
20 | 20 | using RxTelegram.Bot.Interface.InlineMode;
|
21 | 21 | using RxTelegram.Bot.Interface.Passport.Requests;
|
| 22 | +using RxTelegram.Bot.Interface.Payments; |
22 | 23 | using RxTelegram.Bot.Interface.Payments.Requests;
|
23 | 24 | using RxTelegram.Bot.Interface.Reaction.Requests;
|
24 | 25 | using RxTelegram.Bot.Interface.Setup;
|
@@ -1207,4 +1208,52 @@ Task<BusinessConnection> GetBusinessConnection(
|
1207 | 1208 | /// <param name="cancellationToken">Propagates notification that operations should be canceled.</param>
|
1208 | 1209 | /// <returns>Returns an array of <see cref="MessageIdObject"/> on success.</returns>
|
1209 | 1210 | 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); |
1210 | 1259 | }
|
0 commit comments