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=-1.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,NO_DNS_FOR_FROM autolearn=ham autolearn_force=no version=3.4.6 Received: from [192.168.1.2] (unknown [101.128.126.135]) by gnuweeb.org (Postfix) with ESMTPSA id 9A53D7E24D; Sun, 8 Jan 2023 07:46:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1673163964; bh=HYeszc0dJXTejesdOvTX4u/LzvwBxw7WdUwahed760o=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=iIe+GCMtB5KlWdODglvBrYOEVX+sG9Zym3/ZPBQp3RYT9G93cAL9iaVQkON5XTzCP ZL2nW2JGs/oSezvH9q0JfAIWyIkrLg225NTbQgDgGfMhydq2AoMC5cA8AiYd4xdO7c /YwJSdmjGd0A+UwE/WlU5on2Rf22mIvvp/ISh+Y03rRxo02Gt6bbIwsOjGcIj7wH5N 0+TqbsxPPv5RVaCTLoxF0GPmWdDidy2ffJrHS+oK8ofx+fSnUByQntu6PtHKLg7xCd UATER3lXFDsFhxzB4YWz1wXM5mV4e8Kj1qrMVlp7erJXiAkS0AQ3dgMel+9Lgjnslz +NR5h/m47QTLA== Message-ID: <347b8fe9-10aa-c5f6-0cb5-ead988f226c7@gnuweeb.org> Date: Sun, 8 Jan 2023 14:46:00 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v2 02/11] telegram: Perform graceful exit when interrupted by a signal Content-Language: en-US To: Alviro Iskandar Setiawan Cc: Ammar Faizi , GNU/Weeb Mailing List References: <20230108061543.1780-1-kiizuha@gnuweeb.org> <20230108061543.1780-3-kiizuha@gnuweeb.org> From: Muhammad Rizki In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: On 08/01/2023 13.58, Alviro Iskandar Setiawan wrote: > 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 OK