import pyowm
import telebot
owm = pyowm.OWM('token', language = "ru")
bot = telebot.TeleBot("import pyowm
import telebot
bot = telebot.TeleBot("token")
bot.message_handler(content_types=['text'])
bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
bot.reply_to(message, "Привет, это ProjectWeather версии alpha0.1! /n Это Телеграм бот написаний на python.")
place = "Киев"
observation = owm.weather_at_place(place)
w = observation.get_weather()
bot.send_message('chat_id', 'text')('Температура в городе ' + place + str(w.get_temperature('celsius')) + "градусов")
# Weather details
w.get_wind()
w.get_temperature('celsius')
")
bot.message_handler(content_types=['text'])
bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
bot.reply_to(message, "Привет, это ProjectWeather версии alpha0.1! /n Это Телеграм бот написаний на python.")
place = "Киев"
observation = owm.weather_at_place(place)
w = observation.get_weather()
bot.send_message('chat_id', 'text')('Температура в городе ' + place + str(w.get_temperature('celsius')) + "градусов")
# Weather details
w.get_wind()
w.get_temperature('celsius')