Answer the question
In order to leave comments, you need to log in
Why does the bot crash with an error?
I followed this instruction https://qsy.by/telegram-bot-na-python-chast-2-pych... , starting from the line, we will start writing code.
Here is the code
import telebot
from telebot import apihelper
TOKEN = '836764194:AAHd4h Kv1HVvIl1g'
apihelper.proxy = {'http':'http://171.255.192.118:8080'}
bot = telebot.TeleBot(TOKEN)
@bot.message_handler(commands=['start'])
def start(message):
sent = bot.send_message(message.chat.id, 'Как тебя зовут?')
bot.polling()
Answer the question
In order to leave comments, you need to log in
import telebot
from telebot import apihelper
bot = telebot.TeleBot(TOKEN)
apihelper.proxy = {'https': 'socks5h://user:[email protected]:1080'}
<...>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question