コード例 #1
0
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))
コード例 #2
0
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)
        ]))
コード例 #3
0
def make_subscribe_to_weak_channel():
    return obsolete_pb2.ObsoleteWeakUpdateCommand()
コード例 #4
0
def send_my_online():
    return obsolete_pb2.ObsoleteWeakUpdateCommand(
        myOnline=obsolete_pb2.ObsoleteWeakUpdateCommand.ObsoleteMyOnline(
            online=True))