diff --git a/atom.xml b/atom.xml index 2e394defc2..1dd39f86b4 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
chat_id
of an user.The quickest way to retrieve your chat_id
is visiting https://api.telegram.org/botYOUR_API_TOKEN/getUpdates.
The quickest way to retrieve your chat_id
is visiting https://api.telegram.org/botYOUR_API_TOKEN/getUpdates or to use $ curl -X GET https://api.telegram.org/botYOUR_API_TOKEN/getUpdates
. Replace YOUR_API_TOKEN
with your actual token.
The result set will include your chat ID as id
in the from
section:
Another way to get your chat ID directly is described below:
+Another way to get your chat ID directly is described below. Start your Python interpreter from the command-line:
-import telegram
-bot = telegram.Bot(token='YOUR_API_TOKEN')
-chat_id = bot.getUpdates()[-1].message.chat_id
-print(chat_id)
+$ python3
+>>> import telegram
+>>> bot = telegram.Bot(token='YOUR_API_TOKEN')
+>>> chat_id = bot.getUpdates()[-1].message.chat_id
+>>> print(chat_id)
123456789
diff --git a/sitemap.xml b/sitemap.xml
index a2b1dd3b71..30fd57f333 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -2113,62 +2113,62 @@
https://home-assistant.io/demo/frontend.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00
https://home-assistant.io/demo/index.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00
https://home-assistant.io/demo/panels/ha-panel-history.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00
https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00
https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00
https://home-assistant.io/demo/panels/ha-panel-map.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00
https://home-assistant.io/googlef4f3693c209fe788.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00
https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00
https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00
https://home-assistant.io/static/mdi-demo.html
-2016-10-04T20:49:06+00:00
+2016-10-04T21:31:11+00:00