mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-05 14:35:43 +00:00
Fix wrong type for MessageBase.ID
This commit is contained in:
parent
c5c8b49331
commit
480697d329
3 changed files with 6 additions and 6 deletions
|
|
@ -111,7 +111,7 @@ namespace WTelegram
|
|||
|
||||
private static string AskConfig(string config)
|
||||
{
|
||||
if (config == "api_id") Console.WriteLine("You can obtain your api_id/api_hash at https://my.telegram.org/apps");
|
||||
if (config == "api_id") Console.WriteLine("Welcome! You can obtain your api_id/api_hash at https://my.telegram.org/apps");
|
||||
Console.Write($"Enter {config.Replace('_', ' ')}: ");
|
||||
return Console.ReadLine();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,25 +87,25 @@ namespace TL
|
|||
|
||||
partial class MessageBase
|
||||
{
|
||||
public abstract long ID { get; }
|
||||
public abstract int ID { get; }
|
||||
public abstract Peer Peer { get; }
|
||||
public abstract DateTime Date { get; }
|
||||
}
|
||||
partial class MessageEmpty
|
||||
{
|
||||
public override long ID => id;
|
||||
public override int ID => id;
|
||||
public override Peer Peer => peer_id;
|
||||
public override DateTime Date => default;
|
||||
}
|
||||
public partial class Message
|
||||
{
|
||||
public override long ID => id;
|
||||
public override int ID => id;
|
||||
public override Peer Peer => peer_id;
|
||||
public override DateTime Date => date;
|
||||
}
|
||||
public partial class MessageService
|
||||
{
|
||||
public override long ID => id;
|
||||
public override int ID => id;
|
||||
public override Peer Peer => peer_id;
|
||||
public override DateTime Date => date;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue