Telegram Bot SetWebhook
https://api.telegram.org/bot<token>/setWebhook?url=주소
를 사용하여 세팅을 하게 되는데 주소는 https:// 이후의 주소를 적어주어야 적용이된다.
이후 봇으로 메세지를 보내게되면 세팅한 곳으로
{'message': {'message_id': 140, 'chat': {'id': 148xxxxxx, 'username': 'username', 'first_name': 'first_name', 'type': 'private'}, 'date': 1453006866, 'from': {'id': 148xxxxxx, 'username': 'username', 'first_name': 'first_name'}, 'text': 'text'}, 'update_id': 893xxxxxx}
와 같은 json 형태를 POST로 전송해 준다.
getupdates 를 사용하여 얻은 것과의 차이점은 result안의 내용값만 전송되어 진다는 점이다.








