Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. @bot.message_handler(func=lambda message: True, content_types=['text'])
  2. def send_green(message):
  3. VN = str("V/\ ")
  4. if(message.text == VN[:3]):
  5. bot.send_message(message.chat.id,"Go Green!")
  6. scriptpath = os.path.dirname(__file__)
  7. tmp = open(scriptpath + "\gogreen.jpg", "rb")
  8. bot.send_photo(message.chat.id, tmp)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement