📥
0
Toplam Tespit
📅
0
Bugün
⚡
0
Son 1 Saat
📢
0
Aktif Kanal
🏆 En Aktif Kanallar
🔑 En Çok Geçen Kelimeler
🕐 Son Tespitler
Henüz tespit yok
📋 Tüm Loglar
Tümü
Bugün
Son Saat
Bu Hafta
📢 İzlenen Kanallar
0 kanal🔑 Takip Edilen Kelimeler
0 kelime⚙️ Telegram API Ayarları
my.telegram.org → API development tools
@BotFather → /newbot
@userinfobot'a /start yaz → ID'ni gönderir
📖 Ubuntu 24.04 Kurulum Rehberi
1
SSH ile VPS'e bağlan
PuTTY veya terminal ile bağlan:
ssh root@VPS_IP_ADRESIN
2
Sistemi güncelle ve gerekli paketleri kur
apt update && apt upgrade -y
apt install -y python3 python3-pip python3-venv nginx certbot python3-certbot-nginx
3
Proje klasörünü oluştur ve dosyaları yükle
Önce klasörü oluştur:
mkdir -p /opt/bonusbot/templates
Sonra kendi bilgisayarından dosyaları gönder (WinSCP veya terminal):
scp app.py root@VPS_IP:/opt/bonusbot/
scp monitor.py root@VPS_IP:/opt/bonusbot/
scp templates/index.html root@VPS_IP:/opt/bonusbot/templates/
4
Python sanal ortam kur ve kütüphaneleri yükle
cd /opt/bonusbot
python3 -m venv venv
source venv/bin/activate
pip install flask telethon
5
Systemd servis dosyası oluştur (otomatik başlatma)
cat > /etc/systemd/system/bonusbot.service << 'EOF'
[Unit]
Description=Telegram Bonus Bot Panel
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/bonusbot
ExecStart=/opt/bonusbot/venv/bin/python app.py
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable bonusbot
systemctl start bonusbot
6
Cloudflare'de DNS A kaydı ekle
Cloudflare → DNS → Records → Add Record:
• Type: A
• Name: bot
• IPv4: VPS IP adresin
• Proxy: DNS only (gri bulut) ← önemli! SSL çalışsın diye
• TTL: Auto
• Type: A
• Name: bot
• IPv4: VPS IP adresin
• Proxy: DNS only (gri bulut) ← önemli! SSL çalışsın diye
• TTL: Auto
7
Nginx ayarla — bot.domain.com'u kendi subdomain'inle değiştir!
cat > /etc/nginx/sites-available/bonusbot << 'EOF'
server {
listen 80;
server_name bot.domain.com;
location / {
proxy_pass http://127.0.0.1:5000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_http_version 1.1;
proxy_read_timeout 60;
}
}
EOF
ln -s /etc/nginx/sites-available/bonusbot /etc/nginx/sites-enabled/
nginx -t
systemctl reload nginx
8
SSL sertifikası al (ücretsiz, Let's Encrypt)
bot.domain.com yerine kendi subdomain'ini yaz:
certbot --nginx -d bot.domain.com
Soruları: email gir → Y → N → 2 (HTTPS yönlendirme)
9
Firewall ayarla
ufw allow OpenSSH
ufw allow 'Nginx Full'
ufw --force enable
10
Telegram oturumu aç (bir kerelik)
Panelden Başlat'a basmadan önce, SSH'ta şunu çalıştır — telefon ve SMS kodu sorar, bir kere girmek yeterli:
cd /opt/bonusbot
source venv/bin/activate
python monitor.py
Kodu girdikten sonra Ctrl+C ile çık. Artık panelden başlatabilirsin.
✓
Kurulum tamamlandı!
Tarayıcıdan https://bot.domain.com adresine gir → Ayarlar sayfasından API bilgilerini gir → Kanalları ekle → Başlat!
Yararlı komutlar:
systemctl status bonusbot — durum görjournalctl -u bonusbot -f — canlı log izlesystemctl restart bonusbot — yeniden başlat