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.6.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file telecoin-0.1.6.tar.gz
.
File metadata
- Download URL: telecoin-0.1.6.tar.gz
- Upload date:
- Size: 4.1 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 | a5a6eb4a6b4686fef126ba428597b8dbd1ba682d62edf53606ec8162df5cb253 |
|
MD5 | 3b3dda1ca88ce9cb10442a75a3daa8ab |
|
BLAKE2b-256 | 75a11e99b8de8f77959105af3417f97bc4e635a24febfdbce2488256c4d8ce19 |
Provenance
File details
Details for the file telecoin-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: telecoin-0.1.6-py3-none-any.whl
- Upload date:
- Size: 4.6 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 | b669d3613a86fdac8d4d93886538afa7a6e694ef972ce45c85c5d9282a6b9b7b |
|
MD5 | 894346ce16cc72c35f5a658604bb451e |
|
BLAKE2b-256 | ea4468ad72b91b1be9828db54f5211d5c9085aedfcf405457afd58ed02b5971b |