From 3604433ebb15d79f17ee34554eb2e11e2311d0d0 Mon Sep 17 00:00:00 2001 From: Lonami Date: Tue, 11 Jul 2017 18:19:56 +0200 Subject: [PATCH] Explain how to check a link without joining --- Joining-a-chat-or-channel.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Joining-a-chat-or-channel.md b/Joining-a-chat-or-channel.md index cff8f07..0a31166 100644 --- a/Joining-a-chat-or-channel.md +++ b/Joining-a-chat-or-channel.md @@ -36,4 +36,8 @@ client(AddChatUserRequest( user_to_add, fwd_limit=10 # allow the user to see the 10 last messages )) -``` \ No newline at end of file +``` + +## Checking a link without joining + +If you don't need to join but rather check whether it's a group or a channel, you can use the [`CheckChatInviteRequest`](https://lonamiwebs.github.io/Telethon/methods/messages/check_chat_invite.html), which takes in the [hash](https://github.com/LonamiWebs/Telethon/wiki/Joining-a-chat-or-channel#joining-a-private-chat-or-channel) of said channel or group. \ No newline at end of file