Skip to main content

Simple library to make payments via telegram bitcoin exchangers

Project description

💾 Installation

pip install telecoin

📞 Contacts

  • 🖱️ Developer contacts: Dev-Telegram

🐦 Dependencies

Library Description
aiohttp Asynchronous HTTP Client/Server for asyncio and Python.
pyrogram Modern Telegram Framework

↗️ Create Session

import asyncio

from telecoin import BankerWrapper


async def main():
    banker = BankerWrapper(phone_number='Your Number', api_id='Your ID',
                           api_hash='Your Hash',
                           session_name='i_love_telecoin')
    await banker.create_session()


if __name__ == '__main__':
    asyncio.run(main())

💰 Activate Cheque

import asyncio

import telecoin.exceptions
from telecoin import BankerWrapper


async def main():
    banker = BankerWrapper(phone_number='Your Number', api_id='Your ID',
                           api_hash='Your Hash',
                           session_name='i_love_telecoin')
    await banker.create_session()
    result = await banker.activate_cheque(cheque='https://telegram.me/BTC_CHANGE_BOT?start=c_59500d20eaac0ac2b479382409596b5d')
    try:
        print(f'Received {result.btc} / {result.rub} RUB.')
    except telecoin.exceptions.InvalidCheque:
        print('This is not a valid cheque.')


if __name__ == '__main__':
    asyncio.run(main())

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

telecoin-0.0.7.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

telecoin-0.0.7-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file telecoin-0.0.7.tar.gz.

File metadata

  • Download URL: telecoin-0.0.7.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.7 Windows/10

File hashes

Hashes for telecoin-0.0.7.tar.gz
Algorithm Hash digest
SHA256 d69fda388a1db5f3f1b8b40e9d3fa96b6967bb0308eab36c9bbd66e026e87518
MD5 9a68a3541e785ace3fb3c2daa07645cd
BLAKE2b-256 1b7476ee0dd2f873b15d43b6917d006d13a3c25efb167de6e1a973c78043e134

See more details on using hashes here.

Provenance

File details

Details for the file telecoin-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: telecoin-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.7 Windows/10

File hashes

Hashes for telecoin-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1316d4991121cfa8544b357773481bbe5547c509f6e7fbe18fea8eef7f724331
MD5 dfde8c7be9699cca199de9200bd453d2
BLAKE2b-256 82c795e21ed34e672f85c91a6c0c1522b4a4746a550b4428b38b189f4b7eb892

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page