Skip to main content

Telebirr with python

Project description

PyTeleBirr is mostly Telebirr With Python
Examples | Documentation | Channel


pip3 install -U pytelebirr


pip3 install -U git+


from pytelebirr import PyTeleBirr

phone_no = "<YOUR_PHONE_NUMBER_STARTS_FROM_9>" # Example 91234567
passwd = "<YOUR_PASSWORD>"

# To get Device id use 
# You have to use this function one time.
from pytelebirr.utils import get_device_id
device_id = get_device_id(
    d_id="<Your Mobile Device ID>" # to get this for android users use device id app for iphone users ¯\_(ツ)_/¯
# after calling this function verification code will be sent via sms check 127
# Code has been sent via sms
# Enter The Code You Received : enter your code here
# and you will get this message on terminal/cmd Your Device_id :  ...

# Initialize PyTelebirr
telebirr = PyTeleBirr(

# get your balance
balance = telebirr.get_balance()
# this returns dict
# 999999.00

# generate beautiful qr code
# now you can custom your qr code size and background color and payment amount
img_path = telebirr.generate_qrcode(
    amount=5, # 5 in birr
    size=200, # optional
    bg_color="ffffff" # color don't use #
# this return image path 

# refresh token tokens will expire in 86400s after login
# this will refresh token

# on payment received method you can pass callable
    on_payment=lambda m: print(m)
# when payment received on_payment function will be called

# to check if transaction exists
# returns bool or dict
# 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
# 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 
# returns dict data of user including phone number ;)

# send payment to user via qr code
    content="123456789"  # content of qr code
# returns dict

# get your token
# returns str your token


  • Python solution.
  • Send payment via qr code and phone number
  • Checking balance
  • Generating beautiful qr code
  • you can custom your qr code
  • Checking transactions
  • Waiting for payment and call function

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytelebirr-0.2.5.tar.gz (9.0 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page