Monitoring Bot Telegram Voucher Aktif dan Expired Pada MikroTik

Monitoring Bot Telegram Voucher Aktif dan Expired Pada MikroTik

Monitoring Bot Telegram Voucher Aktif dan Expired Pada MikroTik

				
					on login =>

:local dvc [/ip dhcp-server lease get [find mac-address="$mac"] host-name]; 
:local Mpkt [/ip hotspot user get [find name="$user"] profile];
:local exp [/ip hotspot user get [find name="$user"] comment];
/tool fetch url="https://api.telegram.org/botxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/sendMessage?chat_id=xxxxxxxxxx&text==== AKTIVASI BERHASIL ===%0A- Kode Voucher : $user%0A- IP Address : $address%0A- Mac Address : $mac%0A- Device : $dvc%0A- Paket : $Mpkt%0A- Status Aktif : $date $time%0A- Expired : $exp" keep-result=no;

schedular =>

:local bot "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
:local chat "xxxxxxxxxx"
/tool fetch url="https://api.telegram.org/bot$bot/sendmessage\?chat_id=$chat&text=Voucher $name Expire" keep-result=no;
				
			

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

You might also like