1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] How can I find out the actual price of an NFT gift in Telegram using Python?

Discussão em 'Python' iniciado por Stack, Setembro 18, 2025.

  1. Stack

    Stack Membro Participativo

    I'm writing a webapp bot in Python, Aiogram, and DRF. I've encountered a problem getting the REAL price of gifts in Telegram. The price list on the official marketplace and Telegram's API is far from accurate. This topic is currently in high hype, and everyone is creating similar bots. My question is: how and where can I get the real prices of gifts in Telegram? Anything will work: APIs, Python libraries, perhaps simulating actions with Selenium. Anything possible. I'm looking forward to your answers and suggestions.

    I found this interesting code online:

    import curl_cffi
    import json

    headers = {
    "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0",
    "Accept": "*/*",
    "Accept-Language": "en-US,en;q=0.5",
    # 'Accept-Encoding': 'gzip, deflate, br, zstd',
    "Referer": "https://tonnel-gift.vercel.app/",
    "Content-Type": "application/json",
    "Origin": "https://tonnel-gift.vercel.app",
    "Connection": "keep-alive",
    "Sec-Fetch-Dest": "empty",
    "Sec-Fetch-Mode": "cors",
    "Sec-Fetch-Site": "cross-site",
    "Sec-GPC": "1",
    "Priority": "u=4",
    # Requests doesn't support trailers
    # 'TE': 'trailers',
    }

    json_data = {
    "page": 1,
    "limit": 30,
    "sort": '{"message_post_time":-1,"gift_id":-1}',
    "filter": '{"price":{"$exists":true},"refunded":{"$ne":true},"buyer":{"$exists":false},"export_at":{"$exists":true},"asset":"TON"}',
    "ref": 0,
    "price_range": None,
    "user_auth": "",
    }

    session = curl_cffi.Session(impersonate="chrome131")


    response = session.post(
    "https://gifts2.tonnel.network/api/pageGifts", headers=headers, json=json_data
    )
    print(response.json())


    It returns all gifts from a page on a website, but the filters don't work correctly (I couldn't figure out why). I passed the value of the Telegram gift number #52475 (a gift named Xmas Stocking) to it, and in return I received a Swag Bag gift. Even though the gift numbers are the same.

    This is what the code returns:

    [{'gift_num': 24646, 'customEmojiId': '5240390971962717341', 'gift_id': 5731348, 'name': 'Big Year', 'model': 'Pokeball (2.9%)', 'asset': 'TON', 'symbol': 'Pegasus (0.5%)', 'backdrop': 'Indigo Dye (1%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 5.5, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-06-19T12:12:50.000Z', 'premarketData': {}}, {'gift_num': 15817, 'customEmojiId': '5379650845539331676', 'gift_id': 8341965, 'name': 'Snake Box', 'model': 'Pink Bloom (3%)', 'asset': 'TON', 'symbol': 'Handset (0.8%)', 'backdrop': 'Dark Lilac (1.2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 1.35, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-02T03:59:15.000Z', 'premarketData': {}}, {'gift_num': 48562, 'customEmojiId': '5431900432660191080', 'gift_id': 8342080, 'name': 'Spiced Wine', 'model': 'Indigo Orange (1.3%)', 'asset': 'TON', 'symbol': 'Turtle (0.5%)', 'backdrop': 'Hunter Green (1.5%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 3.9, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-02T04:38:22.000Z', 'premarketData': {}}, {'gift_num': 61107, 'customEmojiId': '5296503594403522366', 'gift_id': 8339758, 'name': 'Holiday Drink', 'model': 'Apple Mousse (5%)', 'asset': 'TON', 'symbol': 'Shooting Star (1.2%)', 'backdrop': 'Copper (1.2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 1.81, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-01T19:23:43.000Z', 'premarketData': {}}, {'gift_num': 110700, 'customEmojiId': '5420338651282302360', 'gift_id': 8342078, 'name': 'Homemade Cake', 'model': 'Sweet Bite (1.5%)', 'asset': 'TON', 'symbol': 'Sun Mountain (0.5%)', 'backdrop': 'Strawberry (1.5%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 1.8, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-02T04:38:13.000Z', 'premarketData': {}}, {'gift_num': 106526, 'customEmojiId': '5217979871266891345', 'gift_id': 7986615, 'name': 'Lunar Snake', 'model': 'Poisonous (0.8%)', 'asset': 'TON', 'symbol': 'Cicada (0.4%)', 'backdrop': 'Moonstone (2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 2, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-09-04T21:30:59.000Z', 'premarketData': {}}, {'gift_num': 57537, 'customEmojiId': '5348115387470869096', 'gift_id': 8335417, 'name': 'Jolly Chimp', 'model': 'Monkey Mouse (2%)', 'asset': 'TON', 'symbol': 'Cavalier Hat (0.5%)', 'backdrop': 'Onyx Black (1.5%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 63, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-01T11:44:51.000Z', 'premarketData': {}}, {'gift_num': 22034, 'customEmojiId': '5219879354913284528', 'gift_id': 7023983, 'name': 'Lunar Snake', 'model': 'Geodesic (0.5%)', 'asset': 'TON', 'symbol': 'Star (1.5%)', 'backdrop': 'Azure Blue (2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 2, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-07-20T09:07:04.000Z', 'premarketData': {}}, {'gift_num': 7129, 'customEmojiId': '5208479510982321993', 'gift_id': 8243464, 'name': 'Lol Pop', 'model': 'Magic Wand (1%)', 'asset': 'TON', 'symbol': 'Celtic Cross (0.5%)', 'backdrop': 'Copper (2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 2, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-09-23T16:21:28.000Z', 'premarketData': {}}, {'gift_num': 6362, 'customEmojiId': '5238156644075987410', 'gift_id': 8342072, 'name': 'Bunny Muffin', 'model': 'Vanilla (1.4%)', 'asset': 'TON', 'symbol': 'Ring (0.6%)', 'backdrop': 'Emerald (2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 3.5, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-02T04:37:50.000Z', 'premarketData': {}}, {'gift_num': 11701, 'customEmojiId': '5215400262369307561', 'gift_id': 8322596, 'name': 'B-Day Candle', 'model': 'Forecast (0.8%)', 'asset': 'TON', 'symbol': 'Rook (0.4%)', 'backdrop': 'French Blue (1.5%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 1.45, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-09-30T06:24:59.000Z', 'premarketData': {}}, {'gift_num': 5812, 'customEmojiId': '5467737837346519656', 'gift_id': 8342073, 'name': 'Easter Egg', 'model': 'Eggburger (2%)', 'asset': 'TON', 'symbol': 'Mountain Goat (0.4%)', 'backdrop': 'Persimmon (1.2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 3.5, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-02T04:37:58.000Z', 'premarketData': {}}, {'gift_num': 313986, 'customEmojiId': '5226517544696837316', 'gift_id': 8342076, 'name': 'Desk Calendar', 'model': 'Tuesday (0.6%)', 'asset': 'TON', 'symbol': 'Blood Drop (0.3%)', 'backdrop': 'Rosewood (2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 1.5, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-02T04:38:05.000Z', 'premarketData': {}}, {'gift_num': 51626, 'customEmojiId': '5289918945682288004', 'gift_id': 8342070, 'name': 'Sakura Flower', 'model': 'Gerbera (1.1%)', 'asset': 'TON', 'symbol': 'Light Bulb (0.3%)', 'backdrop': 'Sapphire (1.2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 5.6, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-02T04:37:40.000Z', 'premarketData': {}}, {'gift_num': 91124, 'customEmojiId': '5231142386956006151', 'gift_id': 8342027, 'name': 'Jolly Chimp', 'model': 'Coco Lime (3%)', 'asset': 'TON', 'symbol': 'Baby Bottle (0.2%)', 'backdrop': 'Amber (1.2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 5.6, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-02T04:25:23.000Z', 'premarketData': {}}, {'gift_num': 91115, 'customEmojiId': '5231030786525784225', 'gift_id': 8341785, 'name': 'Jolly Chimp', 'model': 'Early Adopter (3%)', 'asset': 'TON', 'symbol': 'Scissors (0.5%)', 'backdrop': 'Raspberry (1.5%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 5.6, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-02T02:14:15.000Z', 'premarketData': {}}, {'gift_num': 71286, 'customEmojiId': '5276369663893200427', 'gift_id': 8341562, 'name': 'Tama Gadget', 'model': 'Inferno (2%)', 'asset': 'TON', 'symbol': 'Astronaut (0.5%)', 'backdrop': 'Hunter Green (1.2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 2, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-01T23:57:29.000Z', 'premarketData': {}}, {'gift_num': 130689, 'customEmojiId': '5217629771302726560', 'gift_id': 8341568, 'name': 'Lunar Snake', 'model': 'Night Market (0.8%)', 'asset': 'TON', 'symbol': 'Ice Skates (1.8%)', 'backdrop': 'Shamrock Green (2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 1.4, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-02T00:01:16.000Z', 'premarketData': {}}, {'gift_num': 36374, 'customEmojiId': '5431551350603276925', 'gift_id': 8143839, 'name': 'Hex Pot', 'model': 'Heat Map (1.3%)', 'asset': 'TON', 'symbol': 'Lollipop (1.6%)', 'backdrop': 'French Blue (1.5%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 3, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-09-17T18:51:57.000Z', 'premarketData': {}}, {'gift_num': 7548, 'customEmojiId': '5292233976004504056', 'gift_id': 8342069, 'name': 'Love Potion', 'model': 'Peach Nectar (1.5%)', 'asset': 'TON', 'symbol': 'Eagle (0.5%)', 'backdrop': 'Sky Blue (2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 10, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-02T04:37:22.000Z', 'premarketData': {}}, {'gift_num': 18884, 'customEmojiId': '5215563561320866475', 'gift_id': 8300299, 'name': 'Love Candle', 'model': 'Gothic Tears (1.5%)', 'asset': 'TON', 'symbol': 'Sweets Box (1%)', 'backdrop': 'Rosewood (1%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 12, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-09-28T10:25:08.000Z', 'premarketData': {}}, {'gift_num': 40324, 'customEmojiId': '5235720207913216210', 'gift_id': 8340382, 'name': 'Bunny Muffin', 'model': 'Droplet (1.4%)', 'asset': 'TON', 'symbol': 'Ouroboros (0.2%)', 'backdrop': 'French Blue (1%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 6, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-01T20:37:28.000Z', 'premarketData': {}}, {'gift_num': 33407, 'customEmojiId': '5238113032978065893', 'gift_id': 8238150, 'name': 'Witch Hat', 'model': 'Sorting Cat (0.5%)', 'asset': 'TON', 'symbol': 'Dessert (0.2%)', 'backdrop': 'Electric Purple (2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 13, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-09-23T09:29:29.000Z', 'premarketData': {}}, {'gift_num': 47803, 'customEmojiId': '5406595241266407472', 'gift_id': 8315230, 'name': 'Bow Tie', 'model': 'Squid Tie (2.5%)', 'asset': 'TON', 'symbol': 'Flying Dragon (0.5%)', 'backdrop': 'Fire Engine (1.2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 4.5, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-09-29T14:22:57.000Z', 'premarketData': {}}, {'gift_num': 60886, 'customEmojiId': '5240144926171230880', 'gift_id': 5808840, 'name': 'Desk Calendar', 'model': 'Ninety Nine (0.8%)', 'asset': 'TON', 'symbol': 'Lion Head (0.4%)', 'backdrop': 'Pacific Cyan (2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 1.7, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-06-21T09:11:45.000Z', 'premarketData': {}}, {'gift_num': 15550, 'customEmojiId': '5431694686546854699', 'gift_id': 8240597, 'name': 'Signet Ring', 'model': 'Platinum (4%)', 'asset': 'TON', 'symbol': 'Celtic Wolf (0.8%)', 'backdrop': 'Purple (2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 25, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-09-23T12:36:01.000Z', 'premarketData': {}}, {'gift_num': 78122, 'customEmojiId': '5217739232839238401', 'gift_id': 8340087, 'name': 'Jolly Chimp', 'model': 'Artist (3%)', 'asset': 'TON', 'symbol': 'Pith Helmet (0.5%)', 'backdrop': 'Desert Sand (1.5%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 5.95, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-01T19:59:42.000Z', 'premarketData': {}}, {'gift_num': 5913, 'customEmojiId': '5231233294233790940', 'gift_id': 7024086, 'name': 'Voodoo Doll', 'model': 'Bumblebee (2%)', 'asset': 'TON', 'symbol': 'Human Scull (2.4%)', 'backdrop': 'Satin Gold (2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 20.5, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-07-20T09:11:19.000Z', 'premarketData': {}}, {'gift_num': 33960, 'customEmojiId': '5429498283221349891', 'gift_id': 8333781, 'name': 'Evil Eye', 'model': 'Eye Bone (1.5%)', 'asset': 'TON', 'symbol': 'Coffin (2.4%)', 'backdrop': 'Pure Gold (2%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 5, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-10-01T08:08:01.000Z', 'premarketData': {}}, {'gift_num': 26368, 'customEmojiId': '5307993830216200861', 'gift_id': 8216543, 'name': 'Joyful Bundle', 'model': 'Silver (1%)', 'asset': 'TON', 'symbol': 'Lion King (0.2%)', 'backdrop': 'Rifle Green (1%)', 'availabilityIssued': 0, 'availabilityTotal': 0, 'backdropData': {}, 'message_in_channel': 0, 'price': 4.2, 'status': 'forsale', 'limited': False, 'auction': None, 'export_at': '2025-09-21T23:29:55.000Z', 'premarketData': {}}]

    Continue reading...

Compartilhe esta Página