R
R
rustam4iknagiev2021-03-19 18:01:02
Telegram
rustam4iknagiev, 2021-03-19 18:01:02

Hello! Telegram bot created in python does not work, namely one of its parts. What to do?

Hello! Telegram bot created in python does not work, namely one of its parts. What to do? Here is the code:
import telebot
from telebot import types #token

name

= ''
surname = ''
city = ''
position = ''
age = 0

bot = telebot.TeleBot("token")

@bot.message_handler(commands=['start '])
def send_welcome(message):
bot.reply_to(message, "Hello! To meet you, type 'Hi'.")

@bot.message_handler(func=lambda message: True)
def echo_all(message):
if message.text == ...
.
.
.
.
.
bot = telebot.

@bot.message_handler(commands=['goroscop'])
def send_come(message):
bot.reply_to(message, "Hi! Would you like to know your horoscope for 2021? Then write 'Horoscope'!")

@bot.message_handler( func=lambda message: True)
def echo_all(message):
if message.text ...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question