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
Release history Release notifications | RSS feed
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.8.tar.gz
(16.0 kB
view hashes)
Built Distribution
Close
Hashes for UsergeAntiSpamApi-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb9c38e203ece49e4638d39f6a180802c753036ad52506fd1e6679bc7387c67a |
|
MD5 | 23d1ce8734b122150a80ee0816e67b6e |
|
BLAKE2b-256 | 2781475c0e1f34345b34a877153f94d93590cb0c3debba40d628942e9024ab5e |