1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

fix errors

This commit is contained in:
iv8
2019-03-04 15:24:55 +08:00
committed by GitHub
parent 8005ca2f6c
commit c77307881d

View File

@@ -524,16 +524,16 @@ Telegram Bot API support new type Chat for message.chat.
- Check the ```type``` attribute in ```Chat``` object: - Check the ```type``` attribute in ```Chat``` object:
- -
```python ```python
if message.chat.type == private: if message.chat.type == "private":
# private chat message # private chat message
if message.chat.type == group: if message.chat.type == "group":
# group chat message # group chat message
if message.chat.type == supergroup: if message.chat.type == "supergroup":
# supergroup chat message # supergroup chat message
if message.chat.type == channel: if message.chat.type == "channel":
# channel message # channel message
``` ```