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

Merge pull request #629 from iv8/patch-1

fix errors
This commit is contained in:
FrankWang 2019-04-07 21:43:41 +08:00 committed by GitHub
commit 31dbe30489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
``` ```