Last active
August 14, 2019 06:07
-
-
Save amiryousefi/ee728035cbc8f06c45a398a73b22ebca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user_input_channel = input("enter entity(telegram URL or entity id):") | |
if user_input_channel.isdigit(): | |
entity = PeerChannel(int(user_input_channel)) | |
else: | |
entity = user_input_channel | |
my_channel = client.get_entity(entity) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment