Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public GetBusinessAccountGiftsArgs(string businessConnectionId)
public bool? SortByPrice { get; set; }

/// <summary>
/// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results
/// Offset of the first entry to return as received from the previous request; use an empty string to get the first chunk of results
/// </summary>
[JsonPropertyName(PropertyNames.Offset)]
public string? Offset { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public PromoteChatMemberArgs(string chatId, long userId)
public bool? CanPromoteMembers { get; set; }

/// <summary>
/// Pass <em>True</em> if the administrator can change chat title, photo and other settings
/// Pass <em>True</em> if the administrator can change the chat title, photo and other settings
/// </summary>
[JsonPropertyName(PropertyNames.CanChangeInfo)]
public bool? CanChangeInfo { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public RestrictChatMemberArgs(string chatId, long userId, ChatPermissions permis
public bool? UseIndependentChatPermissions { get; set; }

/// <summary>
/// Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever.
/// Date when restrictions will be lifted for the user; Unix time. If the user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever.
/// </summary>
[JsonPropertyName(PropertyNames.UntilDate)]
public int? UntilDate { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ public SendAnimationArgs(string animation)
public int? Height { get; set; }

/// <summary>
/// Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://&lt;file_attach_name&gt;” if the thumbnail was uploaded using multipart/form-data under &lt;file_attach_name&gt;. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
/// Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can only be uploaded as a new file, so you can pass “attach://&lt;file_attach_name&gt;” if the thumbnail was uploaded using multipart/form-data under &lt;file_attach_name&gt;. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
/// </summary>
[JsonPropertyName(PropertyNames.Thumbnail)]
public object? Thumbnail { get; set; }

/// <summary>
/// Animation caption (may also be used when resending animation by <em>file_id</em>), 0-1024 characters after entities parsing
/// Animation caption (may also be used when resending animations by <em>file_id</em>), 0-1024 characters after entities parsing
/// </summary>
[JsonPropertyName(PropertyNames.Caption)]
public string? Caption { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public SendAudioArgs(string audio)
public string? Title { get; set; }

/// <summary>
/// Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://&lt;file_attach_name&gt;” if the thumbnail was uploaded using multipart/form-data under &lt;file_attach_name&gt;. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
/// Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can only be uploaded as a new file, so you can pass “attach://&lt;file_attach_name&gt;” if the thumbnail was uploaded using multipart/form-data under &lt;file_attach_name&gt;. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
/// </summary>
[JsonPropertyName(PropertyNames.Thumbnail)]
public object? Thumbnail { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public SendDocumentArgs(string document)
public object Document { get; set; }

/// <summary>
/// Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://&lt;file_attach_name&gt;” if the thumbnail was uploaded using multipart/form-data under &lt;file_attach_name&gt;. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
/// Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can only be uploaded as a new file, so you can pass “attach://&lt;file_attach_name&gt;” if the thumbnail was uploaded using multipart/form-data under &lt;file_attach_name&gt;. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
/// </summary>
[JsonPropertyName(PropertyNames.Thumbnail)]
public object? Thumbnail { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class SendLivePhotoArgs : AttachedFilesArgsBase
/// Initializes a new instance of the <see cref="SendLivePhotoArgs"/> class.
/// </summary>
/// <param name="livePhoto">Live photo video to send. The video must be no longer than 10 seconds and must not exceed 10 MB in size. Pass a file_id as String to send a video that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>. Sending live photos by a URL is currently unsupported.</param>
/// <param name="photo">The static photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>. Sending live photos by a URL is currently unsupported.</param>
/// <param name="photo">The static photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended) or upload a new photo using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>. Sending live photos by a URL is currently unsupported.</param>
public SendLivePhotoArgs(InputFile livePhoto, InputFile photo)
{
this.LivePhoto = livePhoto ?? throw new ArgumentNullException(nameof(livePhoto));
Expand All @@ -26,7 +26,7 @@ public SendLivePhotoArgs(InputFile livePhoto, InputFile photo)
/// Initializes a new instance of the <see cref="SendLivePhotoArgs"/> class.
/// </summary>
/// <param name="livePhoto">Live photo video to send. The video must be no longer than 10 seconds and must not exceed 10 MB in size. Pass a file_id as String to send a video that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>. Sending live photos by a URL is currently unsupported.</param>
/// <param name="photo">The static photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>. Sending live photos by a URL is currently unsupported.</param>
/// <param name="photo">The static photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended) or upload a new photo using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>. Sending live photos by a URL is currently unsupported.</param>
public SendLivePhotoArgs(InputFile livePhoto, string photo)
{
this.LivePhoto = livePhoto ?? throw new ArgumentNullException(nameof(livePhoto));
Expand All @@ -37,7 +37,7 @@ public SendLivePhotoArgs(InputFile livePhoto, string photo)
/// Initializes a new instance of the <see cref="SendLivePhotoArgs"/> class.
/// </summary>
/// <param name="livePhoto">Live photo video to send. The video must be no longer than 10 seconds and must not exceed 10 MB in size. Pass a file_id as String to send a video that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>. Sending live photos by a URL is currently unsupported.</param>
/// <param name="photo">The static photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>. Sending live photos by a URL is currently unsupported.</param>
/// <param name="photo">The static photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended) or upload a new photo using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>. Sending live photos by a URL is currently unsupported.</param>
public SendLivePhotoArgs(string livePhoto, InputFile photo)
{
this.LivePhoto = livePhoto ?? throw new ArgumentNullException(nameof(livePhoto));
Expand All @@ -48,7 +48,7 @@ public SendLivePhotoArgs(string livePhoto, InputFile photo)
/// Initializes a new instance of the <see cref="SendLivePhotoArgs"/> class.
/// </summary>
/// <param name="livePhoto">Live photo video to send. The video must be no longer than 10 seconds and must not exceed 10 MB in size. Pass a file_id as String to send a video that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>. Sending live photos by a URL is currently unsupported.</param>
/// <param name="photo">The static photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>. Sending live photos by a URL is currently unsupported.</param>
/// <param name="photo">The static photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended) or upload a new photo using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>. Sending live photos by a URL is currently unsupported.</param>
public SendLivePhotoArgs(string livePhoto, string photo)
{
this.LivePhoto = livePhoto ?? throw new ArgumentNullException(nameof(livePhoto));
Expand Down Expand Up @@ -92,19 +92,19 @@ public SendLivePhotoArgs(string livePhoto, string photo)
public object LivePhoto { get; set; }

/// <summary>
/// The static photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>. Sending live photos by a URL is currently unsupported.
/// The static photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended) or upload a new photo using multipart/form-data. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>. Sending live photos by a URL is currently unsupported.
/// </summary>
[JsonPropertyName(PropertyNames.Photo)]
public object Photo { get; set; }

/// <summary>
/// Video caption (may also be used when resending videos by <em>file_id</em>), 0-1024 characters after entities parsing
/// Live photo caption (may also be used when resending live photos by <em>file_id</em>), 0-1024 characters after entities parsing
/// </summary>
[JsonPropertyName(PropertyNames.Caption)]
public string? Caption { get; set; }

/// <summary>
/// Mode for parsing entities in the video caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.
/// Mode for parsing entities in the live photo caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.
/// </summary>
[JsonPropertyName(PropertyNames.ParseMode)]
public string? ParseMode { get; set; }
Expand All @@ -122,7 +122,7 @@ public SendLivePhotoArgs(string livePhoto, string photo)
public bool? ShowCaptionAboveMedia { get; set; }

/// <summary>
/// Pass <em>True</em> if the video needs to be covered with a spoiler animation
/// Pass <em>True</em> if the live photo needs to be covered with a spoiler animation
/// </summary>
[JsonPropertyName(PropertyNames.HasSpoiler)]
public bool? HasSpoiler { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public SendPaidMediaArgs(string chatId, int starCount, IEnumerable<InputPaidMedi
public IEnumerable<InputPaidMedia> Media { get; set; }

/// <summary>
/// Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user, use it for your internal processes.
/// Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user; use it for your internal processes.
/// </summary>
[JsonPropertyName(PropertyNames.Payload)]
public string? Payload { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public SendPollArgs(string chatId, string question, IEnumerable<InputPollOption>
public bool? AllowsMultipleAnswers { get; set; }

/// <summary>
/// Pass <em>True</em> if the poll allows to change chosen answer options, defaults to <em>False</em> for quizzes and to <em>True</em> for regular polls
/// Pass <em>True</em> if the poll allows changing the chosen answer options, defaults to <em>False</em> for quizzes and to <em>True</em> for regular polls
/// </summary>
[JsonPropertyName(PropertyNames.AllowsRevoting)]
public bool? AllowsRevoting { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public SendVideoArgs(string video)
public int? Height { get; set; }

/// <summary>
/// Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://&lt;file_attach_name&gt;” if the thumbnail was uploaded using multipart/form-data under &lt;file_attach_name&gt;. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
/// Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can only be uploaded as a new file, so you can pass “attach://&lt;file_attach_name&gt;” if the thumbnail was uploaded using multipart/form-data under &lt;file_attach_name&gt;. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
/// </summary>
[JsonPropertyName(PropertyNames.Thumbnail)]
public object? Thumbnail { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public SendVideoNoteArgs(string videoNote)
public int? Length { get; set; }

/// <summary>
/// Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://&lt;file_attach_name&gt;” if the thumbnail was uploaded using multipart/form-data under &lt;file_attach_name&gt;. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
/// Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can only be uploaded as a new file, so you can pass “attach://&lt;file_attach_name&gt;” if the thumbnail was uploaded using multipart/form-data under &lt;file_attach_name&gt;. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a>
/// </summary>
[JsonPropertyName(PropertyNames.Thumbnail)]
public object? Thumbnail { get; set; }
Expand Down
Loading
Loading