Commit 75fd958c authored by Dio Maulana's avatar Dio Maulana

send ke tele untuk report

parent 3032debf
...@@ -51,9 +51,11 @@ Future<dynamic> httpPost( ...@@ -51,9 +51,11 @@ Future<dynamic> httpPost(
} }
Future<dynamic> sendTele(String teks, String namaFungsi) async { Future<dynamic> sendTele(String teks, String namaFungsi) async {
String tokenBot = '5582109697:AAH3L_5fl8tZ6qRhNeTR8lHdXbO4hrt2WzE';
String groupID = '-670190632';
await http.get( await http.get(
Uri.parse( Uri.parse(
'https://api.telegram.org/bot5582109697:AAH3L_5fl8tZ6qRhNeTR8lHdXbO4hrt2WzE/sendMessage?chat_id=-670190632&text=$teks'), 'https://api.telegram.org/bot$tokenBot/sendMessage?chat_id=$groupID&text=$teks'),
); );
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment