from pyowm import OWM
from pyowm.utils import config
from pyowm.utils import timestamps
import telebot
owm = OWM('bcc70df13d1999079af2bef1bddab1b8')
bot = telebot.TeleBot('token')
@bot.message_handler(content_types=['text'])
def send_echo(message):
mgr = owm.weather_manager()
observation = mgr.weather_at_place( message.text )
w = observation.weather
answer = "В городе " + message.text + " сейчас " + str(temp) + '\n'
temp=w.temperature('celsius')["temp"]
bot.send_message(message.chat.id, answer)
bot.polling( non_stop =True)