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 localhost.localdomain (unknown [101.128.125.209]) by gnuweeb.org (Postfix) with ESMTPSA id 054508191C; Mon, 19 Dec 2022 23:58:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1671494286; bh=STXCwWjqrBNuRIdRMjQCxxAZk1RYiiBQhoFEIGyrSHU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ok6SFBH3CXKTZ1ivFfQ5HiUgd0RZGmRrC3q0Q68Y1RK6Wz1JxJsaGky2FajbjNE9A LTwl52SpsC3+cWqhfnN3CzYmshqC8uAakdA8WxM5sLtJAaT5kwXsjdIpMdlmkzLIKm SzsdoI7Dep6EFjYhSVmifGitkrfOKtDJjVxTA2D/QCJVu3Gal7Y+DEIItEyoELb4P2 eineBxB6ah18WeL0x8ensPY5gEDtf4uFSUC2r0UmL4AzeSBpsHcoiC21X4IfMNiqxQ 361QCQB+xPl0jv/wCtFaDCIU8SE2CCUyPTYHtFqPEUbD9qk0Eq9xfScREUmpaLOehv Tdoxz0Pel6tHQ== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v3 10/17] telegram: Add variable LOG_CHANNEL_ID declaration Date: Tue, 20 Dec 2022 06:57:14 +0700 Message-Id: <20221219235721.126-11-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20221219235721.126-1-kiizuha@gnuweeb.org> References: <20221219235721.126-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Declare a variable LOG_CHANNEL_ID in the config.py.example for the send_log_file() in the next commit. Signed-off-by: Muhammad Rizki --- daemon/telegram/config.py.example | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/telegram/config.py.example b/daemon/telegram/config.py.example index 3818d27..221e0c1 100644 --- a/daemon/telegram/config.py.example +++ b/daemon/telegram/config.py.example @@ -4,6 +4,10 @@ from pyrogram.types import Message # Insert Telegram admin id in the list below ADMINS = [] +# Insert Telegram channel ID to send the log file +# type (int) +LOG_CHANNEL_ID = + async def adm_flt(_, __, m: Message): return m.from_user.id in ADMINS -- Muhammad Rizki