Giter Site home page Giter Site logo

spammer-scam's Introduction

Hehehehe

// Isi variabel-token dan chatId sesuai dengan data Anda
var token = '';
var chatId = '';
var photoUrl = 'https://awsimages.detik.net.id/community/media/visual/2017/12/06/6414c1ae-fcd1-49a6-8316-4a71c29f93ff_43.jpg';

// Membangun URL untuk mengirim gambar ke Telegram
var apiUrl = `https://api.telegram.org/bot${token}/sendPhoto?chat_id=${chatId}&photo=${photoUrl}`;
var delay = 5000;
// Fungsi untuk mengirim gambar ke Telegram
function kirimGambar() {
  // Menggunakan fetch untuk mengirim permintaan HTTP POST ke API Telegram
  fetch(apiUrl, { method: 'POST' })
    .then(response => response.json())
    .then(data => {
      console.log('Pesan berhasil dikirim:', data);
      // Mengatur interval waktu antara pengiriman gambar (dalam milidetik)
       // Contoh: mengirim setiap 5 detik
      setTimeout(kirimGambar, delay);
    })
    .catch(error => {
      console.error('Terjadi kesalahan:', error);
      // Jika terjadi kesalahan, juga mengatur interval waktu antara pengiriman gambar
    // Contoh: mengirim setiap 5 detik
      setTimeout(kirimGambar, delay);
    });
}

// Memulai pengiriman gambar
kirimGambar();
https://api.telegram.org/bot6908618393:AAGrDibAJqZoxkmsrtZqtcYZhBjnWLH8ZWU/sendMessage?parse_mode=markdown&chat_id=6868325003&text=

spammer-scam's People

Contributors

sneazy25 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.