Skip to content

Private-Bots-Official/Temp-Mail-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 Give it a star 🌟

🧑💻 Developed by Developer
📢 Updates Channel: Private Bots

Deploy


What is this bot for ?

  • This bot generate disposable email addresses and receive messages directly in Telegram!

⚙️ Configuration Variables

Set these environment variables before deployment:

Variable Description Required
BOT_TOKEN Telegram Bot Token from @BotFather Yes
CHANNEL_USERNAME Make bot admin in @YourChannel and put username in env Yes
MONGO_URI MongoDB Connection URL (Optional) No

🚀 Deployment

  • Give a star to this repo 😁.
  • Fork this repo on GitHub.
  • Create an account to https://dash.deno.com.
  • After that click the image below:
    • Click this after forking
  • Seek into the Deploy your own code section,
  • Create a project from your forked repo.
  • Select main.ts as Entrypoint and dont add anything else for now.
  • Go to the project's Settings tab and add the Environment Variables from .env-example file. You can skip adding the optional one.
  • Make any changes in your repo (it can be any change like editing any file as adding " " (space) in a new line.) after adding Environment Variables as committing it.
  • Grab the deployment URL from the Overview tab and set the webhook (mentioned below).
    • How to set a webhook?.
      • It's simple, In this url https://api.telegram.org/botBOT_TOKEN/setWebhook?url=DEPLOYMENT_URL replace "BOT_TOKEN" with your bot's token and replace DEPLOYMENT_URL with deno deployed (domain) url, and open that edited url in your browser. Once you see "Webhook was set", Go to your bot, it must be running.

Deployment Url

  • Once you set your Enviroment Variables and made any commit in your forked repo, you will see your deployment url in the project as:

  • MUST: ADD "https://" BEFORE THE URL


📋 Environment Setup

  1. Get BOT_TOKEN from @BotFather
  2. Make a channel and make bot admin in it and put @ChannelUsername in CHANNEL_USERNAME env.
  3. (Optional) Get MongoDB URI from MongoDB Atlas

🛠️ Commands

  • /start - Show welcome message and message with buttons to generate temp mail.
  • /users - Display total users (MongoDB required).

📞 Contact

Developer
Channel

Buy Me A Coffee

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published