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

namespace MyTelegram.Schema;

///<summary>
/// Map.
/// See <a href="https://corefork.telegram.org/constructor/inputMediaGeoPoint" />
///</summary>
[TlObject(0xf9c44144)]
public sealed class TInputMediaGeoPoint : IInputMedia
{
    public uint ConstructorId => 0xf9c44144;
    ///<summary>
    /// GeoPoint
    /// See <a href="https://corefork.telegram.org/type/InputGeoPoint" />
    ///</summary>
    public MyTelegram.Schema.IInputGeoPoint GeoPoint { get; set; }

    public void ComputeFlag()
    {

    }

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

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