GithubHelp home page GithubHelp logo

itziklavi1 / mail_sender_telegram_bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7 MB

This is a Telegram bot script that allows users to send files via email. Users can interact with the bot to provide their email address and upload files, which will then be sent as email attachments.

Dockerfile 3.27% Python 96.73%

mail_sender_telegram_bot's Introduction

Telegram Email Sender Bot

This is a Telegram bot script that allows users to send files via email. Users can interact with the bot to provide their email address and upload files, which will then be sent as email attachments.

Features

  • Provides a simple interface for users to enter their email address and send files.
  • Validates email addresses to ensure proper formatting.
  • Downloads files from Telegram and sends them as attachments via email.

Getting Started

To use this bot, you need to follow these steps:

  1. Clone this repository to your local machine.
  2. Install the required dependencies by running pip install -r requirements.txt.
  3. Set up your Telegram bot token and email credentials in the main.py script.
  4. Run the bot by executing python main.py.
  5. Start interacting with the bot in your Telegram chat.

Usage

  1. Start the bot by sending the /start command.
  2. Follow the prompts to enter your email address and upload a file.
  3. The bot will send the uploaded file to the provided email address as an attachment.

Docker Support

You can also run this bot using Docker. Follow these steps:

  1. Build the Docker image using the provided Dockerfile: docker build -t telegram-email-bot .
  2. Run the Docker container: docker run -d --name telegram-bot telegram-email-bot

Tests

The tests.py script contains several test functions to ensure the proper functionality of the bot. These tests cover various scenarios, including:

  • Sending an email with a valid file.
  • Handling incorrect file names.
  • Handling malformed email addresses.

Files

  • tests.py: Contains test functions to verify the functionality of the bot.
  • test_tool.py: Provides utility functions and classes for testing the bot using Selenium WebDriver.

Prerequisites

  • Python 3.x
  • Selenium WebDriver
  • Chrome WebDriver
  • Telegram account

mail_sender_telegram_bot's People

Contributors

itzikorc avatar itziklavi1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.