Narcotics Helpline Bot - Setup

Step 1: Set Webhook

✅ Webhook set successfully!

Webhook URL: https://antf.halohoster.in/bot.php

Step 2: Verify Webhook

✅ Webhook information retrieved

{
    "url": "https:\/\/antf.halohoster.in\/bot.php",
    "has_custom_certificate": false,
    "pending_update_count": 0,
    "max_connections": 40,
    "ip_address": "37.27.228.109",
    "allowed_updates": [
        "message",
        "callback_query"
    ]
}

Step 3: Bot Information

✅ Bot is active

Bot Username: @antf_helpline_bot

Bot Name: Anti Narcotics Helpline Bot

{
    "id": 8342763940,
    "is_bot": true,
    "first_name": "Anti Narcotics Helpline Bot",
    "username": "antf_helpline_bot",
    "can_join_groups": true,
    "can_read_all_group_messages": false,
    "supports_inline_queries": false,
    "can_connect_to_business": false,
    "has_main_web_app": false,
    "has_topics_enabled": false,
    "allows_users_to_create_topics": false,
    "can_manage_bots": false
}

Step 4: Database Connection

✅ Database connected successfully

Table Check:

✅ Table 'user_states' exists

✅ Table 'reports' exists

✅ Table 'bot_logs' exists

✅ Table 'report_updates' exists

✅ Table 'user_feedback' exists


📋 Setup Instructions

  1. Update config.php: Make sure your BOT_TOKEN and database credentials are correct
  2. Import database: Run mysql -u username -p database_name < database_schema.sql
  3. Update webhook URL: Change the webhook URL in this file to your actual domain
  4. Set file permissions: Make sure bot.php is readable by web server (chmod 644)
  5. Test the bot: Open Telegram and send /start to your bot
  6. Delete this file: For security, delete setup.php after successful setup

🔧 Troubleshooting


🚨 Security Notes


✅ Setup Complete! If all checks passed, your bot is ready to use.

Delete this setup.php file for security: rm setup.php