> For the complete documentation index, see [llms.txt](https://www.heresecurity.wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.heresecurity.wiki/nei-wang-he-yu/ming-ling-yu-kong-zhi/telegram.md).

# telegram

```
登录telegram
访问https://telegram.me/botfather，发送消息
```

![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/296.png)

```
创建一个bot
```

![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/297.png)

```
创建完成后返回一个token
>pip install telepot
>pip install requests
>git clone https://github.com/blazeinfosec/bt2.git
编辑bt2.py
粘贴token和chatid进脚本
Chat_id的获取方式
https://api.telegram.org/bot<token>/getUpdates
```

![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/298.png) ![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/299.png)

```
当有受控机上线时会列出功能
```

![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/300.png) ![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/301.png)

```
Windows
https://github.com/sf197/Telegra_Csharp_C2
```
