proxies = {
'http': 'socks5h://127.0.0.1:9050',
'https': 'socks5h://127.0.0.1:9050'
}Using the scheme socks5 causes the DNS resolution to happen on the client, rather than on the proxy server. This is in line with curl, which uses the scheme to decide whether to do the DNS resolution on the client or proxy. If you want to resolve the domains on the proxy server, use socks5h as the scheme.
on_reaction_addif user.bot or reaction.message.id != 1089229079133290526: написано полностью неправильно.user.bot вернет True, если юзер - бот (что из названия даже логично), а не наоборотand, но не orglobal users
return не имеет смыслаusers никогда не обнуляетсяdriver.find_element(By.CSS_SELECTOR, 'li.main-top-createArticle')new_text_olimp, а создаёте её только в следующей строке.new_text_olimp из функции просто в тело скрипта.FSMstavka.next() везде.random_nunawait FSMstavka.next()random_nunmoney заменить FSMstavka.next() на FSMkub.next() send_messagebot.send_message(message.chat.id, task.id, " | ", task.name," | ", task.description, " | ", task.creator.username, " | ", task.url)bot.send_message(message.chat.id, f"{task.id} | {task.name} | {task.description} | {task.creator.username} | {task.url}") check_language(123)def check_language(current_hostname):
return '-java-' in current_hostname or '-go-' in current_hostname
def check_os_version(current_os):
return 'Debian 11' in current os