🧑💻 Developed by Developer
📢 Updates Channel: Private Bots
- This bot generate disposable email addresses and receive messages directly in Telegram!
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 |
- 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:
- Seek into the Deploy your own code section,
- Create a project from your forked repo.
- Select
main.tsas Entrypoint and dont add anything else for now. - Go to the project's
Settingstab 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
Overviewtab 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_URLreplace "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.
- It's simple, In this url
- How to set a webhook?.
-
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
- Get
BOT_TOKENfrom @BotFather - Make a channel and make bot admin in it and put @ChannelUsername in
CHANNEL_USERNAMEenv. - (Optional) Get MongoDB URI from MongoDB Atlas
/start- Show welcome message and message with buttons to generate temp mail./users- Display total users (MongoDB required).
