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.1.tar.gz
(3.9 kB
view hashes)