This repo contains a simple library for work with Eitaa messenger's api

Overview

Eitaa PyKit

This repo contains a simple library for work with Eitaa messenger's api

PyPI Page : https://pypi.org/project/Eitaa-PyKit

Install via pip

pip install eitaapykit

if you use linux :

pip3 install eitaapykit

Get information of a channel

you can get information of a channel with get_info(channel_id) function in eitaa module
params :

  • channel_id: your channel id to get information of it(without @)

Example :

import eitaa
print(eitaa.get_info("channel ID"))

It is returns a dict object contains channel name, image url, subscriber count, channel description.

{
  "name": "channel name",
  "image_url": "channel image url",
  "users" : "subscribers count",
  "desc" : "description of channel",
}

Send a message

you can send a meesage to your channel with send_message(token,chat_id,text,pin=False,view_delete=-1) function in eitaa moduel
params :

  • token : your eitaayar.ir token
  • chat_id : your chat id(if your chat is a channel set it to channel id, and if your chat is a group set it to group invite link)
  • text : text to send
  • pin(optional) : if you want to message pinned in chat, set it True
  • view_delete(optional) : if view counts be equal to view_delete, message will delete

Example :

import eitaa
TOKEN = "eitaayar.ir_token"
print(eitaa.send_message(TOKEN,"chat id","message text",pin=1)

It is returns a bool value that shows send status True --> message sent successfully False --> error in send message

Send a file

you can send a file to your channel with send_file(token,chat_id,caption,file,pin=False,view_delete=-1) function in eitaa moduel
params :

  • token : your eitaayar.ir token
  • chat_id : your chat id(if your chat is a channel set it to channel id, and if your chat is a group set it to group invite link)
  • caption : caption of your file(similar to text in send_message function)
  • file : your file name to send to chat
  • pin(optional) : if you want to file pinned in chat, set it True
  • view_delete(optional) : if view counts be equal to view_delete, file will delete

Example :

import eitaa
TOKEN = "eitaayar.ir_token"
print(eitaa.send_file(TOKEN,"chat id","caption","README.txt",pin=1)

It is returns a bool value that shows send status True --> file sent successfully False --> error in send message

About

This project is licensed under the MIT License, for more information read License File

You might also like...
alpaca-trade-api-python is a python library for the Alpaca Commission Free Trading API.

alpaca-trade-api-python is a python library for the Alpaca Commission Free Trading API. It allows rapid trading algo development easily, with support for both REST and streaming data interfaces

Beyonic API Python official client library simplified examples using Flask, Django and Fast API.
Beyonic API Python official client library simplified examples using Flask, Django and Fast API.

Beyonic API Python official client library simplified examples using Flask, Django and Fast API.

Python API wrapper library for Convex Value API

convex-value-python Python API wrapper library for Convex Value API. Further Links: Convex Value homepage @ConvexValue on Twitter JB on Twitter Authen

This an API wrapper library for the OpenSea API written in Python 3.

OpenSea NFT API Python 3 wrapper This an API wrapper library for the OpenSea API written in Python 3. The library provides a simplified interface to f

PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

PRAW: The Python Reddit API Wrapper PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to Reddit's AP

PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

PRAW: The Python Reddit API Wrapper PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to Reddit's AP

A simple API wrapper for the Tenor API

Gifpy A simple API wrapper for the Tenor API Installation Python 3.9 or higher is recommended python3 -m pip install gifpy Clone repository: $ git cl

A simple Python API wrapper for Cloudflare Stream's API.

python-cloudflare-stream A basic Python API wrapper for working with Cloudflare Stream. Arbington.com started off using Cloudflare Stream. We used the

Reddit cli to slack at work

Reddit CLI (v1.0) Introduction Why Reddit CLI? Coworker who sees me looking at something in a browser: "Glad you're not busy; I need you to do this, t

Releases(v1.5.0)
Owner
Bistcuite
Bistcuite
This library is for simplified work with the sms-man.com API

SMSMAN Public API Python This is a lightweight library that works as a connector to Sms-Man public API Installation pip install smsman Documentation h

null 13 Nov 19, 2022
A simple chat api that can also work with ipb4 and chatbox+

SimpleChatApi API for chatting that can work on its own or work with Invision Community and Chatbox+. You are also welcome to create frontend for this

Anubhav K. 1 Feb 1, 2022
REPO USERBOT YANG DIBUAT DARI BERBAGAI REPO USERBOT GITHUB.

Lord Userbot Userbot Yang Digunakan Untuk Bersenang-Senang Di Telegram Repo Lord Userbot Repo Yang Dibuat Alvin Dari Berbagai Repo Userbot Github CARA

Alvin 70 Jan 2, 2023
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.

Maintenance Bot A Telegram Repo For Devs To Controll The Bots Under Maintenance About This Bot This Bot Is For Developers, If Your Bot Is Down, Use Th

Vɪᴠᴇᴋ 47 Dec 29, 2022
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.

Maintenance Bot A Telegram Repo For Devs To Controll The Bots Under Maintenance About This Bot This Bot Is For Developers, If Your Bot Is Down, Use Th

Vɪᴠᴇᴋ 47 Dec 29, 2022
This repo contains a small project i've done using PILLOW module in python

This repo contains a small project i've done using PILLOW module in python. I wrote an automated script which generates more than 5k+ unique nfts with 0 hassle in less time.

SasiVatsal 11 Nov 5, 2022
A python wrapper for the mangadex API V5. Work in progress

mangadex A python wrapper for the mangadex API V5. It uses the requests library and all the aditional arguments can be viewed in the Official Mangadex

Eduardo Ceja 27 Dec 14, 2022
Telegram Bot Repo Capable of fetching the following Info via Anilist API inspired from AniFluid and Nepgear

Telegram Bot Repo Capable of fetching the following Info via Anilist API inspired from AniFluid and Nepgear Anime Airing Manga Character Scheduled Top

Rikka-Chan 2 Apr 1, 2022
This repository contains Python code examples using the MoneyMoov API

Python Examples This repository contains Python code examples using the MoneyMoov API. The examples are written to operate in the NoFrixion sandbox en

nofrixion 1 Feb 8, 2022
A simple test repo created following docker docs.

docker_sampleRepo A simple test repo created following docker docs. Link to docs: https://docs.docker.com/language/python/develop/ Other links: https:

Suraj Verma 2 Sep 16, 2022