added addition info on how to get your chat id

pull/1/head
mtrp12 3 years ago committed by GitHub
parent fa6dec2854
commit dd0be21d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,7 +20,14 @@ To add your bot's channel to Telegram, you'll need to click the link from Botfat
# Getting your Chat ID
The next step will be to get your chat ID. The easiest way I've found to do this is using the test message in your new Bot channel. Go to the following page: `https://api.telegram.org/bot<token>/getUpdates` (where `<token>` is the token you got in the last step). Upon heading to the site, you'll see a JSON-formatted list of information. Look specifically for the table `chat`, which has an `id` field. Copy that ID (including any negative symbols).
The next step will be to get your chat ID. The easiest way I've found to do this is using the test message in your new Bot channel. Go to the following page: `https://api.telegram.org/bot<token>/getUpdates` (where `<token>` is the token you got in the last step). Upon heading to the site, you'll see a JSON-formatted list of information. Look specifically for the table `chat`, which has an `id` field. Copy that ID (including any negative symbols). If you only see mostly empty JSON without any chat id like this -
```json
{"ok":true,"result":[]}
```
Send a message to the bot using the following format, to get updated JSON.
```
/start your_msg_whatever
```
# Putting it all together

Loading…
Cancel
Save