Skip to content

A Node.js Telegram bot for collecting user data and logging it into a CSV file. Easily interact with users to gather and organize data submissions via Telegram messaging. Ideal for straightforward data collection tasks.

License

Notifications You must be signed in to change notification settings

mesamirh/TelegramDataCollectorBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Data Collector Bot

Telegram Data Collector Bot is a Node.js-based Telegram bot that facilitates the collection of user-submitted data and logs it into a CSV file. It provides a simple and efficient way to interact with users via Telegram, enabling them to submit data entries which are then securely stored in a structured format.

Features

  • Data Collection: Collects user-submitted data via Telegram messages.
  • CSV Logging: Logs submitted data into a CSV file for easy management.
  • Interactive Messaging: Engages users with interactive prompts for seamless data submission.
  • Error Handling: Ensures robustness with error handling for data submission and logging processes.

Installation

To run the bot locally, follow these steps:

  1. Clone the repository: git clone https://github.com/mesamirh/TelegramDataCollectorBot.git
  2. Install dependencies: npm install
  3. Set your Telegram bot token in the script (botToken variable).
  4. Start the bot: node script.js

Usage

  1. Start the bot by sending /start in your Telegram chat.
  2. Follow the bot's instructions to submit data.
  3. Data submissions will be logged into all_user_data.csv.

Configuration

  • Ensure Node.js and npm are installed.
  • Replace botToken with your actual Telegram bot token in index.js.

Contributing

Contributions are welcome! Fork the repository and submit a pull request with your enhancements.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A Node.js Telegram bot for collecting user data and logging it into a CSV file. Easily interact with users to gather and organize data submissions via Telegram messaging. Ideal for straightforward data collection tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published