def send_my_typing(id, access_hash): return obsolete_pb2.ObsoleteWeakUpdateCommand( myTyping=obsolete_pb2.ObsoleteWeakUpdateCommand.ObsoleteMyTyping( peer=obsolete_pb2.ObsoletePeer( type=1, id=id, access_hash=access_hash), type=1, start=True))
def make_subscribe_to_onlines(id, access_hash): return obsolete_pb2.ObsoleteWeakUpdateCommand( subscribeToOnlines=obsolete_pb2.ObsoletePeersList(peers=[ obsolete_pb2.ObsoletePeer(type=1, id=id, access_hash=access_hash) ]))
def make_subscribe_to_weak_channel(): return obsolete_pb2.ObsoleteWeakUpdateCommand()
def send_my_online(): return obsolete_pb2.ObsoleteWeakUpdateCommand( myOnline=obsolete_pb2.ObsoleteWeakUpdateCommand.ObsoleteMyOnline( online=True))