diff --git a/README.md b/README.md
index ce4f127..a96d7a3 100644
--- a/README.md
+++ b/README.md
@@ -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)
diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs
index ca1da89..14444f9 100644
--- a/src/TL.Schema.cs
+++ b/src/TL.Schema.cs
@@ -8965,6 +8965,30 @@ namespace TL
has_receipt = 0x2,
}
}
+ /// See
+ [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,
+ }
+ }
+ /// See
+ [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,
+ }
+ }
/// Callback answer sent by the bot in response to a button press See
[TLDef(0x36585EA4)]
@@ -12371,17 +12395,17 @@ namespace TL
}
/// A possible answer of a poll See
- [TLDef(0x6CA9C2E9)]
+ [TLDef(0xFF16E2CA)]
public sealed partial class PollAnswer : IObject
{
/// Textual representation of the answer
- public string text;
+ public TextWithEntities text;
/// The param that has to be passed to Messages_SendVote.
public byte[] option;
}
/// Poll See
- [TLDef(0x86E18161)]
+ [TLDef(0x58747131)]
public sealed partial class Poll : IObject
{
/// ID of the poll
@@ -12389,7 +12413,7 @@ namespace TL
/// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
/// The question of the poll
- public string question;
+ public TextWithEntities question;
/// The possible answers, vote using Messages_SendVote.
public PollAnswer[] answers;
/// Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date.
diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs
index ede2879..72fcf64 100644
--- a/src/TL.SchemaFuncs.cs
+++ b/src/TL.SchemaFuncs.cs
@@ -333,6 +333,15 @@ namespace TL
phone_code_hash = phone_code_hash,
});
+ /// See
+ public static Task 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,
+ });
+
/// Register device to receive PUSH notifications See Possible codes: 400 (details)
/// Avoid receiving (silent and invisible background) notifications. Useful to save battery.
/// Device token type, see PUSH updates for the possible values.
@@ -6952,6 +6961,14 @@ namespace TL.Methods
public string phone_code_hash;
}
+ [TLDef(0xCB9DEFF6)]
+ public sealed partial class Auth_ReportMissingCode : IMethod
+ {
+ public string phone_number;
+ public string phone_code_hash;
+ public string mnc;
+ }
+
[TLDef(0xEC86017A)]
public sealed partial class Account_RegisterDevice : IMethod
{
diff --git a/src/TL.Table.cs b/src/TL.Table.cs
index 9fd09ad..01842c9 100644
--- a/src/TL.Table.cs
+++ b/src/TL.Table.cs
@@ -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),
diff --git a/src/WTelegramClient.csproj b/src/WTelegramClient.csproj
index ba86e32..d3f7664 100644
--- a/src/WTelegramClient.csproj
+++ b/src/WTelegramClient.csproj
@@ -13,7 +13,7 @@
WTelegramClient
0.0.0
Wizou
- 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"))
+ 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"))
Copyright © Olivier Marcoux 2021-2024
MIT
https://github.com/wiz0u/WTelegramClient