Skip to main content

SDK for qqpusher

Project description

QQPUSHER

本项目是QQPusherQQPusherProPython SDK QQPusher的使用方法请参考http://qqpusher.yanxianjun.com/ QQPusherPro的使用方法请参考http://qqpusherpro.yanxianjun.com/

本项目的使用

pip install qqpusher

Demo

这里的id可以是qq号也可是qq群号

import qqpusher
import time

Token = "xxxxxxxxxxxxxxxx"
Group_Id = "xxxxxxxxxx"
Private_Id = "xxxxxxxxxx"

if __name__ == '__main__':
    qqpush1 = qqpusher.qqpusher(token=Token, id=Private_Id, auto_escape=False)
    print(qqpush1.send_private_msg("测试私聊消息"))
    time.sleep(10)
    qqpush2 = qqpusher.qqpusher(token=Token, id=Group_Id, auto_escape=False)
    print(qqpush2.send_group_msg("测试群组消息"))
    time.sleep(10)
    print(qqpush2.set_group_mute_all(True))
    time.sleep(10)
    print(qqpush2.set_group_mute(Private_Id, 60))
    time.sleep(10)
    print(qqpush2.set_group_name("测试群名"))
    time.sleep(10)
    print(qqpush2.set_group_memo("测试群公告"))

函数列表

  • qqpusher
    • send_private_msg
    • send_group_msg
    • set_group_mute_all
    • set_group_mute
    • set_group_name
    • set_group_memo
  • qqpusherpro
    • get_state_info
    • send_friend_msg
    • send_friend_json
    • send_friend_xml
    • send_group_msg
    • send_group_json
    • send_group_xml
    • add_friend
    • delete_friend
    • handle_friend_event
    • join_group
    • quit_group
    • all_ban
    • ban
    • kick_group_member
    • add_event

鸣谢

yanxianjun开发维护的QQPusher推送服务

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qqpusher-0.1.7.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

qqpusher-0.1.7-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file qqpusher-0.1.7.tar.gz.

File metadata

  • Download URL: qqpusher-0.1.7.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for qqpusher-0.1.7.tar.gz
Algorithm Hash digest
SHA256 2e6b99666dcb55f9d725ed1a09c5654fed83d0da43d8148f69fc9a3053b64642
MD5 617ac9f092570d53d26ef1667c0e925b
BLAKE2b-256 7615fb7e68b4c2169b867b572f62b2cc2052557c0f40a7e712de84d4a25a0484

See more details on using hashes here.

File details

Details for the file qqpusher-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: qqpusher-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for qqpusher-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2079223fc74043d75610932ff40bfa7d1bd6f6c8800e38655290ffb29e5c3fec
MD5 30b37a04f3a881d96f88be876338602c
BLAKE2b-256 de3822a2d46ca6f98d97f88c12a5602578f82cc028029af6e591d342ee33adf1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page