Minor fix on README.md
This commit is contained in:
parent
0ae887a81e
commit
efa1ba70df
26
README.md
26
README.md
|
|
@ -109,29 +109,29 @@ After running this command, due to the `-d` flag the container will be running i
|
||||||
Data obtained can be sent through Telegram to a chat (contact), channel or groups.
|
Data obtained can be sent through Telegram to a chat (contact), channel or groups.
|
||||||
|
|
||||||
Creating a Telegram Bot
|
Creating a Telegram Bot
|
||||||
- Start a conversation with [BotFather](https://t.me/BotFather);
|
- Start a conversation with [BotFather](https://t.me/BotFather);
|
||||||
- Send it to the BotFather: /newbot
|
- Send it to the BotFather: /newbot
|
||||||
- Choose a name for your bot;
|
- Choose a name for your bot;
|
||||||
- Choose a username for your bot;
|
- Choose a username for your bot;
|
||||||
- Done! You'll get a token to access the HTTP API.
|
- Done! You'll get a token to access the HTTP API.
|
||||||
|
|
||||||
Getting channel or chat (contact) ID
|
Getting channel or chat (contact) ID
|
||||||
- Start a conversation with [JsonDumpBot](https://t.me/JsonDumpBot);
|
- Start a conversation with [JsonDumpBot](https://t.me/JsonDumpBot);
|
||||||
- It will reply with a json with information from the message;
|
- It will reply with a json with information from the message;
|
||||||
- Go to the channel or chat you want the id and forward a message from there to JsonDumpBot;
|
- Go to the channel or chat you want the id and forward a message from there to JsonDumpBot;
|
||||||
- Find the id in the reply. It'll look something like this:
|
- Find the id in the reply. It'll look something like this:
|
||||||
```
|
```
|
||||||
{...
|
{...
|
||||||
"forward_from_chat": {
|
"forward_from_chat": {
|
||||||
"id": xxxxxxxxx,
|
"id": xxxxxxxxx,
|
||||||
...}
|
...}
|
||||||
```
|
```
|
||||||
- Don't forget to add the bot as admin in channel so messages can be sent.
|
- Don't forget to add the bot as admin in channel so messages can be sent.
|
||||||
|
|
||||||
Getting a group ID
|
Getting a group ID
|
||||||
- Open [Telegram web](https://web.telegram.org);
|
- Open [Telegram web](https://web.telegram.org);
|
||||||
- Go to group and check the url on address bar of browser;
|
- Go to group and check the url on address bar of browser;
|
||||||
- That's the group ID (-xxxxxxxxx), it'll look something like this:
|
- That's the group ID (-xxxxxxxxx), it'll look something like this:
|
||||||
```
|
```
|
||||||
https://web.telegram.org/z/#-xxxxxxxxx
|
https://web.telegram.org/z/#-xxxxxxxxx
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue