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

namespace MyTelegram.Schema.Messages;

///<summary>
/// Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new <a href="https://corefork.telegram.org/api/custom-emoji#emoji-keywords">emoji keywords »</a>. The URL will be valid for 30 seconds after generation.
/// See <a href="https://corefork.telegram.org/method/messages.getEmojiURL" />
///</summary>
[TlObject(0xd5b10c26)]
public sealed class RequestGetEmojiURL : IRequest<MyTelegram.Schema.IEmojiURL>
{
    public uint ConstructorId => 0xd5b10c26;
    ///<summary>
    /// Language code for which the emoji keywords will be suggested
    ///</summary>
    public string LangCode { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        LangCode = buffer.ReadString();
    }
}
