skip to Main Content

Telegram Bot that says "Hi"

I'm trying to make a very simple Telegram Bot in Python that says "Hi" every minute. This is the code so far, but it does not post anything to my telegram. import requests import time bot_token = "insert_token_here" group_chat_id =…

VIEW QUESTION

is in python a deep json parsing?

I have next code: import json string = b'{"campaign_id":6,"email":"[email protected]","time":"2024-01-26T06:05:59.852155Z","message":"Submitted Data","details":"{\"payload\":{\"__RequestVerificationToken\":[\"CfDJ8EfyW-fedawawdawdwadwadwawadawd-6xqg_ZIdEJBpbAHkDQdNM\"],\"__original_url\":[\"https://test-test-test.ru/\"],\"password\":[\"test\"],\"qwe\":[\"Gg4gTWg\"],\"username\":[\"test\"]},\"browser\":{\"address\":\"1.1.1.1\",\"user-agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0\"}}"}' a = json.loads(string) Problem is not parsing dict by key details. If you make json.loads, you will see that in key value…

VIEW QUESTION
Back To Top
Search