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

❔ What is this?

  • This is simple library to activate @BTC_CHANGE_BOT gift cheque.

↗️ 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.9.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

telecoin-0.0.9-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: telecoin-0.0.9.tar.gz
  • Upload date:
  • Size: 3.9 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.9.tar.gz
Algorithm Hash digest
SHA256 7d9791a65be11f81f023557d141c78f5f2df9fec1a7419e63ab5d258a712796c
MD5 6f8bc1d386e6ad48fada6d9a611f0c41
BLAKE2b-256 d5def339d0484088f3049b90b6bd9b9107a9c59905739c4f58658208947a3521

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: telecoin-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c1747201e9fa3b569eacb0d01ba442f045c6f158d843afbc466035fd38c07b3f
MD5 88ab427f094e89f6f0ee7f63b5be9301
BLAKE2b-256 6d4d1baf8784af88bd71b7f61000fabc1eef811b93aba4a3cce26d3a31eee68a

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