mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
API Layer 179: poll texts with entities, new SentCodeTypes
This commit is contained in:
parent
3c19be32c7
commit
3a7c5a0957
|
|
@ -1,4 +1,4 @@
|
|||
[](https://corefork.telegram.org/methods)
|
||||
[](https://corefork.telegram.org/methods)
|
||||
[](https://www.nuget.org/packages/WTelegramClient/)
|
||||
[](https://www.nuget.org/packages/WTelegramClient/absoluteLatest)
|
||||
[](https://www.buymeacoffee.com/wizou)
|
||||
|
|
|
|||
|
|
@ -8965,6 +8965,30 @@ namespace TL
|
|||
has_receipt = 0x2,
|
||||
}
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/auth.sentCodeTypeSmsWord"/></para></summary>
|
||||
[TLDef(0xA416AC81)]
|
||||
public sealed partial class Auth_SentCodeTypeSmsWord : Auth_SentCodeType
|
||||
{
|
||||
public Flags flags;
|
||||
[IfFlag(0)] public string beginning;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_beginning = 0x1,
|
||||
}
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/auth.sentCodeTypeSmsPhrase"/></para></summary>
|
||||
[TLDef(0xB37794AF)]
|
||||
public sealed partial class Auth_SentCodeTypeSmsPhrase : Auth_SentCodeType
|
||||
{
|
||||
public Flags flags;
|
||||
[IfFlag(0)] public string beginning;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_beginning = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Callback answer sent by the bot in response to a button press <para>See <a href="https://corefork.telegram.org/constructor/messages.botCallbackAnswer"/></para></summary>
|
||||
[TLDef(0x36585EA4)]
|
||||
|
|
@ -12371,17 +12395,17 @@ namespace TL
|
|||
}
|
||||
|
||||
/// <summary>A possible answer of a poll <para>See <a href="https://corefork.telegram.org/constructor/pollAnswer"/></para></summary>
|
||||
[TLDef(0x6CA9C2E9)]
|
||||
[TLDef(0xFF16E2CA)]
|
||||
public sealed partial class PollAnswer : IObject
|
||||
{
|
||||
/// <summary>Textual representation of the answer</summary>
|
||||
public string text;
|
||||
public TextWithEntities text;
|
||||
/// <summary>The param that has to be passed to <see cref="SchemaExtensions.Messages_SendVote">Messages_SendVote</see>.</summary>
|
||||
public byte[] option;
|
||||
}
|
||||
|
||||
/// <summary>Poll <para>See <a href="https://corefork.telegram.org/constructor/poll"/></para></summary>
|
||||
[TLDef(0x86E18161)]
|
||||
[TLDef(0x58747131)]
|
||||
public sealed partial class Poll : IObject
|
||||
{
|
||||
/// <summary>ID of the poll</summary>
|
||||
|
|
@ -12389,7 +12413,7 @@ namespace TL
|
|||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
public Flags flags;
|
||||
/// <summary>The question of the poll</summary>
|
||||
public string question;
|
||||
public TextWithEntities question;
|
||||
/// <summary>The possible answers, vote using <see cref="SchemaExtensions.Messages_SendVote">Messages_SendVote</see>.</summary>
|
||||
public PollAnswer[] answers;
|
||||
/// <summary>Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date.</summary>
|
||||
|
|
|
|||
|
|
@ -333,6 +333,15 @@ namespace TL
|
|||
phone_code_hash = phone_code_hash,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/auth.reportMissingCode"/></para></summary>
|
||||
public static Task<bool> Auth_ReportMissingCode(this Client client, string phone_number, string phone_code_hash, string mnc)
|
||||
=> client.Invoke(new Auth_ReportMissingCode
|
||||
{
|
||||
phone_number = phone_number,
|
||||
phone_code_hash = phone_code_hash,
|
||||
mnc = mnc,
|
||||
});
|
||||
|
||||
/// <summary>Register device to receive <a href="https://corefork.telegram.org/api/push-updates">PUSH notifications</a> <para>See <a href="https://corefork.telegram.org/method/account.registerDevice"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.registerDevice#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="no_muted">Avoid receiving (silent and invisible background) notifications. Useful to save battery.</param>
|
||||
/// <param name="token_type">Device token type, see <a href="https://corefork.telegram.org/api/push-updates#subscribing-to-notifications">PUSH updates</a> for the possible values.</param>
|
||||
|
|
@ -6952,6 +6961,14 @@ namespace TL.Methods
|
|||
public string phone_code_hash;
|
||||
}
|
||||
|
||||
[TLDef(0xCB9DEFF6)]
|
||||
public sealed partial class Auth_ReportMissingCode : IMethod<bool>
|
||||
{
|
||||
public string phone_number;
|
||||
public string phone_code_hash;
|
||||
public string mnc;
|
||||
}
|
||||
|
||||
[TLDef(0xEC86017A)]
|
||||
public sealed partial class Account_RegisterDevice : IMethod<bool>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace TL
|
|||
{
|
||||
public static partial class Layer
|
||||
{
|
||||
public const int Version = 178; // fetched 24/04/2024 15:26:10
|
||||
public const int Version = 179; // fetched 27/04/2024 11:14:23
|
||||
internal const int SecretChats = 144;
|
||||
internal const int MTProto2 = 73;
|
||||
internal const uint VectorCtor = 0x1CB5C415;
|
||||
|
|
@ -650,6 +650,8 @@ namespace TL
|
|||
[0xA5491DEA] = typeof(Auth_SentCodeTypeSetUpEmailRequired),
|
||||
[0xD9565C39] = typeof(Auth_SentCodeTypeFragmentSms),
|
||||
[0xE57B1432] = typeof(Auth_SentCodeTypeFirebaseSms),
|
||||
[0xA416AC81] = typeof(Auth_SentCodeTypeSmsWord),
|
||||
[0xB37794AF] = typeof(Auth_SentCodeTypeSmsPhrase),
|
||||
[0x36585EA4] = typeof(Messages_BotCallbackAnswer),
|
||||
[0x26B5DDE6] = typeof(Messages_MessageEditData),
|
||||
[0x890C3D89] = typeof(InputBotInlineMessageID),
|
||||
|
|
@ -909,8 +911,8 @@ namespace TL
|
|||
[0x8C05F1C9] = typeof(Help_SupportName),
|
||||
[0xF3AE2EED] = null,//Help_UserInfoEmpty
|
||||
[0x01EB3758] = typeof(Help_UserInfo),
|
||||
[0x6CA9C2E9] = typeof(PollAnswer),
|
||||
[0x86E18161] = typeof(Poll),
|
||||
[0xFF16E2CA] = typeof(PollAnswer),
|
||||
[0x58747131] = typeof(Poll),
|
||||
[0x3B6DDAD2] = typeof(PollAnswerVoters),
|
||||
[0x7ADF2420] = typeof(PollResults),
|
||||
[0xF041E250] = typeof(ChatOnlines),
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<PackageId>WTelegramClient</PackageId>
|
||||
<Version>0.0.0</Version>
|
||||
<Authors>Wizou</Authors>
|
||||
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 178 Release Notes: $(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
|
||||
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 179 Release Notes: $(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
|
||||
<Copyright>Copyright © Olivier Marcoux 2021-2024</Copyright>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<PackageProjectUrl>https://github.com/wiz0u/WTelegramClient</PackageProjectUrl>
|
||||
|
|
|
|||
Loading…
Reference in a new issue