Skip to content

A fun and experimental Telegram bot built using Deno, powered by Duck.ai

License

Notifications You must be signed in to change notification settings

radyakaze/teleduckai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeleDuckAI

TeleDuckAI is a Telegram bot powered by Duck.ai, built using Deno. This project was created purely for fun and as a way to experiment in my free time.

Features

  • Integration with Duck.ai
  • Built with Deno
  • Fast and intelligent responses via Telegram chat
  • Supports webhook mode

Demo

You can check out the demo at @perabot on Telegram.

Requirements

  • Latest version of Deno
  • A Telegram account and bot token (obtainable via BotFather)

Installation

  1. Clone this repository:

    git clone https://github.com/radyakaze/teleduckai.git
    cd teleduckai
  2. Set up your environment variables by creating a .env file and adding your Telegram bot token:

    TELEGRAM_BOT_TOKEN=your_telegram_bot_token
  3. Run the project:

    deno task start

Webhook Mode

To simplify the webhook setup, use this script to configure your webhook:

curl "https://api.telegram.org/${BOT_TOKEN}/setWebhook?url=${YOUR_SITE}/${BOT_TOKEN}&allowed_updates[]=message&allowed_updates[]=callback_query&drop_pending_updates=true"

Replace ${BOT_TOKEN} with your actual Telegram bot token and ${YOUR_SITE} with your server URL. This script will set the webhook to receive only messages and callback queries, while also dropping any pending updates.

Deno Deploy offers serverless functions, which can be used to handle the webhook for your bot. You can deploy your bot as a serverless function and use the provided URL for your webhook setup.

Contribution

We welcome contributions via pull requests. Please open an issue first for any discussion about features or fixes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Why This Project?

This project was built just for fun during free time, as a playful way to experiment with AI and bot development.

About

A fun and experimental Telegram bot built using Deno, powered by Duck.ai

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published