CopyPastor

Detecting plagiarism made easy.

Score: 0.8591906126984005; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2022-01-04
by BiswajitPaloi

Original Post

Original - Posted on 2021-03-07
by jarh1992



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Just using the Requests lib you can do it:
def send_photo(chat_id, file_opened): method = "sendPhoto" params = {'chat_id': chat_id} files = {'photo': file_opened} resp = requests.post(api_url + method, params, files=files) return resp send_photo(chat_id, open(file_path, 'rb'))
Just using the ***Requests*** lib you can do it:
def send_photo(chat_id, file_opened): method = "sendPhoto" params = {'chat_id': chat_id} files = {'photo': file_opened} resp = requests.post(api_url + method, params, files=files) return resp
send_photo(chat_id, open(file_path, 'rb'))


        
Present in both answers; Present only in the new answer; Present only in the old answer;