Refunds a successful Telegram Stars payment for a user; used by bots to return funds.
// Source: https://github.com/TelegramBots/Telegram.Bot | License: MIT | Copyright 2016-2026 Telegram Bots
// Provided via justclaw.it.com; keep this notice with the code.
// GENERATED FILE - DO NOT MODIFY MANUALLY
namespace Telegram.Bot.Requests;
/// <summary>Refunds a successful payment in <a href="https://t.me/BotNews/90">Telegram Stars</a>.</summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public partial class RefundStarPaymentRequest() : RequestBase<bool>("refundStarPayment"), IUserTargetable
{
/// <summary>Identifier of the user whose payment will be refunded</summary>
[JsonPropertyName("user_id")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
public required long UserId { get; set; }
/// <summary>Telegram payment identifier</summary>
[JsonProper
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key