// <auto-generated/>
// ReSharper disable All

namespace MyTelegram.Schema;

///<summary>
/// Attached map.
/// See <a href="https://corefork.telegram.org/constructor/messageMediaGeo" />
///</summary>
[TlObject(0x56e0d474)]
public sealed class TMessageMediaGeo : IMessageMedia
{
    public uint ConstructorId => 0x56e0d474;
    ///<summary>
    /// GeoPoint
    /// See <a href="https://corefork.telegram.org/type/GeoPoint" />
    ///</summary>
    public MyTelegram.Schema.IGeoPoint Geo { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(Geo);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Geo = buffer.Read<MyTelegram.Schema.IGeoPoint>();
    }
}