Created
May 15, 2018 07:48
-
-
Save alihossein/a3af71d0ce83b021539fd9dc0cee9257 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
``` python | |
def convert_channel_id_to_peer_id(channel_id): | |
""" | |
:param channel_id: | |
:return: | |
""" | |
if channel_id is None or channel_id == 'Null': | |
return channel_id | |
else: | |
return 8589934592 | int(channel_id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment