Skip to main content

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.

Metadata

Release files for UsergeAntiSpamApi 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for UsergeAntiSpamApi 0.1.8
File Size Uploaded
UsergeAntiSpamApi-0.1.8.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for UsergeAntiSpamApi 0.1.8
File Interpreter ABI Platform
UsergeAntiSpamApi-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 32.7 kB

Release files / UsergeAntiSpamApi-0.1.8.tar.gz

Download URL UsergeAntiSpamApi-0.1.8.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9e461946c812206da5cd1b6e04b1a74edd62c5e1999966173583993485a0bc28
BLAKE2b-256 checksum
How to use checksums
b52cb1f88ae8382527838bc954a7e1368cda37e8308f787fd70e14a13bef95df
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / UsergeAntiSpamApi-0.1.8-py3-none-any.whl

Download URL UsergeAntiSpamApi-0.1.8-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb9c38e203ece49e4638d39f6a180802c753036ad52506fd1e6679bc7387c67a
BLAKE2b-256 checksum
How to use checksums
2781475c0e1f34345b34a877153f94d93590cb0c3debba40d628942e9024ab5e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page