mirror of
https://github.com/house-of-vanity/Wireguard-Peer-Manager.git
synced 2025-07-06 17:24:07 +00:00
add conf file to /list command
This commit is contained in:
1
bot.py
1
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.")
|
||||
|
||||
|
Reference in New Issue
Block a user