From 9f301236d1b35f8401f8a7abdc120eb6b5b94692 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 25 Apr 2022 15:15:56 +0300 Subject: [PATCH] add conf file to /list command --- bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot.py b/bot.py index 6e861f7..66573a7 100755 --- a/bot.py +++ b/bot.py @@ -55,6 +55,7 @@ def list_peers(update, context): try: update.message.reply_photo( open(f'/etc/wireguard/clients_{config}/{peer_name}-qr.png', 'rb'), filename=f'{peer_name} QR.png', quote=True, caption=open(f'/etc/wireguard/clients_{config}/{peer_name}.conf', 'r').read()) + update.message.reply_document(open(f'/etc/wireguard/clients_{config}/{peer_name}.conf', 'rb')) except: update.message.reply_text("Wrong client name.")