import requests
menu = {'inline_keyboard': [
[{'text': 'С источником', 'callback_data': 'repost'},
{'text': 'Без источника', 'callback_data': 'post'}]]}
requests.post(f"https://api.telegram.org/bot{token}/sendMessage", data={'chat_id': chat_id, 'text': text, 'reply_markup': menu}).json()
{'ok': False, 'error_code': 400, 'description': "Bad Request: can't parse reply keyboard markup JSON object"}