Hi, how can I add sendPhoto method to this code?
I tried to extend your code but it didn't worked
"""
def sendign_photo(chat_id, file_id):
url = URL + "sendPhoto?chat_id={}&photo={}".format(chat_id,file_id)
request.get(url)
"""
int the lambda handler I added this:
"""
file_id = message['message']['photo']['file_id']
sending_photo (chat_id, file_file)
"""
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, how can I add sendPhoto method to this code?
I tried to extend your code but it didn't worked
"""
def sendign_photo(chat_id, file_id):
url = URL + "sendPhoto?chat_id={}&photo={}".format(chat_id,file_id)
request.get(url)
"""
int the lambda handler I added this:
"""
file_id = message['message']['photo']['file_id']
sending_photo (chat_id, file_file)
"""