Skip to main content

Wrapper for [Userge AntiSpam API](https://api.userge.tk)

Project description

UsergeAntiSpamApi


Installation

pip install UsergeAntiSpamApi

Documentation

You can read our Documention on https://docs.userge.tk


Examples

Authorisation

from UsergeAntiSpamApi import Client

API_KEY = "Your_API_KEY"

client = Client(API_KEY)

Parameters

Parameter description
api_key Your API KEY

Bans

Getting a specific ban

print(client.getban(777000))

Parameters

Parameter description
user_id Id of Telegram User.

Getting a list of all bans

print(client.getbans())

Required Permission Level

Admin

Read more about Bans from here


Tokens

Getting your own token

To get your own token, go to @UsergeFedBot and create one.


Getting about your own token

print(client.get_me())

Deleting your own token

client.delete_my_token()

Read more about Tokens from here


Version

print(client.get_version())

Stats

print(client.get_api_stats())

Copyright

Copyright (C) 2021 by UsergeTeam@Github, < https://github.com/UsergeTeam >.

This project is part of < https://github.com/UsergeTeam > project, and is released under the "GNU v3.0 License Agreement". Please see < https://github.com/UsergeTeam/Userge-Federation/blob/master/LICENSE >

All rights reserved.

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

UsergeAntiSpamApi-0.1.4.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

UsergeAntiSpamApi-0.1.4-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file UsergeAntiSpamApi-0.1.4.tar.gz.

File metadata

  • Download URL: UsergeAntiSpamApi-0.1.4.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for UsergeAntiSpamApi-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6c2631f7147df326d747e3213ae7ec7c6616ce618d1b98ae4f57c6aee82ade03
MD5 4d5d505eb92ae01c4633e7917c81ddef
BLAKE2b-256 ba5723fa5e0258a946fbb1e7d257b11e9b7ae811356911a5279ad7c2a8fbec96

See more details on using hashes here.

File details

Details for the file UsergeAntiSpamApi-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: UsergeAntiSpamApi-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for UsergeAntiSpamApi-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3f23585f7aedac4d2160408be85cd7856c2bf274b97bbe46b0b5b9f5386ff4cd
MD5 5c8fca5a0b7a368f414ff06bcaf62a18
BLAKE2b-256 cfc7deb61dfbab4a4d3f1b4a4f091718ccf0af14eab3a78adf07e9cd10516b4b

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