Pure python implementation of telegram