Metadata-Version: 2.1
Name: pytelebirr
Version: 0.2.2
Summary: Telebirr with python 
Home-page: https://github.com/telebirrapi/pytelebirr
Author: wizkiye
Author-email: wizkiye@gmail.com
License: MIT License
Description: <p align="center">
        <a href="https://github.com/telebirrapi/pytelebirr">
        <img src="https://raw.githubusercontent.com/TeleBirrApi/PyTeleBirr/main/.github/images/telebirrapi.png" alt="Pytelebirr">
        </a>
        <br>
        <b>PyTeleBirr is mostly Telebirr With Python</b>
        <br>
        <a href="https://github.com/telebirrapi/pytelebirr/tree/main/examples">
        Examples</a>
        |
        <a href="https://telebirrapi.github.io/PyTeleBirr/">
        Documentation</a>
        |
        <a href="https://t.me/PyTeleBirr">  
        Channel</a>
        
        
        #### Installation
        
        `pip3 install pytelebirr`
        
        #### Usage
        
        ````python
        from pytelebirr import PyTeleBirr
        
        # Initialize PyTelebirr
        telebirr = PyTeleBirr(
            device_id="<YOUR_DEVICE_ID>",
            phone_no="<YOUR_PHONE>",
            passwd="<YOUR_PASSWORD>",
        )
        # get your balance
        balance = telebirr.get_balance()
        # this returns object
        balance['balance']
        # 999999.00
        
        # generate beautiful qr code
        img_path = telebirr.generate_qrcode()
        # this return image path 
        
        # refresh token tokens will expire in 86400s after login
        telebirr.refresh_token()
        # this will refresh token
        
        # on payment received method you can pass callable
        telebirr.on_payment(
            on_payment= lambda m: print(m)
        )
        # when payment received on_payment function will be called
        
        # to check if transaction exists
        # returns bool or dict
        telebirr.check_tx(
            "ABCDE"
        )
        # if tx id exists will return dict elase false
        # this method can check all telebirr transaction so be careful
        
        # check if the tx id payment was sent to me
        telebirr.is_my_tx(
            "ABCDE"
        )
        # returns bool if tx id was sent to me returns True else False
        
        # scan qr code
        # scan the receiver qr code and pass the content 
        telebirr.scan_qr(
            "1234567890"
        )
        # returns dict data of user including phone number ;)
        
        # send payment to user via qr code
        telebirr.send_payment(
            amount=5,
            phone="1234567890",
            content="123456789" # content of qr code
        )
        # returns dict
        
        ````
        
        ### Features
        - Python solution.
        - Send payment via qr code and phone number
        - Checking balance
        - Generating beautiful qr code
        - Checking transactions
        - Waiting for payment and call function
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.8
Description-Content-Type: text/markdown
