Giter Site home page Giter Site logo

yym68686 / chatgpt-telegram-bot Goto Github PK

View Code? Open in Web Editor NEW
383.0 7.0 124.0 500 KB

🤖️ an AI chat Telegram bot can Web Search Powered by GPT, Claude2.1/3, Gemini and Groq using Python on Zeabur, fly.io and Replit.

Home Page: https://chat-gpt-telegram-bot-tan.vercel.app

License: GNU General Public License v3.0

Dockerfile 0.01% Python 99.92% Shell 0.07%
chatgpt docker fly-io python-telegram-bot telegram-bot replit replit-bot zeabur agent langchain

chatgpt-telegram-bot's Introduction

Hi there 👋

  • 📖 A minimalist.
  • 🔭 Code is law.

chatgpt-telegram-bot's People

Contributors

anonysoul avatar galaxyapi avatar iamcristye avatar lystv avatar yuerbujin avatar yym68686 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

chatgpt-telegram-bot's Issues

Feature req: Please integrate apipie.ai

Users want access to as much AI as they can get, they dont want to manage 50 accounts, they want the fastest AI they want the cheapest AI, and you can provide all of that for them with this update.

in addition to or in place of integrating with any aggregators - Please integrate APIpie so devs can access them all from one place/subscription and plus it also provides:

-The most affordable, reliable and fastest AI available
-One API to access ~500 Models and growing
-Language, embedding, voice, image, vision and more
-Global AI load balancing, route queries based on price or latency
-Redundancy for major models providing the greatest up time possible
-Global reporting of AI availability, pricing and performance

Its the same API format as openai, just change the domain name and your API key and enjoy a plethora of models without changing any of your code other than how you handle the models list.

This is a win win for everyone, any new AI's from any providers will be automatically integrated into your stack with this one integration. Not to mention all the other advantages.

docker compose 报错

image

version: "3.5"
services:
  chatgptbot:
    container_name: chatgptbot
    image: yym68686/chatgpt:1.0
    environment:
      # telegram
      # - NICK=
      - BOT_TOKEN=554脱密03:AAFwdPKw脱密plCbE1PeGuQ
      - WEB_HOOK=https://chatgpt.脱密.work/
      # openai session
      # - session_token=
      - email=[脱密]
      - password=[脱密]
    ports:
      - 20080:8080

Feature Request: Add some custom configurations to make this project suitable as a public open Bot.

Hello to the developer of the project, thank you for developing this practical project, it works great, and I would like to deploy a public ChatBot through this project. However, I find that this project is not yet suitable for a public Bot.

Here are some suggestions for this project, and I hope they will be considered ⭐️:

  1. It would be beneficial to have the bot specify an administrator whitelist (ADMIN_LIST: string). If this is configured, only specific UIDs are allowed to operate the bot's settings, preventing arbitrary changes to the configuration of a public bot.

  2. Introduce an optional global SystemPrompt parameter (PROMPT_INJECT: string), which can be injected with each GPT request, thereby enabling the configuration of custom presets for the bot.

  3. Implement an option to prohibit non-administrators interact with Bot from private messaging (NO_DM: boolean). If this option is set, non-administrators would not be able to interact with the Bot via private messages, and a standard DEFAULT_DM_RESPONSE would be returned. This is to prevent a public Bot from being overwhelmed by private messages.

  4. Add a group whitelist option (AUTHORISED_GROUPS: string): If set, the bot would only respond in specified group IDs. Reference: Stack Overflow question on Telegram bot group chat IDs.

  5. Allow customization of the text returned by the Bot during its first private message interaction (DEFAULT_DM_RESPONSE: string).

  6. NICK option may not suitable for a group chat(I think it's not very convenient to trigger.), Allowing the use of the /ask command to trigger the Bot's GPT response feature might be a good idea.

  7. Introduce a maximum context length option (MAX_CONTEXT_LENGTH: integer) that becomes effective when the Bot's history recording feature is enabled. This way, only context strings of a limited length will be sent to GPT, saving costs and preventing unnecessary wastage."


项目的开发者您好,感谢您开发这个实用的项目,它非常棒。我希望能通过这个项目部署一个公开的聊天机器人以便让它在特定的TG群组工作,但是我发现这个项目目前还不适合作为一个公开的机器人。

以下是我对这个项目的一些建议,望采纳⭐️:

  1. 可以给机器人指定一个管理员白名单(ADMIN_LIST: string),如果此项被配置,那么只允许特定的UID操作机器人的配置,防止任何人随意更改公开机器人的配置。

  2. 引入一个可选的全局SystemPrompt参数(PROMPT_INJECT: string),可以在每次GPT请求请求发送时注入,从而配置自定义的机器人预设。

  3. 实现一个选项来禁止非管理员与机器人私聊(NO_DM: boolean)。如果设置了这个选项,非管理员将无法通过私聊与机器人互动,并直接返回的DEFAULT_DM_RESPONSE。防止公开的机器人被未授权的私聊信息刷爆。

  4. 添加一个群组白名单选项(AUTHORISED_GROUPS: string):如果配置此项,机器人将只会在指定的群组ID中响应。功能实现参考信息:Stack Overflow关于Telegram机器人群聊ID的问题

  5. 允许自定义机器人在私聊时返回的文本(DEFAULT_DM_RESPONSE: string)。

  6. NICK选项或许在群聊场景中不太实用(因为我认为它触发起来不太方便),允许使用 /ask 命令来主动触发Bot的GPT回复功能或许是一个好主意。

  7. 添加一个最大上下文长度选项(MAX_CONTEXT_LENGTH: integer),当Bot的历史记录功能被打开时生效,这样只有限制长度的上下文字符串会被发送到GPT,这样可以节省成本并防止不必要的浪费。

多人用同一个BOT,提问都在同一个chat里!!!

多人用同一个BOT,提问都在同一个chat里。如果是同时提问的话,也只能回答到先提出的一边。
但我同时使用网页版就可以跟TG不在同一个chat,不冲突。
有没有办法解决或者多个BOT绑定一个GPT??避免多人在同一个chat.

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.