namespace MyTelegram.Messenger.Handlers.LatestLayer.Impl.Messages;

///<summary>
/// Get stickers by emoji
/// <para>Possible errors</para>
/// Code Type Description
/// 400 EMOTICON_EMPTY The emoji is empty.
/// See <a href="https://corefork.telegram.org/method/messages.getStickers" />
///</summary>
internal sealed class GetStickersHandler : RpcResultObjectHandler<MyTelegram.Schema.Messages.RequestGetStickers, MyTelegram.Schema.Messages.IStickers>,
    Messages.IGetStickersHandler
{
    protected override Task<IStickers> HandleCoreAsync(IRequestInput input,
        RequestGetStickers obj)
    {
        var r = new TStickers { Hash = obj.Hash, Stickers = [] };

        return Task.FromResult<IStickers>(r);
    }
}
