Created
March 20, 2017 16:47
-
-
Save libfun/024b04ed51c091718d731d7fe42e003d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import telepot | |
bot = telepot.Bot('key') | |
response = bot.getUpdates() | |
botid = bot_id | |
def sendMessage(z): | |
try: | |
bot.sendMessage(botid, z) | |
except: | |
print('Error sending message', z) | |
def sendPhoto(f): | |
try: | |
bot.sendPhoto(botid, f) | |
except: | |
print('Error sending photo') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment