Simple library to make payments via telegram bitcoin exchangers
Project description
💾 Installation
pip install telecoin
📞 Contacts
🐦 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
Release history Release notifications | RSS feed
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.1.4.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file telecoin-0.1.4.tar.gz
.
File metadata
- Download URL: telecoin-0.1.4.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7abcfaf21818993e35c57044aa9c27500ed49007da11ccf5735157411b7b1480 |
|
MD5 | 621046fe8a40a15393e9a9e2d09cda3b |
|
BLAKE2b-256 | 63a3c30b2f54da32dcfdb3faa46065335caae39991875f4339f0abccd27e3246 |
Provenance
File details
Details for the file telecoin-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: telecoin-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79889c9a3053107b3607e97de76866accc94bdf6a8d11c4be90fe737405457da |
|
MD5 | 28bf67d5d3f8c5bd5d3a6210a0d82d3f |
|
BLAKE2b-256 | 4142d4992717faf4843d004de43180a49488ec381b8451fcb43e7afe95a01b5d |