Test dont exist
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user