This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$servername = "ваш_хост"; | |
$username = "ваше_имя_пользователя"; | |
$password = "ваш_пароль"; | |
$dbname = "ваша_база_данных"; | |
// Создаем подключение | |
$conn = new mysqli($servername, $username, $password, $dbname); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from telegram import Update | |
from telegram.ext import Updater, CommandHandler, CallbackContext, MessageHandler, Filters | |
from vtapi import VirusTotalAPI | |
import logging | |
import locale | |
from pathlib import Path | |
from gettext import translation, NullTranslations | |
# Замените 'YOUR_VT_API_KEY' на ваш ключ API от VirusTotal | |
VT_API_KEY = 'YOUR_VT_API_KEY' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aiogram import Bot, types | |
from aiogram.dispatcher import Dispatcher | |
from aiogram.utils import executor | |
from aiogram.types import ReplyKeyboardRemove, ReplyKeyboardMarkup, KeyboardButton, InlineKeyboardMarkup, InlineKeyboardButton | |
import requests | |
import random | |
import logging | |
# Импорт конфигурации из файла config.py | |
import config |