From 565ca4b473b704d40b994b5a471f0962319ab89d Mon Sep 17 00:00:00 2001 From: Joan Date: Wed, 16 Aug 2023 11:41:08 +0200 Subject: [PATCH] Test dont exist --- wallamanta/test.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 wallamanta/test.py diff --git a/wallamanta/test.py b/wallamanta/test.py deleted file mode 100644 index 10a20fe..0000000 --- a/wallamanta/test.py +++ /dev/null @@ -1,21 +0,0 @@ -import requests -import json - -TELEGRAM_TOKEN="6282777602:AAEQNT1t2TzcnMjfSQoYspOuVi2rb69SJl0" -test = "hola" - -keyboard = {'inline_keyboard': - [[{'text':'Ir al anuncio','url':f'https://es.wallapop.com/item/{test}'}]] - } -print(keyboard) -files = { - 'chat_id': (None, "10101691"), - 'photo': open(f"/Users/jcano/Desktop/test.png", 'rb'), - 'caption': (None, "texto"), - 'parse_mode': (None, 'MarkdownV2'), - 'reply_markup': (None, json.dumps(keyboard)), - } - -response = requests.post(f'https://api.telegram.org/bot{TELEGRAM_TOKEN}/sendPhoto', files=files) - -print(response.content) \ No newline at end of file