#!/usr/bin/env python
# coding: utf-8

# In[4]:


import requests

url = "http://localhost:8081/bot{token}/{method}".format(
    token="<KEY>",
    method = "setWebhook"
    #method="getWebhookinfo"
    #method = "deleteWebhook"
    #method = "close"
)

data = {"url": "http://127.0.0.1:8443/"}

r = requests.post(url, data=data)
print(r.json())


# In[ ]:





#!/usr/bin/env python
# coding: utf-8

# In[4]:


import requests

url = "http://localhost:8081/bot{token}/{method}".format(
    token="<KEY>",
    method = "setWebhook"
    #method="getWebhookinfo"
    #method = "deleteWebhook"
    #method = "close"
)

data = {"url": "http://127.0.0.1:8443/"}

r = requests.post(url, data=data)
print(r.json())


# In[ ]:





#!/usr/bin/env python # coding: utf-8 # In[4]: #method="getWebhookinfo" #method = "deleteWebhook" #method = "close" # In[ ]: