mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-01-23 00:40:24 +01:00
Removed compatibility with legacy (pre-2.0.0) session files
This commit is contained in:
parent
46c3cf3d9a
commit
9b7e4293d8
2
.github/dev.yml
vendored
2
.github/dev.yml
vendored
|
|
@ -2,7 +2,7 @@ pr: none
|
|||
trigger:
|
||||
- master
|
||||
|
||||
name: 2.6.2-dev.$(Rev:r)
|
||||
name: 2.6.3-dev.$(Rev:r)
|
||||
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
|
|
|
|||
|
|
@ -49,7 +49,8 @@ var entities = client.HtmlToEntities(ref text);
|
|||
var sent = await client.SendMessageAsync(InputPeer.Self, text, entities: entities);
|
||||
// if you need to convert a sent/received Message to HTML: (easier to store)
|
||||
text = client.EntitiesToHtml(sent.message, sent.entities);
|
||||
|
||||
```
|
||||
```csharp
|
||||
// Markdown-style text:
|
||||
var text2 = $"Hello __dear *{Markdown.Escape(myself.first_name)}*__\n" +
|
||||
"Enjoy this `userbot` written with [WTelegramClient](https://github.com/wiz0u/WTelegramClient)";
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ namespace WTelegram
|
|||
/// <param name="text">The plain text of the message (or media caption)</param>
|
||||
/// <param name="media">An instance of <see cref="InputMedia">InputMedia</see>-derived class, or <see langword="null"/> if there is no associated media</param>
|
||||
/// <param name="reply_to_msg_id">Your message is a reply to an existing message with this ID, in the same chat</param>
|
||||
/// <param name="entities">Text formatting entities. You can use <see cref="Markdown.MarkdownToEntities">MarkdownToEntities</see> to create these</param>
|
||||
/// <param name="entities">Text formatting entities. You can use <see cref="HtmlText.HtmlToEntities">HtmlToEntities</see> or <see cref="Markdown.MarkdownToEntities">MarkdownToEntities</see> to create these</param>
|
||||
/// <param name="schedule_date">UTC timestamp when the message should be sent</param>
|
||||
/// <param name="disable_preview">Should website/media preview be shown or not, for URLs in your message</param>
|
||||
/// <returns>The transmitted message as confirmed by Telegram</returns>
|
||||
|
|
|
|||
|
|
@ -168,7 +168,6 @@ namespace WTelegram
|
|||
{
|
||||
var position = BinaryPrimitives.ReadInt32LittleEndian(_header);
|
||||
var length = BinaryPrimitives.ReadInt32LittleEndian(_header.AsSpan(4));
|
||||
if (position < 0 || length < 0 || position >= 65536 || length >= 32768) { position = 0; length = (int)base.Length; }
|
||||
base.Position = position;
|
||||
Length = length;
|
||||
_nextPosition = position + length;
|
||||
|
|
|
|||
218
src/TL.Schema.cs
218
src/TL.Schema.cs
|
|
@ -776,6 +776,7 @@ namespace TL
|
|||
/// <summary>If set, this user was reported by many users as a fake or scam user: be careful when interacting with them.</summary>
|
||||
fake = 0x4000000,
|
||||
bot_attach_menu = 0x8000000,
|
||||
/// <summary>Whether this user is a Telegram Premium user</summary>
|
||||
premium = 0x10000000,
|
||||
attach_menu_enabled = 0x20000000,
|
||||
}
|
||||
|
|
@ -993,7 +994,9 @@ namespace TL
|
|||
gigagroup = 0x4000000,
|
||||
/// <summary>Whether this channel or group is <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">protected</a>, thus does not allow forwarding messages from it</summary>
|
||||
noforwards = 0x8000000,
|
||||
/// <summary>Whether a user needs to join the supergroup before they can send messages: can be false only for <a href="https://corefork.telegram.org/api/discussion">discussion groups »</a>, toggle using <a href="https://corefork.telegram.org/method/channels.toggleJoinToSend">channels.toggleJoinToSend</a></summary>
|
||||
join_to_send = 0x10000000,
|
||||
/// <summary>Whether a user's join request will have to be <a href="https://corefork.telegram.org/api/invites#join-requests">approved by administrators</a>, toggle using <a href="https://corefork.telegram.org/method/channels.toggleJoinRequest">channels.toggleJoinToSend</a></summary>
|
||||
join_request = 0x20000000,
|
||||
}
|
||||
|
||||
|
|
@ -1173,6 +1176,7 @@ namespace TL
|
|||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags2 flags2;
|
||||
/// <summary>ID of the channel</summary>
|
||||
public long id;
|
||||
|
|
@ -1313,6 +1317,7 @@ namespace TL
|
|||
|
||||
[Flags] public enum Flags2 : uint
|
||||
{
|
||||
/// <summary>Can we delete this channel?</summary>
|
||||
can_delete_channel = 0x1,
|
||||
}
|
||||
|
||||
|
|
@ -1725,6 +1730,7 @@ namespace TL
|
|||
has_document = 0x1,
|
||||
/// <summary>Field <see cref="ttl_seconds"/> has a value</summary>
|
||||
has_ttl_seconds = 0x4,
|
||||
/// <summary>Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played.</summary>
|
||||
nopremium = 0x8,
|
||||
}
|
||||
}
|
||||
|
|
@ -1834,7 +1840,7 @@ namespace TL
|
|||
public string emoticon;
|
||||
}
|
||||
|
||||
/// <summary>Object describing actions connected to a service message. <para>Derived classes: <see cref="MessageActionChatCreate"/>, <see cref="MessageActionChatEditTitle"/>, <see cref="MessageActionChatEditPhoto"/>, <see cref="MessageActionChatDeletePhoto"/>, <see cref="MessageActionChatAddUser"/>, <see cref="MessageActionChatDeleteUser"/>, <see cref="MessageActionChatJoinedByLink"/>, <see cref="MessageActionChannelCreate"/>, <see cref="MessageActionChatMigrateTo"/>, <see cref="MessageActionChannelMigrateFrom"/>, <see cref="MessageActionPinMessage"/>, <see cref="MessageActionHistoryClear"/>, <see cref="MessageActionGameScore"/>, <see cref="MessageActionPaymentSentMe"/>, <see cref="MessageActionPaymentSent"/>, <see cref="MessageActionPhoneCall"/>, <see cref="MessageActionScreenshotTaken"/>, <see cref="MessageActionCustomAction"/>, <see cref="MessageActionBotAllowed"/>, <see cref="MessageActionSecureValuesSentMe"/>, <see cref="MessageActionSecureValuesSent"/>, <see cref="MessageActionContactSignUp"/>, <see cref="MessageActionGeoProximityReached"/>, <see cref="MessageActionGroupCall"/>, <see cref="MessageActionInviteToGroupCall"/>, <see cref="MessageActionSetMessagesTTL"/>, <see cref="MessageActionGroupCallScheduled"/>, <see cref="MessageActionSetChatTheme"/>, <see cref="MessageActionChatJoinedByRequest"/></para> <para>See <a href="https://corefork.telegram.org/type/MessageAction"/></para></summary>
|
||||
/// <summary>Object describing actions connected to a service message. <para>Derived classes: <see cref="MessageActionChatCreate"/>, <see cref="MessageActionChatEditTitle"/>, <see cref="MessageActionChatEditPhoto"/>, <see cref="MessageActionChatDeletePhoto"/>, <see cref="MessageActionChatAddUser"/>, <see cref="MessageActionChatDeleteUser"/>, <see cref="MessageActionChatJoinedByLink"/>, <see cref="MessageActionChannelCreate"/>, <see cref="MessageActionChatMigrateTo"/>, <see cref="MessageActionChannelMigrateFrom"/>, <see cref="MessageActionPinMessage"/>, <see cref="MessageActionHistoryClear"/>, <see cref="MessageActionGameScore"/>, <see cref="MessageActionPaymentSentMe"/>, <see cref="MessageActionPaymentSent"/>, <see cref="MessageActionPhoneCall"/>, <see cref="MessageActionScreenshotTaken"/>, <see cref="MessageActionCustomAction"/>, <see cref="MessageActionBotAllowed"/>, <see cref="MessageActionSecureValuesSentMe"/>, <see cref="MessageActionSecureValuesSent"/>, <see cref="MessageActionContactSignUp"/>, <see cref="MessageActionGeoProximityReached"/>, <see cref="MessageActionGroupCall"/>, <see cref="MessageActionInviteToGroupCall"/>, <see cref="MessageActionSetMessagesTTL"/>, <see cref="MessageActionGroupCallScheduled"/>, <see cref="MessageActionSetChatTheme"/>, <see cref="MessageActionChatJoinedByRequest"/>, <see cref="MessageActionWebViewDataSentMe"/>, <see cref="MessageActionWebViewDataSent"/>, <see cref="MessageActionGiftPremium"/></para> <para>See <a href="https://corefork.telegram.org/type/MessageAction"/></para></summary>
|
||||
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messageActionEmpty">messageActionEmpty</a></remarks>
|
||||
public abstract class MessageAction : IObject { }
|
||||
/// <summary>Group created <para>See <a href="https://corefork.telegram.org/constructor/messageActionChatCreate"/></para></summary>
|
||||
|
|
@ -1955,17 +1961,20 @@ namespace TL
|
|||
[TLDef(0x96163F56)]
|
||||
public class MessageActionPaymentSent : MessageAction
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
/// <summary>Three-letter ISO 4217 <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a> code</summary>
|
||||
public string currency;
|
||||
/// <summary>Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of <c>US$ 1.45</c> pass <c>amount = 145</c>. See the exp parameter in <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</summary>
|
||||
public long total_amount;
|
||||
/// <summary>An invoice slug taken from a t.me/invoice/<slug> link or from the <a href="https://corefork.telegram.org/api/config#client-configuration"><c>premium_invoice_slug</c> app config parameter »</a></slug></summary>
|
||||
[IfFlag(0)] public string invoice_slug;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Field <see cref="invoice_slug"/> has a value</summary>
|
||||
has_invoice_slug = 0x1,
|
||||
/// <summary>Whether this is a recurring payment</summary>
|
||||
recurring_init = 0x4,
|
||||
recurring_used = 0x8,
|
||||
}
|
||||
|
|
@ -2104,12 +2113,15 @@ namespace TL
|
|||
{
|
||||
public string text;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionGiftPremium"/></para></summary>
|
||||
/// <summary>Info about a gifted Telegram Premium subscription <para>See <a href="https://corefork.telegram.org/constructor/messageActionGiftPremium"/></para></summary>
|
||||
[TLDef(0xABA0F5C6)]
|
||||
public class MessageActionGiftPremium : MessageAction
|
||||
{
|
||||
/// <summary>Three-letter ISO 4217 <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a> code</summary>
|
||||
public string currency;
|
||||
/// <summary>Price of the gift in the smallest units of the currency (integer, not float/double). For example, for a price of <c>US$ 1.45</c> pass <c>amount = 145</c>. See the exp parameter in <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</summary>
|
||||
public long amount;
|
||||
/// <summary>Duration of the gifted Telegram Premium subscription</summary>
|
||||
public int months;
|
||||
}
|
||||
|
||||
|
|
@ -2485,8 +2497,11 @@ namespace TL
|
|||
[IfFlag(1)] public bool silent;
|
||||
/// <summary>Mute all notifications until this date</summary>
|
||||
[IfFlag(2)] public int mute_until;
|
||||
/// <summary>Notification sound for the official iOS application</summary>
|
||||
[IfFlag(3)] public NotificationSound ios_sound;
|
||||
/// <summary>Notification sound for the official android application</summary>
|
||||
[IfFlag(4)] public NotificationSound android_sound;
|
||||
/// <summary>Notification sound for other applications</summary>
|
||||
[IfFlag(5)] public NotificationSound other_sound;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
|
|
@ -2672,7 +2687,9 @@ namespace TL
|
|||
[IfFlag(15)] public string theme_emoticon;
|
||||
/// <summary>Anonymized text to be shown instead of the the user's name on forwarded messages</summary>
|
||||
[IfFlag(16)] public string private_forward_name;
|
||||
/// <summary>A suggested default set of administrator rights for the bot, to be shown when adding the bot as admin to a supergroup (only a suggestion, the admin right set may be modified by the user before adding the bot as admin)</summary>
|
||||
[IfFlag(17)] public ChatAdminRights bot_group_admin_rights;
|
||||
/// <summary>A suggested default set of administrator rights for the bot, to be shown when adding the bot as admin to a channel (only a suggestion, the admin right set may be modified by the user before adding the bot as admin)</summary>
|
||||
[IfFlag(18)] public ChatAdminRights bot_broadcast_admin_rights;
|
||||
[IfFlag(19)] public PremiumGiftOption[] premium_gifts;
|
||||
|
||||
|
|
@ -2712,6 +2729,7 @@ namespace TL
|
|||
has_bot_broadcast_admin_rights = 0x40000,
|
||||
/// <summary>Field <see cref="premium_gifts"/> has a value</summary>
|
||||
has_premium_gifts = 0x80000,
|
||||
/// <summary>Whether this user doesn't allow sending voice messages in a private chat with them</summary>
|
||||
voice_messages_forbidden = 0x100000,
|
||||
}
|
||||
}
|
||||
|
|
@ -3038,7 +3056,7 @@ namespace TL
|
|||
[TLDef(0x1BB00451)]
|
||||
public class InputMessagesFilterPinned : MessagesFilter { }
|
||||
|
||||
/// <summary>Object contains info on events occurred. <para>Derived classes: <see cref="UpdateNewMessage"/>, <see cref="UpdateMessageID"/>, <see cref="UpdateDeleteMessages"/>, <see cref="UpdateUserTyping"/>, <see cref="UpdateChatUserTyping"/>, <see cref="UpdateChatParticipants"/>, <see cref="UpdateUserStatus"/>, <see cref="UpdateUserName"/>, <see cref="UpdateUserPhoto"/>, <see cref="UpdateNewEncryptedMessage"/>, <see cref="UpdateEncryptedChatTyping"/>, <see cref="UpdateEncryption"/>, <see cref="UpdateEncryptedMessagesRead"/>, <see cref="UpdateChatParticipantAdd"/>, <see cref="UpdateChatParticipantDelete"/>, <see cref="UpdateDcOptions"/>, <see cref="UpdateNotifySettings"/>, <see cref="UpdateServiceNotification"/>, <see cref="UpdatePrivacy"/>, <see cref="UpdateUserPhone"/>, <see cref="UpdateReadHistoryInbox"/>, <see cref="UpdateReadHistoryOutbox"/>, <see cref="UpdateWebPage"/>, <see cref="UpdateReadMessagesContents"/>, <see cref="UpdateChannelTooLong"/>, <see cref="UpdateChannel"/>, <see cref="UpdateNewChannelMessage"/>, <see cref="UpdateReadChannelInbox"/>, <see cref="UpdateDeleteChannelMessages"/>, <see cref="UpdateChannelMessageViews"/>, <see cref="UpdateChatParticipantAdmin"/>, <see cref="UpdateNewStickerSet"/>, <see cref="UpdateStickerSetsOrder"/>, <see cref="UpdateStickerSets"/>, <see cref="UpdateSavedGifs"/>, <see cref="UpdateBotInlineQuery"/>, <see cref="UpdateBotInlineSend"/>, <see cref="UpdateEditChannelMessage"/>, <see cref="UpdateBotCallbackQuery"/>, <see cref="UpdateEditMessage"/>, <see cref="UpdateInlineBotCallbackQuery"/>, <see cref="UpdateReadChannelOutbox"/>, <see cref="UpdateDraftMessage"/>, <see cref="UpdateReadFeaturedStickers"/>, <see cref="UpdateRecentStickers"/>, <see cref="UpdateConfig"/>, <see cref="UpdatePtsChanged"/>, <see cref="UpdateChannelWebPage"/>, <see cref="UpdateDialogPinned"/>, <see cref="UpdatePinnedDialogs"/>, <see cref="UpdateBotWebhookJSON"/>, <see cref="UpdateBotWebhookJSONQuery"/>, <see cref="UpdateBotShippingQuery"/>, <see cref="UpdateBotPrecheckoutQuery"/>, <see cref="UpdatePhoneCall"/>, <see cref="UpdateLangPackTooLong"/>, <see cref="UpdateLangPack"/>, <see cref="UpdateFavedStickers"/>, <see cref="UpdateChannelReadMessagesContents"/>, <see cref="UpdateContactsReset"/>, <see cref="UpdateChannelAvailableMessages"/>, <see cref="UpdateDialogUnreadMark"/>, <see cref="UpdateMessagePoll"/>, <see cref="UpdateChatDefaultBannedRights"/>, <see cref="UpdateFolderPeers"/>, <see cref="UpdatePeerSettings"/>, <see cref="UpdatePeerLocated"/>, <see cref="UpdateNewScheduledMessage"/>, <see cref="UpdateDeleteScheduledMessages"/>, <see cref="UpdateTheme"/>, <see cref="UpdateGeoLiveViewed"/>, <see cref="UpdateLoginToken"/>, <see cref="UpdateMessagePollVote"/>, <see cref="UpdateDialogFilter"/>, <see cref="UpdateDialogFilterOrder"/>, <see cref="UpdateDialogFilters"/>, <see cref="UpdatePhoneCallSignalingData"/>, <see cref="UpdateChannelMessageForwards"/>, <see cref="UpdateReadChannelDiscussionInbox"/>, <see cref="UpdateReadChannelDiscussionOutbox"/>, <see cref="UpdatePeerBlocked"/>, <see cref="UpdateChannelUserTyping"/>, <see cref="UpdatePinnedMessages"/>, <see cref="UpdatePinnedChannelMessages"/>, <see cref="UpdateChat"/>, <see cref="UpdateGroupCallParticipants"/>, <see cref="UpdateGroupCall"/>, <see cref="UpdatePeerHistoryTTL"/>, <see cref="UpdateChatParticipant"/>, <see cref="UpdateChannelParticipant"/>, <see cref="UpdateBotStopped"/>, <see cref="UpdateGroupCallConnection"/>, <see cref="UpdateBotCommands"/>, <see cref="UpdatePendingJoinRequests"/>, <see cref="UpdateBotChatInviteRequester"/>, <see cref="UpdateMessageReactions"/></para> <para>See <a href="https://corefork.telegram.org/type/Update"/></para></summary>
|
||||
/// <summary>Object contains info on events occurred. <para>Derived classes: <see cref="UpdateNewMessage"/>, <see cref="UpdateMessageID"/>, <see cref="UpdateDeleteMessages"/>, <see cref="UpdateUserTyping"/>, <see cref="UpdateChatUserTyping"/>, <see cref="UpdateChatParticipants"/>, <see cref="UpdateUserStatus"/>, <see cref="UpdateUserName"/>, <see cref="UpdateUserPhoto"/>, <see cref="UpdateNewEncryptedMessage"/>, <see cref="UpdateEncryptedChatTyping"/>, <see cref="UpdateEncryption"/>, <see cref="UpdateEncryptedMessagesRead"/>, <see cref="UpdateChatParticipantAdd"/>, <see cref="UpdateChatParticipantDelete"/>, <see cref="UpdateDcOptions"/>, <see cref="UpdateNotifySettings"/>, <see cref="UpdateServiceNotification"/>, <see cref="UpdatePrivacy"/>, <see cref="UpdateUserPhone"/>, <see cref="UpdateReadHistoryInbox"/>, <see cref="UpdateReadHistoryOutbox"/>, <see cref="UpdateWebPage"/>, <see cref="UpdateReadMessagesContents"/>, <see cref="UpdateChannelTooLong"/>, <see cref="UpdateChannel"/>, <see cref="UpdateNewChannelMessage"/>, <see cref="UpdateReadChannelInbox"/>, <see cref="UpdateDeleteChannelMessages"/>, <see cref="UpdateChannelMessageViews"/>, <see cref="UpdateChatParticipantAdmin"/>, <see cref="UpdateNewStickerSet"/>, <see cref="UpdateStickerSetsOrder"/>, <see cref="UpdateStickerSets"/>, <see cref="UpdateSavedGifs"/>, <see cref="UpdateBotInlineQuery"/>, <see cref="UpdateBotInlineSend"/>, <see cref="UpdateEditChannelMessage"/>, <see cref="UpdateBotCallbackQuery"/>, <see cref="UpdateEditMessage"/>, <see cref="UpdateInlineBotCallbackQuery"/>, <see cref="UpdateReadChannelOutbox"/>, <see cref="UpdateDraftMessage"/>, <see cref="UpdateReadFeaturedStickers"/>, <see cref="UpdateRecentStickers"/>, <see cref="UpdateConfig"/>, <see cref="UpdatePtsChanged"/>, <see cref="UpdateChannelWebPage"/>, <see cref="UpdateDialogPinned"/>, <see cref="UpdatePinnedDialogs"/>, <see cref="UpdateBotWebhookJSON"/>, <see cref="UpdateBotWebhookJSONQuery"/>, <see cref="UpdateBotShippingQuery"/>, <see cref="UpdateBotPrecheckoutQuery"/>, <see cref="UpdatePhoneCall"/>, <see cref="UpdateLangPackTooLong"/>, <see cref="UpdateLangPack"/>, <see cref="UpdateFavedStickers"/>, <see cref="UpdateChannelReadMessagesContents"/>, <see cref="UpdateContactsReset"/>, <see cref="UpdateChannelAvailableMessages"/>, <see cref="UpdateDialogUnreadMark"/>, <see cref="UpdateMessagePoll"/>, <see cref="UpdateChatDefaultBannedRights"/>, <see cref="UpdateFolderPeers"/>, <see cref="UpdatePeerSettings"/>, <see cref="UpdatePeerLocated"/>, <see cref="UpdateNewScheduledMessage"/>, <see cref="UpdateDeleteScheduledMessages"/>, <see cref="UpdateTheme"/>, <see cref="UpdateGeoLiveViewed"/>, <see cref="UpdateLoginToken"/>, <see cref="UpdateMessagePollVote"/>, <see cref="UpdateDialogFilter"/>, <see cref="UpdateDialogFilterOrder"/>, <see cref="UpdateDialogFilters"/>, <see cref="UpdatePhoneCallSignalingData"/>, <see cref="UpdateChannelMessageForwards"/>, <see cref="UpdateReadChannelDiscussionInbox"/>, <see cref="UpdateReadChannelDiscussionOutbox"/>, <see cref="UpdatePeerBlocked"/>, <see cref="UpdateChannelUserTyping"/>, <see cref="UpdatePinnedMessages"/>, <see cref="UpdatePinnedChannelMessages"/>, <see cref="UpdateChat"/>, <see cref="UpdateGroupCallParticipants"/>, <see cref="UpdateGroupCall"/>, <see cref="UpdatePeerHistoryTTL"/>, <see cref="UpdateChatParticipant"/>, <see cref="UpdateChannelParticipant"/>, <see cref="UpdateBotStopped"/>, <see cref="UpdateGroupCallConnection"/>, <see cref="UpdateBotCommands"/>, <see cref="UpdatePendingJoinRequests"/>, <see cref="UpdateBotChatInviteRequester"/>, <see cref="UpdateMessageReactions"/>, <see cref="UpdateAttachMenuBots"/>, <see cref="UpdateWebViewResultSent"/>, <see cref="UpdateBotMenuButton"/>, <see cref="UpdateSavedRingtones"/>, <see cref="UpdateTranscribedAudio"/>, <see cref="UpdateReadFeaturedEmojiStickers"/></para> <para>See <a href="https://corefork.telegram.org/type/Update"/></para></summary>
|
||||
public abstract class Update : IObject { }
|
||||
/// <summary>New message in a private chat or in a <a href="https://core.telegram.org/api/channel#basic-groups">basic group</a>. <para>See <a href="https://corefork.telegram.org/constructor/updateNewMessage"/></para></summary>
|
||||
[TLDef(0x1F2B0AFD)]
|
||||
|
|
@ -3405,6 +3423,7 @@ namespace TL
|
|||
{
|
||||
/// <summary>Whether the updated stickers are mask stickers</summary>
|
||||
masks = 0x1,
|
||||
/// <summary>Whether the updated stickers are custom emoji stickers</summary>
|
||||
emojis = 0x2,
|
||||
}
|
||||
}
|
||||
|
|
@ -4171,7 +4190,7 @@ namespace TL
|
|||
/// <summary>Reactions</summary>
|
||||
public MessageReactions reactions;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateAttachMenuBots"/></para></summary>
|
||||
/// <summary>The list of added <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web apps »</a> has changed, use <a href="https://corefork.telegram.org/method/messages.getAttachMenuBots">messages.getAttachMenuBots</a> to fetch the updated list. <para>See <a href="https://corefork.telegram.org/constructor/updateAttachMenuBots"/></para></summary>
|
||||
[TLDef(0x17B7A20B)]
|
||||
public class UpdateAttachMenuBots : Update { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateWebViewResultSent"/></para></summary>
|
||||
|
|
@ -4180,28 +4199,36 @@ namespace TL
|
|||
{
|
||||
public long query_id;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateBotMenuButton"/></para></summary>
|
||||
/// <summary>The menu button behavior for the specified bot has changed <para>See <a href="https://corefork.telegram.org/constructor/updateBotMenuButton"/></para></summary>
|
||||
[TLDef(0x14B85813)]
|
||||
public class UpdateBotMenuButton : Update
|
||||
{
|
||||
/// <summary>Bot ID</summary>
|
||||
public long bot_id;
|
||||
/// <summary>New menu button</summary>
|
||||
public BotMenuButtonBase button;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateSavedRingtones"/></para></summary>
|
||||
/// <summary>The list of saved notification sounds has changed, use <a href="https://corefork.telegram.org/method/account.getSavedRingtones">account.getSavedRingtones</a> to fetch the new list. <para>See <a href="https://corefork.telegram.org/constructor/updateSavedRingtones"/></para></summary>
|
||||
[TLDef(0x74D8BE99)]
|
||||
public class UpdateSavedRingtones : Update { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateTranscribedAudio"/></para></summary>
|
||||
/// <summary>A pending transcription initiated with <a href="https://corefork.telegram.org/method/messages.transcribeAudio">messages.transcribeAudio</a> was updated. <para>See <a href="https://corefork.telegram.org/constructor/updateTranscribedAudio"/></para></summary>
|
||||
[TLDef(0x0084CD5A)]
|
||||
public class UpdateTranscribedAudio : Update
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
/// <summary>Peer of the transcribed message</summary>
|
||||
public Peer peer;
|
||||
/// <summary>Transcribed message ID</summary>
|
||||
public int msg_id;
|
||||
/// <summary>Transcription ID</summary>
|
||||
public long transcription_id;
|
||||
/// <summary>Transcribed text</summary>
|
||||
public string text;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Whether this transcription is still pending and further <see cref="UpdateTranscribedAudio"/> about it will be sent in the future.</summary>
|
||||
pending = 0x1,
|
||||
}
|
||||
}
|
||||
|
|
@ -4757,6 +4784,7 @@ namespace TL
|
|||
has_static_maps_provider = 0x1000,
|
||||
/// <summary>Whether <a href="https://corefork.telegram.org/api/pfs">pfs</a> was used</summary>
|
||||
pfs_enabled = 0x2000,
|
||||
/// <summary>Whether to forcefully try connecting using IPv6 <see cref="DcOption"/></summary>
|
||||
force_try_ipv6 = 0x4000,
|
||||
}
|
||||
}
|
||||
|
|
@ -5310,7 +5338,7 @@ namespace TL
|
|||
PhoneNumber = 0x0352DAFA,
|
||||
///<summary>Whether people can add you to their contact list by your phone number</summary>
|
||||
AddedByPhone = 0xD1219BDD,
|
||||
///<summary>See <a href="https://corefork.telegram.org/constructor/inputPrivacyKeyVoiceMessages"/></summary>
|
||||
///<summary>Whether people can send you voice messages</summary>
|
||||
VoiceMessages = 0xAEE69D68,
|
||||
}
|
||||
|
||||
|
|
@ -5333,7 +5361,7 @@ namespace TL
|
|||
PhoneNumber = 0xD19AE46D,
|
||||
///<summary>Whether people can add you to their contact list by your phone number</summary>
|
||||
AddedByPhone = 0x42FFD42B,
|
||||
///<summary>See <a href="https://corefork.telegram.org/constructor/privacyKeyVoiceMessages"/></summary>
|
||||
///<summary>Whether the user accepts voice messages</summary>
|
||||
VoiceMessages = 0x0697F414,
|
||||
}
|
||||
|
||||
|
|
@ -5445,7 +5473,7 @@ namespace TL
|
|||
public int days;
|
||||
}
|
||||
|
||||
/// <summary>Various possible attributes of a document (used to define if it's a sticker, a GIF, a video, a mask sticker, an image, an audio, and so on) <para>Derived classes: <see cref="DocumentAttributeImageSize"/>, <see cref="DocumentAttributeAnimated"/>, <see cref="DocumentAttributeSticker"/>, <see cref="DocumentAttributeVideo"/>, <see cref="DocumentAttributeAudio"/>, <see cref="DocumentAttributeFilename"/>, <see cref="DocumentAttributeHasStickers"/></para> <para>See <a href="https://corefork.telegram.org/type/DocumentAttribute"/></para></summary>
|
||||
/// <summary>Various possible attributes of a document (used to define if it's a sticker, a GIF, a video, a mask sticker, an image, an audio, and so on) <para>Derived classes: <see cref="DocumentAttributeImageSize"/>, <see cref="DocumentAttributeAnimated"/>, <see cref="DocumentAttributeSticker"/>, <see cref="DocumentAttributeVideo"/>, <see cref="DocumentAttributeAudio"/>, <see cref="DocumentAttributeFilename"/>, <see cref="DocumentAttributeHasStickers"/>, <see cref="DocumentAttributeCustomEmoji"/></para> <para>See <a href="https://corefork.telegram.org/type/DocumentAttribute"/></para></summary>
|
||||
public abstract class DocumentAttribute : IObject { }
|
||||
/// <summary>Defines the width and height of an image uploaded as document <para>See <a href="https://corefork.telegram.org/constructor/documentAttributeImageSize"/></para></summary>
|
||||
[TLDef(0x6C37C15C)]
|
||||
|
|
@ -5538,12 +5566,15 @@ namespace TL
|
|||
/// <summary>Whether the current document has stickers attached <para>See <a href="https://corefork.telegram.org/constructor/documentAttributeHasStickers"/></para></summary>
|
||||
[TLDef(0x9801D2F7)]
|
||||
public class DocumentAttributeHasStickers : DocumentAttribute { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/documentAttributeCustomEmoji"/></para></summary>
|
||||
/// <summary>Info about a custom emoji <para>See <a href="https://corefork.telegram.org/constructor/documentAttributeCustomEmoji"/></para></summary>
|
||||
[TLDef(0xFD149899)]
|
||||
public class DocumentAttributeCustomEmoji : DocumentAttribute
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
/// <summary>The actual emoji</summary>
|
||||
public string alt;
|
||||
/// <summary>The emoji stickerset to which this emoji belongs.</summary>
|
||||
public InputStickerSet stickerset;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
|
|
@ -5878,7 +5909,7 @@ namespace TL
|
|||
public int flags;
|
||||
}
|
||||
|
||||
/// <summary>Exported chat invite <para>Derived classes: <see cref="ChatInviteExported"/></para> <para>See <a href="https://corefork.telegram.org/type/ExportedChatInvite"/></para></summary>
|
||||
/// <summary>Exported chat invite <para>Derived classes: <see cref="ChatInviteExported"/>, <see cref="ChatInvitePublicJoinRequests"/></para> <para>See <a href="https://corefork.telegram.org/type/ExportedChatInvite"/></para></summary>
|
||||
public abstract class ExportedChatInvite : IObject { }
|
||||
/// <summary>Exported chat invite <para>See <a href="https://corefork.telegram.org/constructor/chatInviteExported"/></para></summary>
|
||||
[TLDef(0x0AB4A819)]
|
||||
|
|
@ -5985,7 +6016,7 @@ namespace TL
|
|||
public DateTime expires;
|
||||
}
|
||||
|
||||
/// <summary>Represents a stickerset <para>Derived classes: <see cref="InputStickerSetID"/>, <see cref="InputStickerSetShortName"/>, <see cref="InputStickerSetAnimatedEmoji"/>, <see cref="InputStickerSetDice"/>, <see cref="InputStickerSetAnimatedEmojiAnimations"/></para> <para>See <a href="https://corefork.telegram.org/type/InputStickerSet"/></para></summary>
|
||||
/// <summary>Represents a stickerset <para>Derived classes: <see cref="InputStickerSetID"/>, <see cref="InputStickerSetShortName"/>, <see cref="InputStickerSetAnimatedEmoji"/>, <see cref="InputStickerSetDice"/>, <see cref="InputStickerSetAnimatedEmojiAnimations"/>, <see cref="InputStickerSetPremiumGifts"/></para> <para>See <a href="https://corefork.telegram.org/type/InputStickerSet"/></para></summary>
|
||||
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/inputStickerSetEmpty">inputStickerSetEmpty</a></remarks>
|
||||
public abstract partial class InputStickerSet : IObject { }
|
||||
/// <summary>Stickerset by ID <para>See <a href="https://corefork.telegram.org/constructor/inputStickerSetID"/></para></summary>
|
||||
|
|
@ -6043,6 +6074,7 @@ namespace TL
|
|||
[IfFlag(4)] public int thumb_dc_id;
|
||||
/// <summary>Thumbnail version</summary>
|
||||
[IfFlag(4)] public int thumb_version;
|
||||
/// <summary>Document ID of custom emoji thumbnail, fetch the document using <a href="https://corefork.telegram.org/method/messages.getCustomEmojiDocuments">messages.getCustomEmojiDocuments</a></summary>
|
||||
[IfFlag(8)] public long thumb_document_id;
|
||||
/// <summary>Number of stickers in pack</summary>
|
||||
public int count;
|
||||
|
|
@ -6065,6 +6097,7 @@ namespace TL
|
|||
animated = 0x20,
|
||||
/// <summary>Is this a video stickerpack</summary>
|
||||
videos = 0x40,
|
||||
/// <summary>This is a custom emoji stickerset</summary>
|
||||
emojis = 0x80,
|
||||
/// <summary>Field <see cref="thumb_document_id"/> has a value</summary>
|
||||
has_thumb_document_id = 0x100,
|
||||
|
|
@ -6098,15 +6131,19 @@ namespace TL
|
|||
[TLDef(0x8F300B57)]
|
||||
public class BotInfo : IObject
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
/// <summary>ID of the bot</summary>
|
||||
[IfFlag(0)] public long user_id;
|
||||
/// <summary>Description of the bot</summary>
|
||||
[IfFlag(1)] public string description;
|
||||
/// <summary>Description photo</summary>
|
||||
[IfFlag(4)] public PhotoBase description_photo;
|
||||
/// <summary>Description animation in MPEG4 format</summary>
|
||||
[IfFlag(5)] public DocumentBase description_document;
|
||||
/// <summary>Bot commands that can be used in the chat</summary>
|
||||
[IfFlag(2)] public BotCommand[] commands;
|
||||
/// <summary>Indicates the action to execute when pressing the in-UI menu button for bots</summary>
|
||||
[IfFlag(3)] public BotMenuButtonBase menu_button;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
|
|
@ -6126,7 +6163,7 @@ namespace TL
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>Bot or inline keyboard buttons <para>Derived classes: <see cref="KeyboardButton"/>, <see cref="KeyboardButtonUrl"/>, <see cref="KeyboardButtonCallback"/>, <see cref="KeyboardButtonRequestPhone"/>, <see cref="KeyboardButtonRequestGeoLocation"/>, <see cref="KeyboardButtonSwitchInline"/>, <see cref="KeyboardButtonGame"/>, <see cref="KeyboardButtonBuy"/>, <see cref="KeyboardButtonUrlAuth"/>, <see cref="InputKeyboardButtonUrlAuth"/>, <see cref="KeyboardButtonRequestPoll"/>, <see cref="InputKeyboardButtonUserProfile"/>, <see cref="KeyboardButtonUserProfile"/></para> <para>See <a href="https://corefork.telegram.org/type/KeyboardButton"/></para></summary>
|
||||
/// <summary>Bot or inline keyboard buttons <para>Derived classes: <see cref="KeyboardButton"/>, <see cref="KeyboardButtonUrl"/>, <see cref="KeyboardButtonCallback"/>, <see cref="KeyboardButtonRequestPhone"/>, <see cref="KeyboardButtonRequestGeoLocation"/>, <see cref="KeyboardButtonSwitchInline"/>, <see cref="KeyboardButtonGame"/>, <see cref="KeyboardButtonBuy"/>, <see cref="KeyboardButtonUrlAuth"/>, <see cref="InputKeyboardButtonUrlAuth"/>, <see cref="KeyboardButtonRequestPoll"/>, <see cref="InputKeyboardButtonUserProfile"/>, <see cref="KeyboardButtonUserProfile"/>, <see cref="KeyboardButtonWebView"/>, <see cref="KeyboardButtonSimpleWebView"/></para> <para>See <a href="https://corefork.telegram.org/type/KeyboardButton"/></para></summary>
|
||||
public abstract class KeyboardButtonBase : IObject
|
||||
{
|
||||
/// <summary>Button text</summary>
|
||||
|
|
@ -6378,12 +6415,12 @@ namespace TL
|
|||
public KeyboardButtonRow[] rows;
|
||||
}
|
||||
|
||||
/// <summary>Message entities, representing styled text in a message <para>Derived classes: <see cref="MessageEntityUnknown"/>, <see cref="MessageEntityMention"/>, <see cref="MessageEntityHashtag"/>, <see cref="MessageEntityBotCommand"/>, <see cref="MessageEntityUrl"/>, <see cref="MessageEntityEmail"/>, <see cref="MessageEntityBold"/>, <see cref="MessageEntityItalic"/>, <see cref="MessageEntityCode"/>, <see cref="MessageEntityPre"/>, <see cref="MessageEntityTextUrl"/>, <see cref="MessageEntityMentionName"/>, <see cref="InputMessageEntityMentionName"/>, <see cref="MessageEntityPhone"/>, <see cref="MessageEntityCashtag"/>, <see cref="MessageEntityUnderline"/>, <see cref="MessageEntityStrike"/>, <see cref="MessageEntityBlockquote"/>, <see cref="MessageEntityBankCard"/>, <see cref="MessageEntitySpoiler"/></para> <para>See <a href="https://corefork.telegram.org/type/MessageEntity"/></para></summary>
|
||||
/// <summary>Message entities, representing styled text in a message <para>Derived classes: <see cref="MessageEntityUnknown"/>, <see cref="MessageEntityMention"/>, <see cref="MessageEntityHashtag"/>, <see cref="MessageEntityBotCommand"/>, <see cref="MessageEntityUrl"/>, <see cref="MessageEntityEmail"/>, <see cref="MessageEntityBold"/>, <see cref="MessageEntityItalic"/>, <see cref="MessageEntityCode"/>, <see cref="MessageEntityPre"/>, <see cref="MessageEntityTextUrl"/>, <see cref="MessageEntityMentionName"/>, <see cref="InputMessageEntityMentionName"/>, <see cref="MessageEntityPhone"/>, <see cref="MessageEntityCashtag"/>, <see cref="MessageEntityUnderline"/>, <see cref="MessageEntityStrike"/>, <see cref="MessageEntityBlockquote"/>, <see cref="MessageEntityBankCard"/>, <see cref="MessageEntitySpoiler"/>, <see cref="MessageEntityCustomEmoji"/></para> <para>See <a href="https://corefork.telegram.org/type/MessageEntity"/></para></summary>
|
||||
public abstract class MessageEntity : IObject
|
||||
{
|
||||
/// <summary>Offset of message entity within message (in UTF-8 codepoints)</summary>
|
||||
/// <summary>Offset of message entity within message (in <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16 code units</a>)</summary>
|
||||
public int offset;
|
||||
/// <summary>Length of message entity within message (in UTF-8 codepoints)</summary>
|
||||
/// <summary>Length of message entity within message (in <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16 code units</a>)</summary>
|
||||
public int length;
|
||||
}
|
||||
/// <summary>Unknown message entity <para>See <a href="https://corefork.telegram.org/constructor/messageEntityUnknown"/></para></summary>
|
||||
|
|
@ -6462,10 +6499,11 @@ namespace TL
|
|||
/// <summary>Message entity representing a spoiler <para>See <a href="https://corefork.telegram.org/constructor/messageEntitySpoiler"/></para></summary>
|
||||
[TLDef(0x32CA960F)]
|
||||
public class MessageEntitySpoiler : MessageEntity { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageEntityCustomEmoji"/></para></summary>
|
||||
/// <summary>Represents a custom emoji <para>See <a href="https://corefork.telegram.org/constructor/messageEntityCustomEmoji"/></para></summary>
|
||||
[TLDef(0xC8CF05F8, inheritBefore = true)]
|
||||
public class MessageEntityCustomEmoji : MessageEntity
|
||||
{
|
||||
/// <summary>Document ID of the custom emoji, use <a href="https://corefork.telegram.org/method/messages.getCustomEmojiDocuments">messages.getCustomEmojiDocuments</a> to fetch the emoji animation and the actual emoji it represents.</summary>
|
||||
public long document_id;
|
||||
}
|
||||
|
||||
|
|
@ -7778,6 +7816,7 @@ namespace TL
|
|||
[TLDef(0xBE382906)]
|
||||
public class Messages_FeaturedStickers : Messages_FeaturedStickersBase
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
/// <summary><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></summary>
|
||||
public long hash;
|
||||
|
|
@ -7790,6 +7829,7 @@ namespace TL
|
|||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Whether this is a premium stickerset</summary>
|
||||
premium = 0x1,
|
||||
}
|
||||
}
|
||||
|
|
@ -7832,7 +7872,7 @@ namespace TL
|
|||
public StickerSetCoveredBase[] sets;
|
||||
}
|
||||
|
||||
/// <summary>Stickerset, with a specific sticker as preview <para>Derived classes: <see cref="StickerSetCovered"/>, <see cref="StickerSetMultiCovered"/></para> <para>See <a href="https://corefork.telegram.org/type/StickerSetCovered"/></para></summary>
|
||||
/// <summary>Stickerset, with a specific sticker as preview <para>Derived classes: <see cref="StickerSetCovered"/>, <see cref="StickerSetMultiCovered"/>, <see cref="StickerSetFullCovered"/></para> <para>See <a href="https://corefork.telegram.org/type/StickerSetCovered"/></para></summary>
|
||||
public abstract class StickerSetCoveredBase : IObject
|
||||
{
|
||||
/// <summary>Stickerset</summary>
|
||||
|
|
@ -7850,7 +7890,7 @@ namespace TL
|
|||
/// <summary>Stickerset</summary>
|
||||
public override StickerSet Set => set;
|
||||
}
|
||||
/// <summary>Stickerset, with a specific stickers as preview <para>See <a href="https://corefork.telegram.org/constructor/stickerSetMultiCovered"/></para></summary>
|
||||
/// <summary>Stickerset, with a specific set of stickers as preview <para>See <a href="https://corefork.telegram.org/constructor/stickerSetMultiCovered"/></para></summary>
|
||||
[TLDef(0x3407E51B)]
|
||||
public class StickerSetMultiCovered : StickerSetCoveredBase
|
||||
{
|
||||
|
|
@ -8453,6 +8493,7 @@ namespace TL
|
|||
[IfFlag(8)] public long max_tip_amount;
|
||||
/// <summary>A vector of suggested amounts of tips in the <em>smallest units</em> of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed <c>max_tip_amount</c>.</summary>
|
||||
[IfFlag(8)] public long[] suggested_tip_amounts;
|
||||
/// <summary>Terms of service URL for the recurring payment</summary>
|
||||
[IfFlag(9)] public string recurring_terms_url;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
|
|
@ -8475,6 +8516,7 @@ namespace TL
|
|||
email_to_provider = 0x80,
|
||||
/// <summary>Field <see cref="max_tip_amount"/> has a value</summary>
|
||||
has_max_tip_amount = 0x100,
|
||||
/// <summary>Whether this is a recurring payment</summary>
|
||||
recurring = 0x200,
|
||||
}
|
||||
}
|
||||
|
|
@ -8620,7 +8662,7 @@ namespace TL
|
|||
public DocumentAttribute[] attributes;
|
||||
}
|
||||
|
||||
/// <summary>Location of remote file <para>Derived classes: <see cref="InputWebFileLocation"/>, <see cref="InputWebFileGeoPointLocation"/></para> <para>See <a href="https://corefork.telegram.org/type/InputWebFileLocation"/></para></summary>
|
||||
/// <summary>Location of remote file <para>Derived classes: <see cref="InputWebFileLocation"/>, <see cref="InputWebFileGeoPointLocation"/>, <see cref="InputWebFileAudioAlbumThumbLocation"/></para> <para>See <a href="https://corefork.telegram.org/type/InputWebFileLocation"/></para></summary>
|
||||
public abstract class InputWebFileLocationBase : IObject { }
|
||||
/// <summary>Location of a remote HTTP(s) file <para>See <a href="https://corefork.telegram.org/constructor/inputWebFileLocation"/></para></summary>
|
||||
[TLDef(0xC239D686)]
|
||||
|
|
@ -8652,6 +8694,7 @@ namespace TL
|
|||
[TLDef(0xF46FE924)]
|
||||
public class InputWebFileAudioAlbumThumbLocation : InputWebFileLocationBase
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
[IfFlag(0)] public InputDocument document;
|
||||
[IfFlag(1)] public string title;
|
||||
|
|
@ -8659,7 +8702,9 @@ namespace TL
|
|||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Field <see cref="document"/> has a value</summary>
|
||||
has_document = 0x1,
|
||||
/// <summary>Field <see cref="title"/> has a value</summary>
|
||||
has_title = 0x2,
|
||||
small = 0x4,
|
||||
}
|
||||
|
|
@ -8691,8 +8736,11 @@ namespace TL
|
|||
public long form_id;
|
||||
/// <summary>Bot ID</summary>
|
||||
public long bot_id;
|
||||
/// <summary>Form title</summary>
|
||||
public string title;
|
||||
/// <summary>Description</summary>
|
||||
public string description;
|
||||
/// <summary>Product photo</summary>
|
||||
[IfFlag(5)] public WebDocumentBase photo;
|
||||
/// <summary>Invoice</summary>
|
||||
public Invoice invoice;
|
||||
|
|
@ -8704,6 +8752,7 @@ namespace TL
|
|||
[IfFlag(4)] public string native_provider;
|
||||
/// <summary>Contains information about the payment provider, if available, to support it natively without the need for opening the URL.<br/>A JSON object that can contain the following fields:<br/><br/>- <c>apple_pay_merchant_id</c>: Apple Pay merchant ID<br/>- <c>google_pay_public_key</c>: Google Pay public key<br/>- <c>need_country</c>: True, if the user country must be provided,<br/>- <c>need_zip</c>: True, if the user ZIP/postal code must be provided,<br/>- <c>need_cardholder_name</c>: True, if the cardholder name must be provided<br/></summary>
|
||||
[IfFlag(4)] public DataJSON native_params;
|
||||
/// <summary>Additional payment methods</summary>
|
||||
[IfFlag(6)] public PaymentFormMethod[] additional_methods;
|
||||
/// <summary>Saved server-side order information</summary>
|
||||
[IfFlag(0)] public PaymentRequestedInfo saved_info;
|
||||
|
|
@ -9120,6 +9169,7 @@ namespace TL
|
|||
[TLDef(0x9CC123C7)]
|
||||
public class PhoneConnection : PhoneConnectionBase
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
/// <summary>Endpoint ID</summary>
|
||||
public long id;
|
||||
|
|
@ -9134,6 +9184,7 @@ namespace TL
|
|||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Whether TCP should be used</summary>
|
||||
tcp = 0x1,
|
||||
}
|
||||
|
||||
|
|
@ -11584,7 +11635,7 @@ namespace TL
|
|||
public BankCardOpenUrl[] open_urls;
|
||||
}
|
||||
|
||||
/// <summary>Dialog filter (folders) <para>Derived classes: <see cref="DialogFilter"/></para> <para>See <a href="https://corefork.telegram.org/type/DialogFilter"/></para></summary>
|
||||
/// <summary>Dialog filter (<a href="https://corefork.telegram.org/api/folders">folder »</a>) <para>Derived classes: <see cref="DialogFilter"/>, <see cref="DialogFilterDefault"/></para> <para>See <a href="https://corefork.telegram.org/type/DialogFilter"/></para></summary>
|
||||
public abstract class DialogFilterBase : IObject { }
|
||||
/// <summary>Dialog filter AKA <a href="https://corefork.telegram.org/api/folders">folder</a> <para>See <a href="https://corefork.telegram.org/constructor/dialogFilter"/></para></summary>
|
||||
[TLDef(0x7438F7E8)]
|
||||
|
|
@ -12058,6 +12109,7 @@ namespace TL
|
|||
has_reply_to_peer_id = 0x1,
|
||||
/// <summary>Field <see cref="reply_to_top_id"/> has a value</summary>
|
||||
has_reply_to_top_id = 0x2,
|
||||
/// <summary>Whether this message replies to a scheduled message</summary>
|
||||
reply_to_scheduled = 0x4,
|
||||
}
|
||||
}
|
||||
|
|
@ -12879,6 +12931,7 @@ namespace TL
|
|||
inactive = 0x1,
|
||||
/// <summary>Field <see cref="around_animation"/> has a value</summary>
|
||||
has_around_animation = 0x2,
|
||||
/// <summary>Whether this reaction can only be used by Telegram Premium users</summary>
|
||||
premium = 0x4,
|
||||
}
|
||||
}
|
||||
|
|
@ -12957,65 +13010,84 @@ namespace TL
|
|||
public string key;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/attachMenuBotIconColor"/></para></summary>
|
||||
/// <summary>Represents an attachment menu icon color for <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web apps »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBotIconColor"/></para></summary>
|
||||
[TLDef(0x4576F3F0)]
|
||||
public class AttachMenuBotIconColor : IObject
|
||||
{
|
||||
/// <summary>One of the following values: <br/><c>light_icon</c> - Color of the attachment menu icon (light mode) <br/><c>light_text</c> - Color of the attachment menu label, once selected (light mode) <br/><c>dark_icon</c> - Color of the attachment menu icon (dark mode) <br/><c>dark_text</c> - Color of the attachment menu label, once selected (dark mode)</summary>
|
||||
public string name;
|
||||
/// <summary>Color in RGB24 format</summary>
|
||||
public int color;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/attachMenuBotIcon"/></para></summary>
|
||||
/// <summary>Represents an attachment menu icon for <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web apps »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBotIcon"/></para></summary>
|
||||
[TLDef(0xB2A7386B)]
|
||||
public class AttachMenuBotIcon : IObject
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
/// <summary>One of the following values: note that animated icons must be played when the user clicks on the button, activating the bot web app. <br/><br/><c>default_static</c> - Default attachment menu icon in SVG format <br/><c>placeholder_static</c> - Default placeholder for opened Web Apps in SVG format <br/><c>ios_static</c> - Attachment menu icon in SVG format for the official iOS app <br/><c>ios_animated</c> - Animated attachment menu icon in TGS format for the official iOS app <br/><c>android_animated</c> - Animated attachment menu icon in TGS format for the official Android app <br/><c>macos_animated</c> - Animated attachment menu icon in TGS format for the official native Mac OS app</summary>
|
||||
public string name;
|
||||
/// <summary>The actual icon file.</summary>
|
||||
public DocumentBase icon;
|
||||
/// <summary>Attachment menu icon colors.</summary>
|
||||
[IfFlag(0)] public AttachMenuBotIconColor[] colors;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Field <see cref="colors"/> has a value</summary>
|
||||
has_colors = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/attachMenuBot"/></para></summary>
|
||||
/// <summary>Represents a <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web app that can be launched from the attachment menu »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBot"/></para></summary>
|
||||
[TLDef(0xC8AA2CD2)]
|
||||
public class AttachMenuBot : IObject
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
/// <summary>Bot ID</summary>
|
||||
public long bot_id;
|
||||
/// <summary>Attachment menu item name</summary>
|
||||
public string short_name;
|
||||
/// <summary>List of peer types where this attachment should be shown</summary>
|
||||
public AttachMenuPeerType[] peer_types;
|
||||
/// <summary>Attachment menu icon</summary>
|
||||
public AttachMenuBotIcon[] icons;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Whether this bot attachment menu entry should be shown in the attachment menu (toggle using <a href="https://corefork.telegram.org/method/messages.toggleBotInAttachMenu">messages.toggleBotInAttachMenu</a>)</summary>
|
||||
inactive = 0x1,
|
||||
/// <summary>True, if the bot supports the "settings_button_pressed" event</summary>
|
||||
has_settings = 0x2,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/attachMenuBots"/></para></summary>
|
||||
/// <summary>Represents a list of <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web apps that can be launched from the attachment menu »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBots"/></para></summary>
|
||||
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/attachMenuBotsNotModified">attachMenuBotsNotModified</a></remarks>
|
||||
[TLDef(0x3C4301C0)]
|
||||
public class AttachMenuBots : IObject
|
||||
{
|
||||
/// <summary><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></summary>
|
||||
public long hash;
|
||||
/// <summary>List of <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web apps that can be launched from the attachment menu »</a></summary>
|
||||
public AttachMenuBot[] bots;
|
||||
/// <summary>Info about related users/bots</summary>
|
||||
public Dictionary<long, User> users;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/attachMenuBotsBot"/></para></summary>
|
||||
/// <summary>Represents a <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web app that can be launched from the attachment menu »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBotsBot"/></para></summary>
|
||||
[TLDef(0x93BF667F)]
|
||||
public class AttachMenuBotsBot : IObject
|
||||
{
|
||||
/// <summary>Represents a <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web app that can be launched from the attachment menu »</a><br/></summary>
|
||||
public AttachMenuBot bot;
|
||||
/// <summary>Info about related users and bots</summary>
|
||||
public Dictionary<long, User> users;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/WebViewResult"/></para></summary>
|
||||
/// <summary>Contains information about a <a href="https://core.telegram.org/bots/webapps">Web App</a> <para>Derived classes: <see cref="WebViewResultUrl"/></para> <para>See <a href="https://corefork.telegram.org/type/WebViewResult"/></para></summary>
|
||||
public abstract class WebViewResult : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/webViewResultUrl"/></para></summary>
|
||||
[TLDef(0x0C14557C)]
|
||||
|
|
@ -13025,7 +13097,7 @@ namespace TL
|
|||
public string url;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/SimpleWebViewResult"/></para></summary>
|
||||
/// <summary>Contains the webview URL with appropriate theme and user info parameters added <para>Derived classes: <see cref="SimpleWebViewResultUrl"/></para> <para>See <a href="https://corefork.telegram.org/type/SimpleWebViewResult"/></para></summary>
|
||||
public abstract class SimpleWebViewResult : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/simpleWebViewResultUrl"/></para></summary>
|
||||
[TLDef(0x882F76BB)]
|
||||
|
|
@ -13038,16 +13110,18 @@ namespace TL
|
|||
[TLDef(0x0C94511C)]
|
||||
public class WebViewMessageSent : IObject
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
[IfFlag(0)] public InputBotInlineMessageIDBase msg_id;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Field <see cref="msg_id"/> has a value</summary>
|
||||
has_msg_id = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/BotMenuButton"/></para></summary>
|
||||
/// <summary>Indicates the action to execute when pressing the in-UI menu button for bots <para>Derived classes: <see cref="BotMenuButtonDefault"/>, <see cref="BotMenuButtonCommands"/>, <see cref="BotMenuButton"/></para> <para>See <a href="https://corefork.telegram.org/type/BotMenuButton"/></para></summary>
|
||||
public abstract class BotMenuButtonBase : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/botMenuButtonDefault"/></para></summary>
|
||||
[TLDef(0x7533A588)]
|
||||
|
|
@ -13055,126 +13129,150 @@ namespace TL
|
|||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/botMenuButtonCommands"/></para></summary>
|
||||
[TLDef(0x4258C205)]
|
||||
public class BotMenuButtonCommands : BotMenuButtonBase { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/botMenuButton"/></para></summary>
|
||||
/// <summary>Indicates the action to execute when pressing the in-UI menu button for bots <para>See <a href="https://corefork.telegram.org/constructor/botMenuButton"/></para></summary>
|
||||
[TLDef(0xC7B57CE6)]
|
||||
public class BotMenuButton : BotMenuButtonBase
|
||||
{
|
||||
/// <summary>Title to be displayed on the menu button instead of 'Menu'</summary>
|
||||
public string text;
|
||||
/// <summary>URL of a <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-menu-button">web app</a> to open when the user clicks on the button</summary>
|
||||
public string url;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/account.savedRingtones"/></para></summary>
|
||||
/// <summary>A list of saved notification sounds <para>See <a href="https://corefork.telegram.org/constructor/account.savedRingtones"/></para></summary>
|
||||
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/account.savedRingtonesNotModified">account.savedRingtonesNotModified</a></remarks>
|
||||
[TLDef(0xC1E92CC5)]
|
||||
public class Account_SavedRingtones : IObject
|
||||
{
|
||||
/// <summary><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></summary>
|
||||
public long hash;
|
||||
/// <summary>Saved notification sounds</summary>
|
||||
public DocumentBase[] ringtones;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/NotificationSound"/></para></summary>
|
||||
/// <summary>Represents a notification sound <para>Derived classes: <see cref="NotificationSoundDefault"/>, <see cref="NotificationSoundNone"/>, <see cref="NotificationSoundLocal"/>, <see cref="NotificationSoundRingtone"/></para> <para>See <a href="https://corefork.telegram.org/type/NotificationSound"/></para></summary>
|
||||
public abstract class NotificationSound : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/notificationSoundDefault"/></para></summary>
|
||||
/// <summary>Indicates the default notification sound should be used <para>See <a href="https://corefork.telegram.org/constructor/notificationSoundDefault"/></para></summary>
|
||||
[TLDef(0x97E8BEBE)]
|
||||
public class NotificationSoundDefault : NotificationSound { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/notificationSoundNone"/></para></summary>
|
||||
/// <summary>No notification sound should be used <para>See <a href="https://corefork.telegram.org/constructor/notificationSoundNone"/></para></summary>
|
||||
[TLDef(0x6F0C34DF)]
|
||||
public class NotificationSoundNone : NotificationSound { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/notificationSoundLocal"/></para></summary>
|
||||
/// <summary>Indicates a specific local notification sound should be used <para>See <a href="https://corefork.telegram.org/constructor/notificationSoundLocal"/></para></summary>
|
||||
[TLDef(0x830B9AE4)]
|
||||
public class NotificationSoundLocal : NotificationSound
|
||||
{
|
||||
/// <summary>Notification sound title</summary>
|
||||
public string title;
|
||||
/// <summary>Notification sound identifier (arbitrary data used by the client to identify a specific local notification sound)</summary>
|
||||
public string data;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/notificationSoundRingtone"/></para></summary>
|
||||
/// <summary>A specific previously uploaded notification sound should be used <para>See <a href="https://corefork.telegram.org/constructor/notificationSoundRingtone"/></para></summary>
|
||||
[TLDef(0xFF6C8049)]
|
||||
public class NotificationSoundRingtone : NotificationSound
|
||||
{
|
||||
/// <summary>Document ID of notification sound uploaded using <a href="https://corefork.telegram.org/method/account.uploadRingtone">account.uploadRingtone</a></summary>
|
||||
public long id;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/account.savedRingtone"/></para></summary>
|
||||
/// <summary>The notification sound was already in MP3 format and was saved without any modification <para>See <a href="https://corefork.telegram.org/constructor/account.savedRingtone"/></para></summary>
|
||||
[TLDef(0xB7263F6D)]
|
||||
public class Account_SavedRingtone : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/account.savedRingtoneConverted"/></para></summary>
|
||||
/// <summary>The notification sound was not in MP3 format and was successfully converted and saved, use the returned <see cref="DocumentBase"/> to refer to the notification sound from now on <para>See <a href="https://corefork.telegram.org/constructor/account.savedRingtoneConverted"/></para></summary>
|
||||
[TLDef(0x1F307EB7)]
|
||||
public class Account_SavedRingtoneConverted : Account_SavedRingtone
|
||||
{
|
||||
/// <summary>The converted notification sound</summary>
|
||||
public DocumentBase document;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/AttachMenuPeerType"/></para></summary>
|
||||
/// <summary>Indicates a supported peer type for a <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web app attachment menu</a> <para>See <a href="https://corefork.telegram.org/type/AttachMenuPeerType"/></para></summary>
|
||||
public enum AttachMenuPeerType : uint
|
||||
{
|
||||
///<summary>See <a href="https://corefork.telegram.org/constructor/attachMenuPeerTypeSameBotPM"/></summary>
|
||||
///<summary>The bot attachment menu entry is available in the chat with the bot that offers it</summary>
|
||||
SameBotPM = 0x7D6BE90E,
|
||||
///<summary>See <a href="https://corefork.telegram.org/constructor/attachMenuPeerTypeBotPM"/></summary>
|
||||
///<summary>The bot attachment menu entry is available in private chats with other bots</summary>
|
||||
BotPM = 0xC32BFA1A,
|
||||
///<summary>See <a href="https://corefork.telegram.org/constructor/attachMenuPeerTypePM"/></summary>
|
||||
///<summary>The bot attachment menu entry is available in private chats with other users</summary>
|
||||
PM = 0xF146D31F,
|
||||
///<summary>See <a href="https://corefork.telegram.org/constructor/attachMenuPeerTypeChat"/></summary>
|
||||
///<summary>The bot attachment menu entry is available in <a href="https://corefork.telegram.org/api/channel">groups and supergroups</a></summary>
|
||||
Chat = 0x0509113F,
|
||||
///<summary>See <a href="https://corefork.telegram.org/constructor/attachMenuPeerTypeBroadcast"/></summary>
|
||||
///<summary>The bot attachment menu entry is available in channels</summary>
|
||||
Broadcast = 0x7BFBDEFC,
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/InputInvoice"/></para></summary>
|
||||
/// <summary>An invoice <para>Derived classes: <see cref="InputInvoiceMessage"/>, <see cref="InputInvoiceSlug"/></para> <para>See <a href="https://corefork.telegram.org/type/InputInvoice"/></para></summary>
|
||||
public abstract class InputInvoice : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputInvoiceMessage"/></para></summary>
|
||||
/// <summary>An invoice contained in a <see cref="MessageMediaInvoice"/> message. <para>See <a href="https://corefork.telegram.org/constructor/inputInvoiceMessage"/></para></summary>
|
||||
[TLDef(0xC5B56859)]
|
||||
public class InputInvoiceMessage : InputInvoice
|
||||
{
|
||||
/// <summary>Chat where the invoice was sent</summary>
|
||||
public InputPeer peer;
|
||||
/// <summary>Message ID</summary>
|
||||
public int msg_id;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputInvoiceSlug"/></para></summary>
|
||||
/// <summary>An invoice slug taken from a t.me/invoice/<slug> link or from the <a href="https://corefork.telegram.org/api/config#client-configuration"><c>premium_invoice_slug</c> app config parameter »</a></slug> <para>See <a href="https://corefork.telegram.org/constructor/inputInvoiceSlug"/></para></summary>
|
||||
[TLDef(0xC326CAEF)]
|
||||
public class InputInvoiceSlug : InputInvoice
|
||||
{
|
||||
/// <summary>The invoice slug</summary>
|
||||
public string slug;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/payments.exportedInvoice"/></para></summary>
|
||||
/// <summary>Exported invoice <para>See <a href="https://corefork.telegram.org/constructor/payments.exportedInvoice"/></para></summary>
|
||||
[TLDef(0xAED0CBD9)]
|
||||
public class Payments_ExportedInvoice : IObject
|
||||
{
|
||||
/// <summary>Exported invoice URL</summary>
|
||||
public string url;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messages.transcribedAudio"/></para></summary>
|
||||
/// <summary>Transcribed text from a voice message <para>See <a href="https://corefork.telegram.org/constructor/messages.transcribedAudio"/></para></summary>
|
||||
[TLDef(0x93752C52)]
|
||||
public class Messages_TranscribedAudio : IObject
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
/// <summary>Transcription ID</summary>
|
||||
public long transcription_id;
|
||||
/// <summary>Transcripted text</summary>
|
||||
public string text;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Whether the transcription is partial because audio transcription is still in progress, if set the user may receive further <see cref="UpdateTranscribedAudio"/> updates with the updated transcription.</summary>
|
||||
pending = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/help.premiumPromo"/></para></summary>
|
||||
/// <summary>Telegram Premium promotion information <para>See <a href="https://corefork.telegram.org/constructor/help.premiumPromo"/></para></summary>
|
||||
[TLDef(0x8A4F3C29)]
|
||||
public class Help_PremiumPromo : IObject
|
||||
{
|
||||
/// <summary>Description of the current state of the user's Telegram Premium subscription</summary>
|
||||
public string status_text;
|
||||
/// <summary><a href="https://corefork.telegram.org/api/entities">Message entities for styled text</a></summary>
|
||||
public MessageEntity[] status_entities;
|
||||
/// <summary>A list of <a href="https://corefork.telegram.org/api/premium">premium feature identifiers »</a>, associated to each video</summary>
|
||||
public string[] video_sections;
|
||||
/// <summary>A list of videos</summary>
|
||||
public DocumentBase[] videos;
|
||||
/// <summary>Three-letter ISO 4217 <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a> code</summary>
|
||||
public string currency;
|
||||
/// <summary>Monthly price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of <c>US$ 1.45</c> pass <c>amount = 145</c>. See the exp parameter in <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</summary>
|
||||
public long monthly_amount;
|
||||
/// <summary>Related user information</summary>
|
||||
public Dictionary<long, User> users;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/InputStorePaymentPurpose"/></para></summary>
|
||||
/// <summary>Info about a Telegram Premium purchase <para>Derived classes: <see cref="InputStorePaymentPremiumSubscription"/>, <see cref="InputStorePaymentGiftPremium"/></para> <para>See <a href="https://corefork.telegram.org/type/InputStorePaymentPurpose"/></para></summary>
|
||||
public abstract class InputStorePaymentPurpose : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputStorePaymentPremiumSubscription"/></para></summary>
|
||||
/// <summary>Info about a Telegram Premium purchase <para>See <a href="https://corefork.telegram.org/constructor/inputStorePaymentPremiumSubscription"/></para></summary>
|
||||
[TLDef(0xA6751E66)]
|
||||
public class InputStorePaymentPremiumSubscription : InputStorePaymentPurpose
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
|
|
@ -13182,33 +13280,41 @@ namespace TL
|
|||
restore = 0x1,
|
||||
}
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputStorePaymentGiftPremium"/></para></summary>
|
||||
/// <summary>Info about a gifted Telegram Premium purchase <para>See <a href="https://corefork.telegram.org/constructor/inputStorePaymentGiftPremium"/></para></summary>
|
||||
[TLDef(0x616F7FE8)]
|
||||
public class InputStorePaymentGiftPremium : InputStorePaymentPurpose
|
||||
{
|
||||
/// <summary>The user to which the Telegram Premium subscription was gifted</summary>
|
||||
public InputUserBase user_id;
|
||||
/// <summary>Three-letter ISO 4217 <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a> code</summary>
|
||||
public string currency;
|
||||
/// <summary>Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of <c>US$ 1.45</c> pass <c>amount = 145</c>. See the exp parameter in <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</summary>
|
||||
public long amount;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/premiumGiftOption"/></para></summary>
|
||||
/// <summary>Telegram Premium gift option <para>See <a href="https://corefork.telegram.org/constructor/premiumGiftOption"/></para></summary>
|
||||
[TLDef(0x74C34319)]
|
||||
public class PremiumGiftOption : IObject
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
/// <summary>Duration of gifted Telegram Premium subscription</summary>
|
||||
public int months;
|
||||
/// <summary>Three-letter ISO 4217 <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a> code</summary>
|
||||
public string currency;
|
||||
/// <summary>Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of <c>US$ 1.45</c> pass <c>amount = 145</c>. See the exp parameter in <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</summary>
|
||||
public long amount;
|
||||
public string bot_url;
|
||||
[IfFlag(0)] public string store_product;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Field <see cref="store_product"/> has a value</summary>
|
||||
has_store_product = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/paymentFormMethod"/></para></summary>
|
||||
/// <summary>Represents a payment method <para>See <a href="https://corefork.telegram.org/constructor/paymentFormMethod"/></para></summary>
|
||||
[TLDef(0x88F8F21B)]
|
||||
public class PaymentFormMethod : IObject
|
||||
{
|
||||
|
|
|
|||
|
|
@ -337,7 +337,7 @@ namespace TL
|
|||
{
|
||||
});
|
||||
|
||||
/// <summary>Updates user profile. <para>See <a href="https://corefork.telegram.org/method/account.updateProfile"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.updateProfile#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Updates user profile. <para>See <a href="https://corefork.telegram.org/method/account.updateProfile"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/account.updateProfile#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="first_name">New user first name</param>
|
||||
/// <param name="last_name">New user last name</param>
|
||||
/// <param name="about">New bio</param>
|
||||
|
|
@ -350,7 +350,7 @@ namespace TL
|
|||
about = about,
|
||||
});
|
||||
|
||||
/// <summary>Updates online user status. <para>See <a href="https://corefork.telegram.org/method/account.updateStatus"/></para></summary>
|
||||
/// <summary>Updates online user status. <para>See <a href="https://corefork.telegram.org/method/account.updateStatus"/></para> <para>Possible <see cref="RpcException"/> codes: 403 (<a href="https://corefork.telegram.org/method/account.updateStatus#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="offline">If <see cref="Bool.True"/> is transmitted, user status will change to <see cref="UserStatusOffline"/>.</param>
|
||||
public static Task<bool> Account_UpdateStatus(this Client client, bool offline)
|
||||
=> client.Invoke(new Account_UpdateStatus
|
||||
|
|
@ -686,13 +686,13 @@ namespace TL
|
|||
code = code,
|
||||
});
|
||||
|
||||
/// <summary>Resend the code to verify an email to use as <a href="https://corefork.telegram.org/api/srp">2FA recovery method</a>. <para>See <a href="https://corefork.telegram.org/method/account.resendPasswordEmail"/></para></summary>
|
||||
/// <summary>Resend the code to verify an email to use as <a href="https://corefork.telegram.org/api/srp">2FA recovery method</a>. <para>See <a href="https://corefork.telegram.org/method/account.resendPasswordEmail"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.resendPasswordEmail#possible-errors">details</a>)</para></summary>
|
||||
public static Task<bool> Account_ResendPasswordEmail(this Client client)
|
||||
=> client.Invoke(new Account_ResendPasswordEmail
|
||||
{
|
||||
});
|
||||
|
||||
/// <summary>Cancel the code that was sent to verify an email to use as <a href="https://corefork.telegram.org/api/srp">2FA recovery method</a>. <para>See <a href="https://corefork.telegram.org/method/account.cancelPasswordEmail"/></para></summary>
|
||||
/// <summary>Cancel the code that was sent to verify an email to use as <a href="https://corefork.telegram.org/api/srp">2FA recovery method</a>. <para>See <a href="https://corefork.telegram.org/method/account.cancelPasswordEmail"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.cancelPasswordEmail#possible-errors">details</a>)</para></summary>
|
||||
public static Task<bool> Account_CancelPasswordEmail(this Client client)
|
||||
=> client.Invoke(new Account_CancelPasswordEmail
|
||||
{
|
||||
|
|
@ -919,7 +919,7 @@ namespace TL
|
|||
settings = settings,
|
||||
});
|
||||
|
||||
/// <summary>Report a profile photo of a dialog <para>See <a href="https://corefork.telegram.org/method/account.reportProfilePhoto"/></para></summary>
|
||||
/// <summary>Report a profile photo of a dialog <para>See <a href="https://corefork.telegram.org/method/account.reportProfilePhoto"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.reportProfilePhoto#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">The dialog</param>
|
||||
/// <param name="photo_id">Dialog photo ID</param>
|
||||
/// <param name="reason">Report reason</param>
|
||||
|
|
@ -975,7 +975,8 @@ namespace TL
|
|||
call_requests_disabled = call_requests_disabled.GetValueOrDefault(),
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.getSavedRingtones"/></para></summary>
|
||||
/// <summary>Fetch saved notification sounds <para>See <a href="https://corefork.telegram.org/method/account.getSavedRingtones"/></para></summary>
|
||||
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/account.savedRingtonesNotModified">account.savedRingtonesNotModified</a></returns>
|
||||
public static Task<Account_SavedRingtones> Account_GetSavedRingtones(this Client client, long hash = default)
|
||||
=> client.Invoke(new Account_GetSavedRingtones
|
||||
|
|
@ -983,7 +984,9 @@ namespace TL
|
|||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.saveRingtone"/></para></summary>
|
||||
/// <summary>Save or remove saved notification sound. <para>See <a href="https://corefork.telegram.org/method/account.saveRingtone"/></para></summary>
|
||||
/// <param name="id">Notification sound uploaded using <a href="https://corefork.telegram.org/method/account.uploadRingtone">account.uploadRingtone</a></param>
|
||||
/// <param name="unsave">Whether to add or delete the notification sound</param>
|
||||
public static Task<Account_SavedRingtone> Account_SaveRingtone(this Client client, InputDocument id, bool unsave)
|
||||
=> client.Invoke(new Account_SaveRingtone
|
||||
{
|
||||
|
|
@ -991,7 +994,10 @@ namespace TL
|
|||
unsave = unsave,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.uploadRingtone"/></para></summary>
|
||||
/// <summary>Upload notification sound, use <a href="https://corefork.telegram.org/method/account.saveRingtone">account.saveRingtone</a> to convert it and add it to the list of saved notification sounds. <para>See <a href="https://corefork.telegram.org/method/account.uploadRingtone"/></para></summary>
|
||||
/// <param name="file">Notification sound</param>
|
||||
/// <param name="file_name">File name</param>
|
||||
/// <param name="mime_type">MIME type of file</param>
|
||||
public static Task<DocumentBase> Account_UploadRingtone(this Client client, InputFileBase file, string file_name, string mime_type)
|
||||
=> client.Invoke(new Account_UploadRingtone
|
||||
{
|
||||
|
|
@ -1016,7 +1022,7 @@ namespace TL
|
|||
id = id,
|
||||
});
|
||||
|
||||
/// <summary>Notify the user that the sent <a href="https://corefork.telegram.org/passport">passport</a> data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change). <para>See <a href="https://corefork.telegram.org/method/users.setSecureValueErrors"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/users.setSecureValueErrors#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Notify the user that the sent <a href="https://corefork.telegram.org/passport">passport</a> data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change). <para>See <a href="https://corefork.telegram.org/method/users.setSecureValueErrors"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/users.setSecureValueErrors#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="id">The user</param>
|
||||
/// <param name="errors">Errors</param>
|
||||
public static Task<bool> Users_SetSecureValueErrors(this Client client, InputUserBase id, params SecureValueErrorBase[] errors)
|
||||
|
|
@ -1217,7 +1223,7 @@ namespace TL
|
|||
msg_id = msg_id,
|
||||
});
|
||||
|
||||
/// <summary>Resolve a phone number to get user info, if their privacy settings allow it. <para>See <a href="https://corefork.telegram.org/method/contacts.resolvePhone"/></para></summary>
|
||||
/// <summary>Resolve a phone number to get user info, if their privacy settings allow it. <para>See <a href="https://corefork.telegram.org/method/contacts.resolvePhone"/></para> <para>Possible <see cref="RpcException"/> codes: (<a href="https://corefork.telegram.org/method/contacts.resolvePhone#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="phone">Phone number in international format, possibly obtained from a <c>t.me/+number</c> or <c>tg://resolve?phone=number</c> URI.</param>
|
||||
public static Task<Contacts_ResolvedPeer> Contacts_ResolvePhone(this Client client, string phone)
|
||||
=> client.Invoke(new Contacts_ResolvePhone
|
||||
|
|
@ -1772,7 +1778,7 @@ namespace TL
|
|||
stickerset = stickerset,
|
||||
});
|
||||
|
||||
/// <summary>Start a conversation with a bot using a <a href="https://corefork.telegram.org/bots#deep-linking">deep linking parameter</a> <para>See <a href="https://corefork.telegram.org/method/messages.startBot"/></para> <para>Possible <see cref="RpcException"/> codes: 400,500 (<a href="https://corefork.telegram.org/method/messages.startBot#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Start a conversation with a bot using a <a href="https://corefork.telegram.org/bots#deep-linking">deep linking parameter</a> <para>See <a href="https://corefork.telegram.org/method/messages.startBot"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403,500 (<a href="https://corefork.telegram.org/method/messages.startBot#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="bot">The bot</param>
|
||||
/// <param name="peer">The chat where to start the bot, can be the bot's private chat or a group</param>
|
||||
/// <param name="random_id">Random ID to avoid resending the same message</param>
|
||||
|
|
@ -1845,6 +1851,7 @@ namespace TL
|
|||
|
||||
/// <summary>Reorder installed stickersets <para>See <a href="https://corefork.telegram.org/method/messages.reorderStickerSets"/></para></summary>
|
||||
/// <param name="masks">Reorder mask stickersets</param>
|
||||
/// <param name="emojis">Reorder custom emoji stickersets</param>
|
||||
/// <param name="order">New stickerset order by stickerset IDs</param>
|
||||
public static Task<bool> Messages_ReorderStickerSets(this Client client, long[] order, bool masks = false, bool emojis = false)
|
||||
=> client.Invoke(new Messages_ReorderStickerSets
|
||||
|
|
@ -2106,6 +2113,7 @@ namespace TL
|
|||
|
||||
/// <summary>Get all archived stickers <para>See <a href="https://corefork.telegram.org/method/messages.getArchivedStickers"/></para></summary>
|
||||
/// <param name="masks">Get mask stickers</param>
|
||||
/// <param name="emojis">Get custom emoji stickers</param>
|
||||
/// <param name="offset_id"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param>
|
||||
/// <param name="limit">Maximum number of results to return, <a href="https://corefork.telegram.org/api/offsets">see pagination</a></param>
|
||||
public static Task<Messages_ArchivedStickers> Messages_GetArchivedStickers(this Client client, long offset_id = default, int limit = int.MaxValue, bool masks = false, bool emojis = false)
|
||||
|
|
@ -2730,7 +2738,7 @@ namespace TL
|
|||
read_max_id = read_max_id,
|
||||
});
|
||||
|
||||
/// <summary><a href="https://corefork.telegram.org/api/pin">Unpin</a> all pinned messages <para>See <a href="https://corefork.telegram.org/method/messages.unpinAllMessages"/> [bots: ✓]</para></summary>
|
||||
/// <summary><a href="https://corefork.telegram.org/api/pin">Unpin</a> all pinned messages <para>See <a href="https://corefork.telegram.org/method/messages.unpinAllMessages"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.unpinAllMessages#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Chat where to unpin</param>
|
||||
public static Task<Messages_AffectedHistory> Messages_UnpinAllMessages(this Client client, InputPeer peer)
|
||||
=> client.Invoke(new Messages_UnpinAllMessages
|
||||
|
|
@ -2754,7 +2762,7 @@ namespace TL
|
|||
flags = (Messages_DeletePhoneCallHistory.Flags)(revoke ? 0x1 : 0),
|
||||
});
|
||||
|
||||
/// <summary>Obtains information about a chat export file, generated by a foreign chat app, <a href="https://corefork.telegram.org/api/import">click here for more info about imported chats »</a>. <para>See <a href="https://corefork.telegram.org/method/messages.checkHistoryImport"/></para></summary>
|
||||
/// <summary>Obtains information about a chat export file, generated by a foreign chat app, <a href="https://corefork.telegram.org/api/import">click here for more info about imported chats »</a>. <para>See <a href="https://corefork.telegram.org/method/messages.checkHistoryImport"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.checkHistoryImport#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="import_head">Beginning of the message file; up to 100 lines.</param>
|
||||
public static Task<Messages_HistoryImportParsed> Messages_CheckHistoryImport(this Client client, string import_head)
|
||||
=> client.Invoke(new Messages_CheckHistoryImport
|
||||
|
|
@ -2799,7 +2807,7 @@ namespace TL
|
|||
import_id = import_id,
|
||||
});
|
||||
|
||||
/// <summary>Get info about the chat invites of a specific chat <para>See <a href="https://corefork.telegram.org/method/messages.getExportedChatInvites"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getExportedChatInvites#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get info about the chat invites of a specific chat <para>See <a href="https://corefork.telegram.org/method/messages.getExportedChatInvites"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.getExportedChatInvites#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="revoked">Whether to fetch revoked chat invites</param>
|
||||
/// <param name="peer">Chat</param>
|
||||
/// <param name="admin_id">Whether to only fetch chat invites from this admin</param>
|
||||
|
|
@ -2817,7 +2825,7 @@ namespace TL
|
|||
limit = limit,
|
||||
});
|
||||
|
||||
/// <summary>Get info about a chat invite <para>See <a href="https://corefork.telegram.org/method/messages.getExportedChatInvite"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getExportedChatInvite#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get info about a chat invite <para>See <a href="https://corefork.telegram.org/method/messages.getExportedChatInvite"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.getExportedChatInvite#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Chat</param>
|
||||
/// <param name="link">Invite link</param>
|
||||
public static Task<Messages_ExportedChatInviteBase> Messages_GetExportedChatInvite(this Client client, InputPeer peer, string link)
|
||||
|
|
@ -2847,7 +2855,7 @@ namespace TL
|
|||
title = title,
|
||||
});
|
||||
|
||||
/// <summary>Delete all revoked chat invites <para>See <a href="https://corefork.telegram.org/method/messages.deleteRevokedExportedChatInvites"/></para></summary>
|
||||
/// <summary>Delete all revoked chat invites <para>See <a href="https://corefork.telegram.org/method/messages.deleteRevokedExportedChatInvites"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.deleteRevokedExportedChatInvites#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Chat</param>
|
||||
/// <param name="admin_id">ID of the admin that originally generated the revoked chat invites</param>
|
||||
public static Task<bool> Messages_DeleteRevokedExportedChatInvites(this Client client, InputPeer peer, InputUserBase admin_id)
|
||||
|
|
@ -2875,7 +2883,7 @@ namespace TL
|
|||
peer = peer,
|
||||
});
|
||||
|
||||
/// <summary>Get info about the users that joined the chat using a specific chat invite <para>See <a href="https://corefork.telegram.org/method/messages.getChatInviteImporters"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getChatInviteImporters#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get info about the users that joined the chat using a specific chat invite <para>See <a href="https://corefork.telegram.org/method/messages.getChatInviteImporters"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.getChatInviteImporters#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="requested">If set, only returns info about users with pending <a href="https://corefork.telegram.org/api/invites#join-requests">join requests »</a></param>
|
||||
/// <param name="peer">Chat</param>
|
||||
/// <param name="link">Invite link</param>
|
||||
|
|
@ -2973,7 +2981,7 @@ namespace TL
|
|||
user_id = user_id,
|
||||
});
|
||||
|
||||
/// <summary>Dismiss or approve all <a href="https://corefork.telegram.org/api/invites#join-requests">join requests</a> related to a specific chat or channel. <para>See <a href="https://corefork.telegram.org/method/messages.hideAllChatJoinRequests"/></para></summary>
|
||||
/// <summary>Dismiss or approve all <a href="https://corefork.telegram.org/api/invites#join-requests">join requests</a> related to a specific chat or channel. <para>See <a href="https://corefork.telegram.org/method/messages.hideAllChatJoinRequests"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.hideAllChatJoinRequests#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="approved">Whether to dismiss or approve all chat <a href="https://corefork.telegram.org/api/invites#join-requests">join requests »</a></param>
|
||||
/// <param name="peer">The chat or channel</param>
|
||||
/// <param name="link">Only dismiss or approve <a href="https://corefork.telegram.org/api/invites#join-requests">join requests »</a> initiated using this invite link</param>
|
||||
|
|
@ -3005,7 +3013,7 @@ namespace TL
|
|||
send_as = send_as,
|
||||
});
|
||||
|
||||
/// <summary>React to message <para>See <a href="https://corefork.telegram.org/method/messages.sendReaction"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.sendReaction#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>React to message <para>See <a href="https://corefork.telegram.org/method/messages.sendReaction"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.sendReaction#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="big">Whether a bigger and longer reaction should be shown</param>
|
||||
/// <param name="peer">Peer</param>
|
||||
/// <param name="msg_id">Message ID to react to</param>
|
||||
|
|
@ -3019,7 +3027,7 @@ namespace TL
|
|||
reaction = reaction,
|
||||
});
|
||||
|
||||
/// <summary>Get <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> <para>See <a href="https://corefork.telegram.org/method/messages.getMessagesReactions"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Get <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> <para>See <a href="https://corefork.telegram.org/method/messages.getMessagesReactions"/></para></summary>
|
||||
/// <param name="peer">Peer</param>
|
||||
/// <param name="id">Message IDs</param>
|
||||
public static Task<UpdatesBase> Messages_GetMessagesReactions(this Client client, InputPeer peer, int[] id)
|
||||
|
|
@ -3029,7 +3037,7 @@ namespace TL
|
|||
id = id,
|
||||
});
|
||||
|
||||
/// <summary>Get <a href="https://corefork.telegram.org/api/reactions">message reaction</a> list, along with the sender of each reaction. <para>See <a href="https://corefork.telegram.org/method/messages.getMessageReactionsList"/></para></summary>
|
||||
/// <summary>Get <a href="https://corefork.telegram.org/api/reactions">message reaction</a> list, along with the sender of each reaction. <para>See <a href="https://corefork.telegram.org/method/messages.getMessageReactionsList"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.getMessageReactionsList#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Peer</param>
|
||||
/// <param name="id">Message ID</param>
|
||||
/// <param name="reaction">Get only reactions of this type (UTF8 emoji)</param>
|
||||
|
|
@ -3046,7 +3054,7 @@ namespace TL
|
|||
limit = limit,
|
||||
});
|
||||
|
||||
/// <summary>Change the set of <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> that can be used in a certain group, supergroup or channel <para>See <a href="https://corefork.telegram.org/method/messages.setChatAvailableReactions"/></para></summary>
|
||||
/// <summary>Change the set of <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> that can be used in a certain group, supergroup or channel <para>See <a href="https://corefork.telegram.org/method/messages.setChatAvailableReactions"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setChatAvailableReactions#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Group where to apply changes</param>
|
||||
/// <param name="available_reactions">Allowed reaction emojis</param>
|
||||
public static Task<UpdatesBase> Messages_SetChatAvailableReactions(this Client client, InputPeer peer, string[] available_reactions)
|
||||
|
|
@ -3073,7 +3081,7 @@ namespace TL
|
|||
reaction = reaction,
|
||||
});
|
||||
|
||||
/// <summary>Translate a given text <para>See <a href="https://corefork.telegram.org/method/messages.translateText"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Translate a given text <para>See <a href="https://corefork.telegram.org/method/messages.translateText"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.translateText#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">If the text is a chat message, the peer ID</param>
|
||||
/// <param name="msg_id">If the text is a chat message, the message ID</param>
|
||||
/// <param name="text">The text to translate</param>
|
||||
|
|
@ -3090,7 +3098,7 @@ namespace TL
|
|||
to_lang = to_lang,
|
||||
});
|
||||
|
||||
/// <summary>Get unread reactions to messages you sent <para>See <a href="https://corefork.telegram.org/method/messages.getUnreadReactions"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Get unread reactions to messages you sent <para>See <a href="https://corefork.telegram.org/method/messages.getUnreadReactions"/></para></summary>
|
||||
/// <param name="peer">Peer</param>
|
||||
/// <param name="offset_id"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param>
|
||||
/// <param name="add_offset"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param>
|
||||
|
|
@ -3108,7 +3116,7 @@ namespace TL
|
|||
min_id = min_id,
|
||||
});
|
||||
|
||||
/// <summary>Mark <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> as read <para>See <a href="https://corefork.telegram.org/method/messages.readReactions"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Mark <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> as read <para>See <a href="https://corefork.telegram.org/method/messages.readReactions"/></para></summary>
|
||||
/// <param name="peer">Peer</param>
|
||||
public static Task<Messages_AffectedHistory> Messages_ReadReactions(this Client client, InputPeer peer)
|
||||
=> client.Invoke(new Messages_ReadReactions
|
||||
|
|
@ -3128,7 +3136,8 @@ namespace TL
|
|||
limit = limit,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getAttachMenuBots"/></para></summary>
|
||||
/// <summary>Returns installed attachment menu <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web apps »</a> <para>See <a href="https://corefork.telegram.org/method/messages.getAttachMenuBots"/></para></summary>
|
||||
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/attachMenuBotsNotModified">attachMenuBotsNotModified</a></returns>
|
||||
public static Task<AttachMenuBots> Messages_GetAttachMenuBots(this Client client, long hash = default)
|
||||
=> client.Invoke(new Messages_GetAttachMenuBots
|
||||
|
|
@ -3136,14 +3145,17 @@ namespace TL
|
|||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getAttachMenuBot"/></para></summary>
|
||||
/// <summary>Returns attachment menu entry for a <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web app that can be launched from the attachment menu »</a> <para>See <a href="https://corefork.telegram.org/method/messages.getAttachMenuBot"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getAttachMenuBot#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="bot">Bot ID</param>
|
||||
public static Task<AttachMenuBotsBot> Messages_GetAttachMenuBot(this Client client, InputUserBase bot)
|
||||
=> client.Invoke(new Messages_GetAttachMenuBot
|
||||
{
|
||||
bot = bot,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.toggleBotInAttachMenu"/></para></summary>
|
||||
/// <summary>Enable or disable <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">web bot attachment menu »</a> <para>See <a href="https://corefork.telegram.org/method/messages.toggleBotInAttachMenu"/></para></summary>
|
||||
/// <param name="bot">Bot ID</param>
|
||||
/// <param name="enabled">Toggle</param>
|
||||
public static Task<bool> Messages_ToggleBotInAttachMenu(this Client client, InputUserBase bot, bool enabled)
|
||||
=> client.Invoke(new Messages_ToggleBotInAttachMenu
|
||||
{
|
||||
|
|
@ -3187,7 +3199,7 @@ namespace TL
|
|||
theme_params = theme_params,
|
||||
});
|
||||
|
||||
/// <summary><para>⚠ <b>This method is only for basic Chat</b>. See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/README.md#terminology">Terminology</see> to understand what this means<br/>Search for a similar method name starting with <c>Channels_</c> if you're dealing with a <see cref="Channel"/></para> <para>See <a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage"/></para></summary>
|
||||
/// <summary><para>⚠ <b>This method is only for basic Chat</b>. See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/README.md#terminology">Terminology</see> to understand what this means<br/>Search for a similar method name starting with <c>Channels_</c> if you're dealing with a <see cref="Channel"/></para> <para>See <a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage#possible-errors">details</a>)</para></summary>
|
||||
public static Task<WebViewMessageSent> Messages_SendWebViewResultMessage(this Client client, string bot_query_id, InputBotInlineResultBase result)
|
||||
=> client.Invoke(new Messages_SendWebViewResultMessage
|
||||
{
|
||||
|
|
@ -3205,7 +3217,9 @@ namespace TL
|
|||
data = data,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.transcribeAudio"/></para></summary>
|
||||
/// <summary>Transcribe voice message <para>See <a href="https://corefork.telegram.org/method/messages.transcribeAudio"/></para></summary>
|
||||
/// <param name="peer">Peer ID where the voice message was sent</param>
|
||||
/// <param name="msg_id">Voice message ID</param>
|
||||
public static Task<Messages_TranscribedAudio> Messages_TranscribeAudio(this Client client, InputPeer peer, int msg_id)
|
||||
=> client.Invoke(new Messages_TranscribeAudio
|
||||
{
|
||||
|
|
@ -3213,7 +3227,11 @@ namespace TL
|
|||
msg_id = msg_id,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.rateTranscribedAudio"/></para></summary>
|
||||
/// <summary>Rate transcribed voice message <para>See <a href="https://corefork.telegram.org/method/messages.rateTranscribedAudio"/></para></summary>
|
||||
/// <param name="peer">Peer where the voice message was sent</param>
|
||||
/// <param name="msg_id">Message ID</param>
|
||||
/// <param name="transcription_id">Transcription ID</param>
|
||||
/// <param name="good">Whether the transcription was correct</param>
|
||||
public static Task<bool> Messages_RateTranscribedAudio(this Client client, InputPeer peer, int msg_id, long transcription_id, bool good)
|
||||
=> client.Invoke(new Messages_RateTranscribedAudio
|
||||
{
|
||||
|
|
@ -3223,14 +3241,16 @@ namespace TL
|
|||
good = good,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getCustomEmojiDocuments"/></para></summary>
|
||||
/// <summary>Fetch info about custom emojis. <para>See <a href="https://corefork.telegram.org/method/messages.getCustomEmojiDocuments"/> [bots: ✓]</para></summary>
|
||||
/// <param name="document_id">Custom emoji IDs from a <see cref="MessageEntityCustomEmoji"/>.</param>
|
||||
public static Task<DocumentBase[]> Messages_GetCustomEmojiDocuments(this Client client, long[] document_id)
|
||||
=> client.Invoke(new Messages_GetCustomEmojiDocuments
|
||||
{
|
||||
document_id = document_id,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getEmojiStickers"/></para></summary>
|
||||
/// <summary>Gets the list of currently installed custom emoji stickersets. <para>See <a href="https://corefork.telegram.org/method/messages.getEmojiStickers"/></para></summary>
|
||||
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.allStickersNotModified">messages.allStickersNotModified</a></returns>
|
||||
public static Task<Messages_AllStickers> Messages_GetEmojiStickers(this Client client, long hash = default)
|
||||
=> client.Invoke(new Messages_GetEmojiStickers
|
||||
|
|
@ -3238,7 +3258,8 @@ namespace TL
|
|||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getFeaturedEmojiStickers"/></para></summary>
|
||||
/// <summary>Gets featured custom emoji stickersets. <para>See <a href="https://corefork.telegram.org/method/messages.getFeaturedEmojiStickers"/></para></summary>
|
||||
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
||||
public static Task<Messages_FeaturedStickersBase> Messages_GetFeaturedEmojiStickers(this Client client, long hash = default)
|
||||
=> client.Invoke(new Messages_GetFeaturedEmojiStickers
|
||||
{
|
||||
|
|
@ -3390,7 +3411,7 @@ namespace TL
|
|||
limit = limit,
|
||||
});
|
||||
|
||||
/// <summary>Request a reupload of a certain file to a <a href="https://corefork.telegram.org/cdn">CDN DC</a>. <para>See <a href="https://corefork.telegram.org/method/upload.reuploadCdnFile"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/upload.reuploadCdnFile#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Request a reupload of a certain file to a <a href="https://corefork.telegram.org/cdn">CDN DC</a>. <para>See <a href="https://corefork.telegram.org/method/upload.reuploadCdnFile"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,500 (<a href="https://corefork.telegram.org/method/upload.reuploadCdnFile#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="file_token">File token</param>
|
||||
/// <param name="request_token">Request token</param>
|
||||
public static Task<FileHash[]> Upload_ReuploadCdnFile(this Client client, byte[] file_token, byte[] request_token)
|
||||
|
|
@ -3594,7 +3615,7 @@ namespace TL
|
|||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/help.getPremiumPromo"/></para></summary>
|
||||
/// <summary>Get Telegram Premim promotion information <para>See <a href="https://corefork.telegram.org/method/help.getPremiumPromo"/></para></summary>
|
||||
public static Task<Help_PremiumPromo> Help_GetPremiumPromo(this Client client)
|
||||
=> client.Invoke(new Help_GetPremiumPromo
|
||||
{
|
||||
|
|
@ -3877,6 +3898,7 @@ namespace TL
|
|||
});
|
||||
|
||||
/// <summary>Delete the history of a <a href="https://corefork.telegram.org/api/channel">supergroup</a> <para>See <a href="https://corefork.telegram.org/method/channels.deleteHistory"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.deleteHistory#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="for_everyone">Whether the history should be deleted for everyone</param>
|
||||
/// <param name="channel"><a href="https://corefork.telegram.org/api/channel">Supergroup</a> whose history must be deleted</param>
|
||||
/// <param name="max_id">ID of message <strong>up to which</strong> the history must be deleted</param>
|
||||
public static Task<UpdatesBase> Channels_DeleteHistory(this Client client, InputChannelBase channel, int max_id = default, bool for_everyone = false)
|
||||
|
|
@ -3961,7 +3983,7 @@ namespace TL
|
|||
{
|
||||
});
|
||||
|
||||
/// <summary>Convert a <a href="https://corefork.telegram.org/api/channel">supergroup</a> to a <a href="https://corefork.telegram.org/api/channel">gigagroup</a>, when requested by <a href="https://corefork.telegram.org/api/config#channel-suggestions">channel suggestions</a>. <para>See <a href="https://corefork.telegram.org/method/channels.convertToGigagroup"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.convertToGigagroup#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Convert a <a href="https://corefork.telegram.org/api/channel">supergroup</a> to a <a href="https://corefork.telegram.org/api/channel">gigagroup</a>, when requested by <a href="https://corefork.telegram.org/api/config#channel-suggestions">channel suggestions</a>. <para>See <a href="https://corefork.telegram.org/method/channels.convertToGigagroup"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.convertToGigagroup#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel">The <a href="https://corefork.telegram.org/api/channel">supergroup</a> to convert</param>
|
||||
public static Task<UpdatesBase> Channels_ConvertToGigagroup(this Client client, InputChannelBase channel)
|
||||
=> client.Invoke(new Channels_ConvertToGigagroup
|
||||
|
|
@ -3987,7 +4009,7 @@ namespace TL
|
|||
channel = channel,
|
||||
});
|
||||
|
||||
/// <summary>Obtains a list of peers that can be used to send messages in a specific group <para>See <a href="https://corefork.telegram.org/method/channels.getSendAs"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.getSendAs#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Obtains a list of peers that can be used to send messages in a specific group <para>See <a href="https://corefork.telegram.org/method/channels.getSendAs"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.getSendAs#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">The group where we intend to send messages</param>
|
||||
public static Task<Channels_SendAsPeers> Channels_GetSendAs(this Client client, InputPeer peer)
|
||||
=> client.Invoke(new Channels_GetSendAs
|
||||
|
|
@ -3995,7 +4017,7 @@ namespace TL
|
|||
peer = peer,
|
||||
});
|
||||
|
||||
/// <summary>Delete all messages sent by a specific participant of a given supergroup <para>See <a href="https://corefork.telegram.org/method/channels.deleteParticipantHistory"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.deleteParticipantHistory#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Delete all messages sent by a specific participant of a given supergroup <para>See <a href="https://corefork.telegram.org/method/channels.deleteParticipantHistory"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.deleteParticipantHistory#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel">Supergroup</param>
|
||||
/// <param name="participant">The participant whose messages should be deleted</param>
|
||||
public static Task<Messages_AffectedHistory> Channels_DeleteParticipantHistory(this Client client, InputChannelBase channel, InputPeer participant)
|
||||
|
|
@ -4005,7 +4027,9 @@ namespace TL
|
|||
participant = participant,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.toggleJoinToSend"/></para></summary>
|
||||
/// <summary>Set whether all users <a href="https://corefork.telegram.org/api/discussion#requiring-users-to-join-the-group">should join a discussion group in order to comment on a post »</a> <para>See <a href="https://corefork.telegram.org/method/channels.toggleJoinToSend"/></para></summary>
|
||||
/// <param name="channel">Discussion group</param>
|
||||
/// <param name="enabled">Toggle</param>
|
||||
public static Task<UpdatesBase> Channels_ToggleJoinToSend(this Client client, InputChannelBase channel, bool enabled)
|
||||
=> client.Invoke(new Channels_ToggleJoinToSend
|
||||
{
|
||||
|
|
@ -4013,7 +4037,9 @@ namespace TL
|
|||
enabled = enabled,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.toggleJoinRequest"/></para></summary>
|
||||
/// <summary>Set whether all users should <a href="https://corefork.telegram.org/api/invites#join-requests">request admin approval to join the group »</a>. <para>See <a href="https://corefork.telegram.org/method/channels.toggleJoinRequest"/></para></summary>
|
||||
/// <param name="channel">Group</param>
|
||||
/// <param name="enabled">Toggle</param>
|
||||
public static Task<UpdatesBase> Channels_ToggleJoinRequest(this Client client, InputChannelBase channel, bool enabled)
|
||||
=> client.Invoke(new Channels_ToggleJoinRequest
|
||||
{
|
||||
|
|
@ -4063,7 +4089,7 @@ namespace TL
|
|||
lang_code = lang_code,
|
||||
});
|
||||
|
||||
/// <summary>Obtain a list of bot commands for the specified bot scope and language code <para>See <a href="https://corefork.telegram.org/method/bots.getBotCommands"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Obtain a list of bot commands for the specified bot scope and language code <para>See <a href="https://corefork.telegram.org/method/bots.getBotCommands"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.getBotCommands#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="scope">Command scope</param>
|
||||
/// <param name="lang_code">Language code</param>
|
||||
public static Task<BotCommand[]> Bots_GetBotCommands(this Client client, BotCommandScope scope, string lang_code)
|
||||
|
|
@ -4073,7 +4099,9 @@ namespace TL
|
|||
lang_code = lang_code,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/bots.setBotMenuButton"/></para></summary>
|
||||
/// <summary>Sets the menu button action for a given user or for all users <para>See <a href="https://corefork.telegram.org/method/bots.setBotMenuButton"/> [bots: ✓]</para></summary>
|
||||
/// <param name="user_id">User ID</param>
|
||||
/// <param name="button">Bot menu button action</param>
|
||||
public static Task<bool> Bots_SetBotMenuButton(this Client client, InputUserBase user_id, BotMenuButtonBase button)
|
||||
=> client.Invoke(new Bots_SetBotMenuButton
|
||||
{
|
||||
|
|
@ -4081,21 +4109,24 @@ namespace TL
|
|||
button = button,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/bots.getBotMenuButton"/></para></summary>
|
||||
/// <summary>Gets the menu button action for a given user or for all users, previously set using <a href="https://corefork.telegram.org/method/bots.setBotMenuButton">bots.setBotMenuButton</a>; users can see this information in the <see cref="BotInfo"/>. <para>See <a href="https://corefork.telegram.org/method/bots.getBotMenuButton"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.getBotMenuButton#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="user_id">User ID or empty for the default menu button.</param>
|
||||
public static Task<BotMenuButtonBase> Bots_GetBotMenuButton(this Client client, InputUserBase user_id)
|
||||
=> client.Invoke(new Bots_GetBotMenuButton
|
||||
{
|
||||
user_id = user_id,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/bots.setBotBroadcastDefaultAdminRights"/></para></summary>
|
||||
/// <summary>Set the default suggested admin rights for bots being added as admins to channels. <para>See <a href="https://corefork.telegram.org/method/bots.setBotBroadcastDefaultAdminRights"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: (<a href="https://corefork.telegram.org/method/bots.setBotBroadcastDefaultAdminRights#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="admin_rights">Admin rights</param>
|
||||
public static Task<bool> Bots_SetBotBroadcastDefaultAdminRights(this Client client, ChatAdminRights admin_rights)
|
||||
=> client.Invoke(new Bots_SetBotBroadcastDefaultAdminRights
|
||||
{
|
||||
admin_rights = admin_rights,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/bots.setBotGroupDefaultAdminRights"/></para></summary>
|
||||
/// <summary>Set the default suggested admin rights for bots being added as admins to groups. <para>See <a href="https://corefork.telegram.org/method/bots.setBotGroupDefaultAdminRights"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: (<a href="https://corefork.telegram.org/method/bots.setBotGroupDefaultAdminRights#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="admin_rights">Admin rights</param>
|
||||
public static Task<bool> Bots_SetBotGroupDefaultAdminRights(this Client client, ChatAdminRights admin_rights)
|
||||
=> client.Invoke(new Bots_SetBotGroupDefaultAdminRights
|
||||
{
|
||||
|
|
@ -4103,6 +4134,7 @@ namespace TL
|
|||
});
|
||||
|
||||
/// <summary>Get a payment form <para>See <a href="https://corefork.telegram.org/method/payments.getPaymentForm"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/payments.getPaymentForm#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="invoice">Invoice</param>
|
||||
/// <param name="theme_params">A JSON object with the following keys, containing color theme information (integers, RGB24) to pass to the payment provider, to apply in eventual verification pages: <br/><c>bg_color</c> - Background color <br/><c>text_color</c> - Text color <br/><c>hint_color</c> - Hint text color <br/><c>link_color</c> - Link color <br/><c>button_color</c> - Button color <br/><c>button_text_color</c> - Button text color</param>
|
||||
public static Task<Payments_PaymentForm> Payments_GetPaymentForm(this Client client, InputInvoice invoice, DataJSON theme_params = null)
|
||||
=> client.Invoke(new Payments_GetPaymentForm
|
||||
|
|
@ -4124,6 +4156,7 @@ namespace TL
|
|||
|
||||
/// <summary>Submit requested order information for validation <para>See <a href="https://corefork.telegram.org/method/payments.validateRequestedInfo"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/payments.validateRequestedInfo#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="save">Save order information to re-use it for future orders</param>
|
||||
/// <param name="invoice">Invoice</param>
|
||||
/// <param name="info">Requested order information</param>
|
||||
public static Task<Payments_ValidatedRequestedInfo> Payments_ValidateRequestedInfo(this Client client, InputInvoice invoice, PaymentRequestedInfo info, bool save = false)
|
||||
=> client.Invoke(new Payments_ValidateRequestedInfo
|
||||
|
|
@ -4135,6 +4168,7 @@ namespace TL
|
|||
|
||||
/// <summary>Send compiled payment form <para>See <a href="https://corefork.telegram.org/method/payments.sendPaymentForm"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/payments.sendPaymentForm#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="form_id">Form ID</param>
|
||||
/// <param name="invoice">Invoice</param>
|
||||
/// <param name="requested_info_id">ID of saved and validated <see cref="Payments_ValidatedRequestedInfo"/></param>
|
||||
/// <param name="shipping_option_id">Chosen shipping option ID</param>
|
||||
/// <param name="credentials">Payment credentials</param>
|
||||
|
|
@ -4174,7 +4208,8 @@ namespace TL
|
|||
number = number,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.exportInvoice"/></para></summary>
|
||||
/// <summary>Export invoice <para>See <a href="https://corefork.telegram.org/method/payments.exportInvoice"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/payments.exportInvoice#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="invoice_media">Invoice</param>
|
||||
public static Task<Payments_ExportedInvoice> Payments_ExportInvoice(this Client client, InputMedia invoice_media)
|
||||
=> client.Invoke(new Payments_ExportInvoice
|
||||
{
|
||||
|
|
@ -4350,7 +4385,7 @@ namespace TL
|
|||
peer = peer,
|
||||
});
|
||||
|
||||
/// <summary>Refuse or end running call <para>See <a href="https://corefork.telegram.org/method/phone.discardCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/phone.discardCall#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Refuse or end running call <para>See <a href="https://corefork.telegram.org/method/phone.discardCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400,500 (<a href="https://corefork.telegram.org/method/phone.discardCall#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="video">Whether this is a video call</param>
|
||||
/// <param name="peer">The phone call</param>
|
||||
/// <param name="duration">Call duration</param>
|
||||
|
|
@ -4416,7 +4451,7 @@ namespace TL
|
|||
schedule_date = schedule_date.GetValueOrDefault(),
|
||||
});
|
||||
|
||||
/// <summary>Join a group call <para>See <a href="https://corefork.telegram.org/method/phone.joinGroupCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/phone.joinGroupCall#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Join a group call <para>See <a href="https://corefork.telegram.org/method/phone.joinGroupCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/phone.joinGroupCall#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="muted">If set, the user will be muted by default upon joining.</param>
|
||||
/// <param name="video_stopped">If set, the user's video will be disabled by default upon joining.</param>
|
||||
/// <param name="call">The group call</param>
|
||||
|
|
@ -4453,7 +4488,7 @@ namespace TL
|
|||
users = users,
|
||||
});
|
||||
|
||||
/// <summary>Terminate a group call <para>See <a href="https://corefork.telegram.org/method/phone.discardGroupCall"/></para></summary>
|
||||
/// <summary>Terminate a group call <para>See <a href="https://corefork.telegram.org/method/phone.discardGroupCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/phone.discardGroupCall#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="call">The group call to terminate</param>
|
||||
public static Task<UpdatesBase> Phone_DiscardGroupCall(this Client client, InputGroupCall call)
|
||||
=> client.Invoke(new Phone_DiscardGroupCall
|
||||
|
|
@ -4499,7 +4534,7 @@ namespace TL
|
|||
limit = limit,
|
||||
});
|
||||
|
||||
/// <summary>Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs <para>See <a href="https://corefork.telegram.org/method/phone.checkGroupCall"/></para></summary>
|
||||
/// <summary>Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs <para>See <a href="https://corefork.telegram.org/method/phone.checkGroupCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/phone.checkGroupCall#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="call">Group call</param>
|
||||
/// <param name="sources">Source IDs</param>
|
||||
public static Task<int[]> Phone_CheckGroupCall(this Client client, InputGroupCall call, int[] sources)
|
||||
|
|
@ -4509,7 +4544,7 @@ namespace TL
|
|||
sources = sources,
|
||||
});
|
||||
|
||||
/// <summary>Start or stop recording a group call: the recorded audio and video streams will be automatically sent to <c>Saved messages</c> (the chat with ourselves). <para>See <a href="https://corefork.telegram.org/method/phone.toggleGroupCallRecord"/></para></summary>
|
||||
/// <summary>Start or stop recording a group call: the recorded audio and video streams will be automatically sent to <c>Saved messages</c> (the chat with ourselves). <para>See <a href="https://corefork.telegram.org/method/phone.toggleGroupCallRecord"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/phone.toggleGroupCallRecord#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="start">Whether to start or stop recording</param>
|
||||
/// <param name="video">Whether to also record video streams</param>
|
||||
/// <param name="call">The group call or livestream</param>
|
||||
|
|
@ -4524,7 +4559,7 @@ namespace TL
|
|||
video_portrait = video_portrait.GetValueOrDefault(),
|
||||
});
|
||||
|
||||
/// <summary>Edit information about a given group call participant <para>See <a href="https://corefork.telegram.org/method/phone.editGroupCallParticipant"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/phone.editGroupCallParticipant#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Edit information about a given group call participant <para>See <a href="https://corefork.telegram.org/method/phone.editGroupCallParticipant"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/phone.editGroupCallParticipant#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="call">The group call</param>
|
||||
/// <param name="participant">The group call participant (can also be the user itself)</param>
|
||||
/// <param name="muted">Whether to mute or unmute the specified participant</param>
|
||||
|
|
@ -4547,7 +4582,7 @@ namespace TL
|
|||
presentation_paused = presentation_paused.GetValueOrDefault(),
|
||||
});
|
||||
|
||||
/// <summary>Edit the title of a group call or livestream <para>See <a href="https://corefork.telegram.org/method/phone.editGroupCallTitle"/></para></summary>
|
||||
/// <summary>Edit the title of a group call or livestream <para>See <a href="https://corefork.telegram.org/method/phone.editGroupCallTitle"/></para> <para>Possible <see cref="RpcException"/> codes: 403 (<a href="https://corefork.telegram.org/method/phone.editGroupCallTitle#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="call">Group call</param>
|
||||
/// <param name="title">New title</param>
|
||||
public static Task<UpdatesBase> Phone_EditGroupCallTitle(this Client client, InputGroupCall call, string title)
|
||||
|
|
@ -4557,7 +4592,7 @@ namespace TL
|
|||
title = title,
|
||||
});
|
||||
|
||||
/// <summary>Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel. <para>See <a href="https://corefork.telegram.org/method/phone.getGroupCallJoinAs"/></para></summary>
|
||||
/// <summary>Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel. <para>See <a href="https://corefork.telegram.org/method/phone.getGroupCallJoinAs"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/phone.getGroupCallJoinAs#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">The dialog whose group call or livestream we're trying to join</param>
|
||||
public static Task<Phone_JoinAsPeers> Phone_GetGroupCallJoinAs(this Client client, InputPeer peer)
|
||||
=> client.Invoke(new Phone_GetGroupCallJoinAs
|
||||
|
|
@ -4575,7 +4610,7 @@ namespace TL
|
|||
call = call,
|
||||
});
|
||||
|
||||
/// <summary>Subscribe or unsubscribe to a scheduled group call <para>See <a href="https://corefork.telegram.org/method/phone.toggleGroupCallStartSubscription"/></para></summary>
|
||||
/// <summary>Subscribe or unsubscribe to a scheduled group call <para>See <a href="https://corefork.telegram.org/method/phone.toggleGroupCallStartSubscription"/></para> <para>Possible <see cref="RpcException"/> codes: 403 (<a href="https://corefork.telegram.org/method/phone.toggleGroupCallStartSubscription#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="call">Scheduled group call</param>
|
||||
/// <param name="subscribed">Enable or disable subscription</param>
|
||||
public static Task<UpdatesBase> Phone_ToggleGroupCallStartSubscription(this Client client, InputGroupCall call, bool subscribed)
|
||||
|
|
@ -4593,7 +4628,7 @@ namespace TL
|
|||
call = call,
|
||||
});
|
||||
|
||||
/// <summary>Set the default peer that will be used to join a group call in a specific dialog. <para>See <a href="https://corefork.telegram.org/method/phone.saveDefaultGroupCallJoinAs"/></para></summary>
|
||||
/// <summary>Set the default peer that will be used to join a group call in a specific dialog. <para>See <a href="https://corefork.telegram.org/method/phone.saveDefaultGroupCallJoinAs"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/phone.saveDefaultGroupCallJoinAs#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">The dialog</param>
|
||||
/// <param name="join_as">The default peer that will be used to join group calls in this dialog, presenting yourself as a specific user/channel.</param>
|
||||
public static Task<bool> Phone_SaveDefaultGroupCallJoinAs(this Client client, InputPeer peer, InputPeer join_as)
|
||||
|
|
@ -4629,7 +4664,7 @@ namespace TL
|
|||
call = call,
|
||||
});
|
||||
|
||||
/// <summary>Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with <a href="https://corefork.telegram.org/method/phone.createGroupCall">phone.createGroupCall</a> (the <c>rtmp_stream</c> flag must be set). <para>See <a href="https://corefork.telegram.org/method/phone.getGroupCallStreamRtmpUrl"/></para></summary>
|
||||
/// <summary>Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with <a href="https://corefork.telegram.org/method/phone.createGroupCall">phone.createGroupCall</a> (the <c>rtmp_stream</c> flag must be set). <para>See <a href="https://corefork.telegram.org/method/phone.getGroupCallStreamRtmpUrl"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/phone.getGroupCallStreamRtmpUrl#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Peer to livestream into</param>
|
||||
/// <param name="revoke">Whether to revoke the previous stream key or simply return the existing one</param>
|
||||
public static Task<Phone_GroupCallStreamRtmpUrl> Phone_GetGroupCallStreamRtmpUrl(this Client client, InputPeer peer, bool revoke)
|
||||
|
|
@ -4639,7 +4674,9 @@ namespace TL
|
|||
revoke = revoke,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/phone.saveCallLog"/></para></summary>
|
||||
/// <summary>Save phone call debug information <para>See <a href="https://corefork.telegram.org/method/phone.saveCallLog"/></para></summary>
|
||||
/// <param name="peer">Phone call</param>
|
||||
/// <param name="file">Logs</param>
|
||||
public static Task<bool> Phone_SaveCallLog(this Client client, InputPhoneCall peer, InputFileBase file)
|
||||
=> client.Invoke(new Phone_SaveCallLog
|
||||
{
|
||||
|
|
@ -4689,7 +4726,7 @@ namespace TL
|
|||
lang_pack = lang_pack,
|
||||
});
|
||||
|
||||
/// <summary>Get information about a language in a localization pack <para>See <a href="https://corefork.telegram.org/method/langpack.getLanguage"/></para></summary>
|
||||
/// <summary>Get information about a language in a localization pack <para>See <a href="https://corefork.telegram.org/method/langpack.getLanguage"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/langpack.getLanguage#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="lang_pack">Language pack name</param>
|
||||
/// <param name="lang_code">Language code</param>
|
||||
public static Task<LangPackLanguage> Langpack_GetLanguage(this Client client, string lang_pack, string lang_code)
|
||||
|
|
|
|||
Loading…
Reference in a new issue