Guest User

Untitled

a guest
May 20th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. ``` python
  2. def convert_channel_id_to_peer_id(channel_id):
  3. """
  4. :param channel_id:
  5. :return:
  6. """
  7. if channel_id is None or channel_id == 'Null':
  8. return channel_id
  9. else:
  10. return 8589934592 | int(channel_id)
Add Comment
Please, Sign In to add comment