Skip to content

TelegramQueryIDFetcher is a powerful and easy-to-use tool for retrieving query_id from Telegram bots. This project uses the Pyrogram library to interact with the Telegram API and obtains the required data through WebView requests.

Notifications You must be signed in to change notification settings

SaulGoodManC99/TelegramQueryIDFetcher

Repository files navigation

TelegramQueryIDFetcher

TelegramQueryIDFetcher License Python

TelegramQueryIDFetcher is a powerful and easy-to-use tool for retrieving query_id from Telegram bots. This project uses the Pyrogram library to interact with the Telegram API and obtains the required data through WebView requests.

Telegram Channel Telegram Group

English | 中文 | Русский

🌟 Features

  • 🚀 Create and manage Telegram sessions
  • 🔍 Retrieve query_id from specified Telegram bots
  • 💾 Save retrieved query_id to files
  • 🤖 Support for multiple bots and multiple sessions
  • 🌐 Proxy support for enhanced accessibility

📋 Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.7+

📦 Installation

  1. Clone the repository:

    git clone https://github.com/YourUsername/TelegramQueryIDFetcher.git
    cd TelegramQueryIDFetcher
  2. Install dependencies:

    pip install -r requirements.txt
  3. Set up your configuration:

    cp .env-example .env

⚙️ Configuration

  1. Obtain API_ID and API_HASH from my.telegram.org
  2. Or reply with "API" in our Telegram group for public API credentials
  3. Edit the .env file and fill in your API_ID and API_HASH

🚀 Usage

  1. Run the script:

    python auto_get_token.py

    For proxy support:

    python auto_get_token_proxy.py
  2. Choose the appropriate action:

    • Create a session: Enter your phone number and session name
    • Use existing sessions: Copy session files from other scripts' sessions folder to this script's sessions folder
    • Select a bot to retrieve query_id: Choose a bot and batch retrieve query_ids
  3. Automatic query_id saving:

    • All query_ids are automatically saved: in botusername_token.txt files

🌐 Proxy Support

When using auto_get_token_proxy.py, the script will use proxies from the proxy.txt file. If the number of proxies is less than the number of sessions, proxies will be reused.

About

TelegramQueryIDFetcher is a powerful and easy-to-use tool for retrieving query_id from Telegram bots. This project uses the Pyrogram library to interact with the Telegram API and obtains the required data through WebView requests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages