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

///<summary>
/// Pause or unpause a specific chat, temporarily disconnecting it from all <a href="https://corefork.telegram.org/api/business#connected-bots">business bots »</a>.
/// <para>Possible errors</para>
/// Code Type Description
/// 400 PEER_ID_INVALID The provided peer id is invalid.
/// See <a href="https://corefork.telegram.org/method/account.toggleConnectedBotPaused" />
///</summary>
internal sealed class ToggleConnectedBotPausedHandler : RpcResultObjectHandler<MyTelegram.Schema.Account.RequestToggleConnectedBotPaused, IBool>,
    Account.IToggleConnectedBotPausedHandler
{
    protected override Task<IBool> HandleCoreAsync(IRequestInput input,
        MyTelegram.Schema.Account.RequestToggleConnectedBotPaused obj)
    {
        return Task.FromResult<IBool>(new TBoolTrue());
    }
}
