Forever Meme
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Inline Top Degen Trending Bot The EVM Degen Trending Bot [EDTB] is a Telegram bot that provides real-time updates on the top trending tokens on the Ethereum network. The bot is designed for use in group chats and channels and can handle multiple groups or channels. To use the bot, an admin must first add the bot to the group or channel. Once the bot is added, the admin can click on the /start command to initiate the bot. The bot will then automatically post a message in the group with the details of the top trending tokens on the Ethereum network. The message will be updated in real-time based on the latest data in the bot's database. We have a dedicated bot for each EVM network that is designed to only display information on tokens that satisfy the predefined criteria for that particular network. Therefore, the bot will exclusively provide information on tokens that meet the specified requirements for the specific network it is assigned to. The message will contain the following details for each token: - Token Name (with a direct link to Dexscreener) - Liquidity - Volume - ROI - FDV (Marketcap) The user can pin the message if they want to. The message will also include a link to Dexscreener for each token, allowing users to access more detailed information on the token. Sample Message | # | Token | Liquidity | Volume | ROI | FDV | | --- | ----------------- | --------- | ----------| ------ | -------- | | 1 | Dog Face | 1,249 | $1.0M | 6,754% | $14.3M | | 2 | DNAI | 733 | $308K | 3,891% | $10.4M | | 3 | Momo Face | 663 | $145K | 355% | $3.3M | | 4 | Tetsuya Inu | 614 | $120K | 626% | $2.2M | | 5 | BAIB | 576 | $136K | 1,684% | $8.0M | | 6 | Amogus | 568 | $374K | 1,440% | $10.4M | | 7 | KEK AI | 420 | $151K | 660% | $37.4M | | 8 | The Final Chapter | 411 | $289K | 30.34% | $4.4M | | 9 | CleverBot | 377 | $111K | 282% | $8.1M | | 10 | Decentracat | 292 | $108K | 25.13% | $4.7M | | 11 | BILL | 270 | $177K | 1,033% | $2.2M | ## Backend ### Tools Required - **Python:** This is the primary programming language used to build the bot and backend functionality. - **Dexscreener API:** This is the API used to pull data on Ethereum pairs that meet the filter criteria specified. - **Requests Library:** This Python library is used to make HTTP requests to the Dexscreener API and retrieve the JSON data. - **Database Management System:** A database management system (DBMS) is needed to store the data retrieved from the Dexscreener API. This can be a relational database management system (such as MySQL, PostgreSQL, or Oracle) or a NoSQL database (such as MongoDB or Cassandra). - **Python Database Libraries:** A Python library that allows the script to connect and manipulate the database. This includes libraries such as SQLAlchemy, PyMySQL, or pymongo. - **Telegram Bot API:** This API is used to send messages to the Telegram group or channel. - **Python Telegram Bot Library:** This is a Python wrapper for the Telegram Bot API that simplifies the process of sending messages to Telegram. - **Cron Job Scheduler:** A cron job scheduler is used to run the Python script periodically to retrieve the latest data from the Dexscreener API and update the Telegram message. ### Workflow 1. **Python script pulls data from Dexscreener API:** - The script uses the Python requests library to make a GET request to the Dexscreener API endpoint. - The request includes query parameters that filter the results by Ethereum pairs with the specified criteria (24-hour volume, number of transactions, FDV, etc.). - The response from the API is in JSON format, containing data for each Ethereum pair that meets the filter criteria. 2. **Python script extracts relevant data from API response:** - The script parses the JSON response from the API and extracts the relevant data for each pair, such as the pair's name, liquidity, volume, ROI, and market cap. - The extracted data is organized into a Python dictionary or other data structure that can be easily stored in a database. 3. **Python script stores data in a database:** - The script uses a Python database library (such as SQLAlchemy or PyMySQL) to connect to a database server. - The extracted data is then inserted into a table in the database, with each row representing one Ethereum pair that meets the filter criteria. 4. **Python script sends message to Telegram group or channel:** - The script uses the Python Telegram Bot API library to send a message to the specified Telegram group or channel. - The message includes the latest data for the top trending tokens based on the filter criteria, as well as links to Dexscreener for each pair. 5. **Cron job periodically triggers the Python script:** - The Python script is run periodically (using a cron job) to ensure that the latest data is always available in the database and the Telegram message is always up to date. - The interval for the cron job can be adjusted depending on how often you want the data to be updated and how frequently the Dexscreener API data is refreshed. ## This is an example of someone who has an inline bot that features a single message which updates itself automatically. ![](https://i.imgur.com/uyn5bSl.png) https://t.me/callbombeth

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully