https://github.com/ponomarevlad/aiemojibot
🧠AI emoji generator bot
https://github.com/ponomarevlad/aiemojibot
Last synced: 2 months ago
JSON representation
🧠AI emoji generator bot
- Host: GitHub
- URL: https://github.com/ponomarevlad/aiemojibot
- Owner: PonomareVlad
- Created: 2023-04-07T21:14:01.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-25T01:32:53.000Z (over 1 year ago)
- Last Synced: 2025-02-13T07:36:03.204Z (4 months ago)
- Language: JavaScript
- Homepage: https://t.me/AIEmojiBot
- Size: 125 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Telegram Bot Template for [Vercel Edge Functions](https://vercel.com/docs/concepts/functions/edge-functions)
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FPonomareVlad%2FTeleVercelBot%2Ftree%2Fedge&env=TELEGRAM_BOT_TOKEN&envDescription=Telegram%20Bot%20Token%20from%20%40BotFather&project-name=telegram-bot&repo-name=telegram-bot)
> This is an experimental version, we are open to your feedback ✨
### Run locally
#### 1. Install [Vercel CLI](https://vercel.com/docs/cli)
```bash
npm i -g vercel
```#### 2. Install [CloudFlare tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/do-more-with-tunnels/trycloudflare/) (`cloudflared`)
[Download link](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/installation/)
#### 3. Then run local dev server with tunnel
```bash
npm run dev-with-tunnel
```And open link from terminal (ends with `*.trycloudflare.com`) to set WebHook
Now you can make some changes in [src/bot.mjs](src/bot.mjs)
[Documentation for TeleBot](https://github.com/mullwar/telebot)
### Template structure:
- [api/telegram.mjs](api/telegram.mjs) — Endpoint function for WebHooks
- [api/setWebhook.mjs](api/setWebhook.mjs) — Function for setting WebHook URL###### P.S. Don't forget to remove or restrict [api/setWebhook.mjs](api/setWebhook.mjs) function before going to production
Made with 💜 by [Vladislav Ponomarev](https://GitHub.com/PonomareVlad)