Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @bot.message_handler(func=lambda message: True, content_types=['text'])
- def send_green(message):
- VN = str("V/\ ")
- if(message.text == VN[:3]):
- bot.send_message(message.chat.id,"Go Green!")
- scriptpath = os.path.dirname(__file__)
- tmp = open(scriptpath + "\gogreen.jpg", "rb")
- bot.send_photo(message.chat.id, tmp)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement