NO SPAM PLUS API

Whats This?

NoSpamPlus Is a Simple Api To get Info About Spammers/Scammers Or Whatever. Use it To make Telegram Spam Free.

Why Use This?

There is Lots Of Antispam In Telegram, But Why Use This? We Have Seen These Apis Admin Only Banning Users From Specific Country, Critising Them. We Have Mission Not To Do anything Like that. We Belive We All Are Humans And We Are One World

Token

Well, For Token You Can Contact @NospamPlusBot On Telegram. Or Pm @StarkXd

Requirements

Basically, We Only Need Python 3.5+ And Requests Library.

Python

You Can Install Python From https://www.python.org/downloads/

Requests

Install Requests By Running The Following Command or Adding To Your requirements File:
pip3 install requests
Make sure Its On Latest Version

NoSpamPlus

Install With Pip
pip3 install NoSpamPlus
Make sure Its On Latest Version For Better Result.

Examples Usage

Python

You Have To Enter Token In token Parameter And User Id You Wanna Check in userids

from nospamplus.connect import Connect
mytoken = 'your_token_from_@nospamplusbot'
token_connect = Connect(mytoken)
user = token_connect.is_banned(12974624)
print(user.ban_code)
print(user.reason)

PHP

<?php

$userids = 1295;
$token = "yourtokenhere";

echo file_get_contents("http://NoSpamPlus.tk/info/?userid=$userids&token=$token");

?>

NoSpamPlus And Telethon

Telethon

Lets Try To Ban A User As Soon He Arrives In Chat.

from nospamplus.connect import Connect
sclient = Connect('tokenhere')
@client.on(ChatAction)
async def ok(event):
  if event.user_joined:
      juser = await event.get_user()
      user = sclient.is_banned(juser.id)
      if user:
          await event.reply(
              f"**#ANTISPAMINC** \n**Detected Malicious User.** \n**User-ID :** `{juser.id}`  \n**Reason :** `{user.reason}`"
          )
          try:
              await client.edit_permissions(
                  event.chat_id, juser.id, view_messages=False
              )
          except:
              pass
      else:
          pass

Support Panel

You Can Join Our Telegram Group / Channel To Seek Support. Basically, You Can Appeal, Report A Person Or Even Ask Questions About Our Api. Please Be Polite.

Support Group : @NoSpamPlusChat
Channel : @NoSpamPlus

Credits

Thanks To All Who Helped To Complete This Project.