From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM autolearn=no autolearn_force=no version=3.4.6 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by gnuweeb.org (Postfix) with ESMTPSA id 5A66B7E375 for ; Sun, 8 Jan 2023 06:58:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1673161095; bh=dmsQA1tAVovg8DBgQTaqzjQvkH/Ls9clNn8KxOSGOSo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=q+zas64Dj5oe5IhQi8TV1pRRoRfnP/tS7v3DLz+Jpvgj131rGodqEOtkHqy/0O/RD NZZAhjiGQe3CJKngEe6GWTl82ZwLHspapfQjQv+Oe+d5HGXGviTReS9Dtzj3ZtWqCS 4Ec4EtNyQgQH3hOGNbk1Zkdq0sT0o3AcTP/NYU2iOQLxgBaJdnrujOQ1e+Ubdp/I6N nNdELSN3XDaEzSmLPGJTEprhGWtF65+/9FnGXwJ0OViPzSnb7aDyFEHfq4zisZmSKg 7Za4g2PTxbVyirG8v2+MouydxDI8GpnyaoZkXLrKt/UK8NLKquXYYfvFOB6CWEJ90J Ecgtj4lXTKnPw== Received: by mail-lf1-f50.google.com with SMTP id d30so3363978lfv.8 for ; Sat, 07 Jan 2023 22:58:15 -0800 (PST) X-Gm-Message-State: AFqh2kqNdj31lRxuRsIWubujteepO7uJrLsMm5U9ejUppn3VYSlFA+Xy ce6olCJHqEV8xHW4zImMkZOkjrCqJylwUR+W2CE= X-Google-Smtp-Source: AMrXdXu/gcx2PVsPnF+7oWuiA1CCJ4LkMcPQYuovaP9GIqp9DPq5xsX94wRyHRHctgAZoH00NY/MENtk6XcENvZPYlE= X-Received: by 2002:ac2:4851:0:b0:4cc:5a57:ba99 with SMTP id 17-20020ac24851000000b004cc5a57ba99mr792463lfy.678.1673161093525; Sat, 07 Jan 2023 22:58:13 -0800 (PST) MIME-Version: 1.0 References: <20230108061543.1780-1-kiizuha@gnuweeb.org> <20230108061543.1780-3-kiizuha@gnuweeb.org> In-Reply-To: <20230108061543.1780-3-kiizuha@gnuweeb.org> From: Alviro Iskandar Setiawan Date: Sun, 8 Jan 2023 13:58:02 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 02/11] telegram: Perform graceful exit when interrupted by a signal To: Muhammad Rizki Cc: Ammar Faizi , "GNU/Weeb Mailing List" Content-Type: text/plain; charset="UTF-8" List-Id: On Sun, Jan 8, 2023 at 1:16 PM Muhammad Rizki wrote: > We need to start the Telegram bot before starting the listener. This > way, if an error occurs, especially while parsing the email message, the > listener will be able to send a report message to the channel, since the > Telegram bot will already be running. > > Also, move them to the run() function in the listener. > > Corrected-by: Alviro Iskandar Setiawan > Signed-off-by: Muhammad Rizki Acked-by: Alviro Iskandar Setiawan