Skip to content

ArmoLab/WorkerAI_Vercel_Telegarm_Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Worker AI Bot

Limits: Check Here

An AI chat bot powered by the Cloudflare Worker AI and running on vercel.

did any one know how to use some telegram bot api node packages on Cloudflare Pages? Need that!

Deploy to Vercel

Deploy with Vercel

Environment Varibles

  1. TELEGRAM_TOKEN (Required): Your Telegram Bot Access Token.

  2. CF_AccountID (Required): Your Cloudflare Account ID, used to access the Cloudflare Worker AI's RESTful API. Check Cloudflare's Docs to get to know how to get it.

  3. CF_Auth (Required): Your Cloudflare Auth Token, Permissions is Worker AI. used to access the Cloudflare Worker AI's RESTful API. Check Cloudflare's Docs to get to know how to get it.

  4. model (Optional): Worker AI Model, by default it is "@cf/meta/llama-2-7b-chat-int8"

  5. USER_ALLOWED (Optional, but set it is better): Telegram User ID who can access to this bot. if it is unset that means ANYONE can get access to this bot. Split it by ,.

  6. ADMIN (Optional): Telegram User ID who can manage(?) this bot, like access some senstive data via this bot directly. Split it by ,.