Skip to content

This module is part of a Telegram bot application designed to listen for and process messages containing URLs from Dexscreener. It extracts relevant data and forwards this information via Telegram messages.

License

SokinjoNS/dexscreener-tg-message-listener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dexscreener Telegram Message Listener

The dexscreener_tg_message_listener.py module is part of a Telegram bot application designed to listen for and process messages containing URLs from Dexscreener. It extracts relevant data and forwards is via Telegram messages.

Features

  • URL Parsing: Efficiently identifies and parses Dexscreener URLs in Telegram messages.
  • Data Extraction: Extracts trading pair addresses from the parsed URL and retrieves relevant trading data using the Dexscreener API.
  • Telegram Alerts: Sends formatted alerts to a specified Telegram chat with the extracted data.

Prerequisites

  • Python 3.6 or newer.
  • A Telegram bot token and API credentials (api_id and api_hash).
  • Access to the Dexscreener API for data extraction.
  • The requests library for making HTTP requests to the Dexscreener API.
  • The telethon library for interacting with the Telegram API.

Installation

1. Clone the Repository:

git clone https://your-repository-url.git
cd your-repository-directory

2. Install Dependencies:

This script requires the requests and telethon libraries. Install them using pip:

pip install requests telethon

Configure Your Credentials:

Rename credentials_telegram.json.example to credentials_telegram.json and update it with your Telegram API api_id, api_hash, and bot token, along with any required Dexscreener API keys.

{
  "api_id": "YOUR_API_ID",
  "api_hash": "YOUR_API_HASH",
  "bot_token": "YOUR_BOT_TOKEN",
  "dextools_api_key": "YOUR_DEXTOOLS_API_KEY" // If needed
}

Usage

To utilize this module within your Telegram bot application, ensure it's imported and integrated with your main bot script, typically tg_message_listener_main.py. The main script should handle incoming messages and delegate to this module when a Dexscreener URL is detected.

Contributing

Contributions are welcome! If you have ideas for new features, improvements, or bug fixes, feel free to fork the repository, make your changes, and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.

Support

For issues, questions, or contributions, please open an issue in the GitHub repository.

Feedback and contributions are welcome!

License

This module is released under the MIT License. See the LICENSE file in the repository for full licensing details.

About

This module is part of a Telegram bot application designed to listen for and process messages containing URLs from Dexscreener. It extracts relevant data and forwards this information via Telegram messages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages