We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c33e31 commit 4c0724bCopy full SHA for 4c0724b
src/Telegram.Bot/Extend.Types.cs
@@ -171,6 +171,8 @@ public partial class LinkPreviewOptions
171
{
172
/// <summary>To get the same behaviour as previous parameter <c>disableWebPagePreview:</c></summary>
173
public static implicit operator LinkPreviewOptions(bool disabled) => new() { IsDisabled = disabled };
174
+ /// <summary>Simply pass a URL string to request a preview of that link</summary>
175
+ public static implicit operator LinkPreviewOptions(string url) => new() { Url = url };
176
}
177
178
public partial class InputPollOption
0 commit comments