Skip to content

Python module for interacting with the Tonnel Network bot, fetching available gifts, checking user info, and purchasing gifts.

License

Notifications You must be signed in to change notification settings

yummy1gay/auto-tonnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installation

pip install -r requirements.txt

Usage

Initialize the Client

from telethon import TelegramClient
from auto_tonnel import AutoTonnel

client = TelegramClient('AutoTonnel', api_id, api_hash)
client.start()

tonnel = AutoTonnel(client)

Fetch Available Gifts

gifts = await tonnel.get_gifts(limit=30, 
                               gift_name="Top Hat", 
                               backdrops=["ALL!"], 
                               models=["Pixel Perfect"], 
                               symbols=["ALL!"], 
                               asset="TON")
print(gifts)

Buy a Gift

buy = await tonnel.buy_gift(gift_id=1488, price=100, asset="TON")  # Gift ID and price are retrieved from get_gifts()
premarket = await tonnel.buy_gift(gift_id=1337, price=69, asset="TON", premarket=True) # If the gift is from premarket
print(buy, premarket)

Note: API prices do not include fees. The final cost is approximately 10% higher.

Get User Info

info = await tonnel.get_info()
print(info)

About

Python module for interacting with the Tonnel Network bot, fetching available gifts, checking user info, and purchasing gifts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages