@bot.message_handler(commands=['date', 'time'])
def time_message(message):
  userid = message.from_user.id
  banlist = redisserver.sismember('zigzag_banlist', '{}'.format(userid))
  if banlist:
    return
  time = str(datetime.datetime.now())
  bot.send_message(message.chat.id, TIME_MSG.format(time), parse_mode="HTML")

@@ -1,8 +1,33 @@
+# -*- coding: utf-8 -*-%0A%0A
 @bot.mes
@@ -229,101 +229,1060 @@
 n%0A  
-time = str(datetime.datetime.now())%0A  bot.send_message(message.chat.id, TIME_MSG.format(time)
+if len(message.text.split()) %3C 2:%0A    bot.reply_to(message, %22Enter a time zone/city/region/etc. please! %5Cn%5CnExample: %60/weather Tehran%60%22, parse_mode=%22Markdown%22)%0A    return%0A  city = message.text.split()%5B1%5D%0A  try:%0A    tzd = json.load(urllib.urlopen(%22https://maps.googleapis.com/maps/api/geocode/json?address=%7B%7D%22.format(city)))%0A    if str(tzd%5B%22status%22%5D) == %22OK%22:%0A      latlng = str(tzd%5B%22results%22%5D%5B0%5D%5B%22geometry%22%5D%5B%22location%22%5D)%0A      lat = str(latlng%5B%22lat%22%5D)%0A      lng = str(latlng%5B%22lng%22%5D)%0A      tzl = json.load(urllib.urlopen(%22https://maps.googleapis.com/maps/api/timezone/json?location=%7B%7D&timestamp=1331161200%22.format(lat + %22,%22 + lng)))%0A      timezone = tzl%5B%22timeZoneId%22%5D%0A    else:%0A      bot.reply_to(message, %22Timezone not found.%22)%0A      return%0A  except:%0A    print(%22%5BTime%5D Exception occured%22)%0A    return%0A  time = json.load(urllib.urlopen(%22https://script.google.com/macros/s/AKfycbyd5AcbAnWi2Yn0xhFRbyzS4qMq1VucMVgVvhul5XqS9HkAyJY/exec?tz=%7B%7D%22.format(timezone)))%0A  bot.send_message(message.chat.id, %22Current time in *%22 + timezone + %22*: %5Cn%22 + time%5B%22fulldate%22%5D
 , pa
@@ -1295,11 +1295,15 @@
 de=%22
-HTML
+Markdown
 %22)%0A

Update time.py