Skip to content

Bot not responding #8

@nguywnben

Description

@nguywnben

Here are the steps I took:

sudo apt update && sudo apt upgrade -y
sudo apt install php php-mysql php-pdo mysql-server composer git curl apache2 -y
sudo a2enmod rewrite
sudo systemctl restart apache2
sudo snap install ngrok

git clone https://github.com/mat1520/telegram-bot-cc-checker-.git
cd telegram-bot-cc-checker-

chmod +x install_dependencies.sh
./install_dependencies.sh

index.php
require '/home/arturo/www/MultiHilos/CardProcessor.php'; -> require DIR . '/MultiHilos/CardProcessor.php';

Set up database and database users
Import database structure

cp database/config_example.php config.php
Add DB_HOST, DB_USERNAME, DB_PASSWORD, DB_NAME, botToken, Mi_Id

callback_bot.php
$solver = new \CapSolver\CapSolver('CAP-5361C0C774F336BECC410D69E869566E'); -> $solver = new \Capsolver\CapsolverClient(CAPSOLVER_API_KEY);

Setting up Apache and Webhooks with ngrok
sudo mv telegram-bot-cc-checker- /var/www/html/telegram-bot
cd /var/www/html/telegram-bot

curl -F "url=https://553419f43c76.ngrok-free.app/telegram-bot/index.php" https://api.telegram.org/botYOUR_TELEGRAM_BOT_TOKEN/setWebhook
{"ok":true,"result":true,"description":"Webhook was set"}

curl https://api.telegram.org/botYOUR_TELEGRAM_BOT_TOKEN/getWebhookInfo
{"ok":true,"result":{"url":"https://553419f43c76.ngrok-free.app/telegram-bot/index.php","has_custom_certificate":false,"pending_update_count":0,"max_connections":40,"ip_address":"xxx"}}

php index.php

When opening https://553419f43c76.ngrok-free.app/telegram-bot/index.php it shows "Texto que verá el usuario" but the bot does not respond and there are no errors in error_log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions