Skip to main content

fb bot api

Project description

开始使用

这里使用getme做示例

import fanbookbotapi

print(fanbookbotapi.getme('123').text)

支持的api

  • getme(token='bot token')
  • sendmessage(token='bot token',chatid=0,biaoti="标题",ik=[[{"text":"下一页","callback_data":"{"type":"next","index":2,"msg":"114514"}"}]],text='文本',type="card")
发送消息
Args:
    chatid (int): 频道id
    biaoti (str): 标题(type为card时的卡片标题)
    ik (list): 键盘列表
    text (str): 正文文本
    type (str): 类型,card(内置md消息卡片\\\\n是换行)或text(文本)或fanbook(自定义特殊消息)
    
Returns:
    str: 返回requests请求对象

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

fanbookbotapi-1.1.9.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

fanbookbotapi-1.1.9-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file fanbookbotapi-1.1.9.tar.gz.

File metadata

  • Download URL: fanbookbotapi-1.1.9.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for fanbookbotapi-1.1.9.tar.gz
Algorithm Hash digest
SHA256 ba13dfdd8493e26749a22c2976da777714d0295413f581453b1144e8a1f97020
MD5 52e75f7be33b217dbf0262bb1acbccb9
BLAKE2b-256 43f6398aab221fa853b75fcbc4e432fc98c69998dfde92801220f05d0ca8c5c2

See more details on using hashes here.

File details

Details for the file fanbookbotapi-1.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for fanbookbotapi-1.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 5be006e387a3b7229fbf6a785c8bd5aad6836129b243ee5c58e4d737c6f36ce9
MD5 36afc20b4a58d6c83180414967b1d782
BLAKE2b-256 ab33150629b3ea3df6b8baa8715bdf2bb379d6efa2920d3692ec93fe740a2bae

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