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.3.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file telecoin-0.1.3.tar.gz
.
File metadata
- Download URL: telecoin-0.1.3.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 | 45730c1d8078accbfb874eaebfb3354a99a89802bfecafd14ca1a002d20a7cd7 |
|
MD5 | 310236d953daaab3dad50c120d16b130 |
|
BLAKE2b-256 | 2a1b3b1359e904b981fd7ad3d1f95ceac603fbca846dbbd056e383343cbc44ec |
Provenance
File details
Details for the file telecoin-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: telecoin-0.1.3-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 | fd3f60aef348d1fe63b1c15c32f570bfb5ee62e2e07e7ec0000d2b457fdb52a7 |
|
MD5 | 6958446fbf3201749ab3c66fbd26987e |
|
BLAKE2b-256 | c68e4f00d7dced3cc9880a4d3a827d2e1e914a7fe96b86b3461ff4f66c14a67b |