Code Monkey home page Code Monkey logo

gemini-telegram-bot's Introduction

Gemini Telegram Bot

Feel the era of artificial intelligence
This repository contains the code of a Telegram chatbot built using Nodejs. This chatbot uses Gemini API to send reply to users on Telegram.

Description

This code is a Telegram chatbot built using the Telegraf library in Node.js. This chatbot uses the Gemini API to generate responses to messages sent to it by users. It uses the Telegraf library for Telegram API for generating chat responses. The bot's functionality is based on the generateChatResponse function, which takes user input as an argument and generates a response using the Gemini API. The bot also has a /start or /translate command which greets the user and prompts them to start chatting.

What is a Telegram Bot?

Telegram is a popular instant messaging app that allows users to send messages, photos, videos, and files. Telegram also has a bot API that enables developers to create chatbots for various use cases, including customer service, news, weather, and more. Telegram bots can be integrated into groups and channels, allowing users to interact with them directly. Bots can respond to user messages, send notifications, and perform other automated tasks.

What is Gemini API?

Gemini API is a natural language processing API that generates human-like responses to user input. It uses machine learning models to understand and generate responses to user messages. The Gemini API can be used to create chatbots, virtual assistants, and other conversational interfaces.


Anyone who wants to chat with this bot on telegram, Join in the public group


For Developers

To run this code in your local machine, first you have to clone this repo. Then run below command

docker compose up -d

Authors

sr-tamim's Profilator SharafatKarim's Profilator

This chatbot can only reply to messages in specific groups, as defined in the "allowedGroups" variable and it only responds to user messages that are replies to its own messages. I have restricted this bot in some groups and did not allow it to respond to public messages. This is to prevent spam and abuse of the bot. If you want to use this bot in your own group, you can modify the "allowedGroups" variable in the code to include your group ID.

gemini-telegram-bot's People

Contributors

sr-tamim avatar sharafatkarim avatar

Stargazers

Frank WMM avatar Masudur Rahman avatar  avatar

Watchers

 avatar

Forkers

sharafatkarim

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.