Giter VIP home page Giter VIP logo

Comments (13)

wyek1n avatar wyek1n commented on August 24, 2024 2

我也有关注大佬宁的推哟

from wechatgpt.

houko avatar houko commented on August 24, 2024 1

@wyek1n 搞定,传白名单的用户名就好了,不需要搞这么麻烦还要去查id
https://github.com/houko/wechatgpt/releases/tag/v2.7.0

from wechatgpt.

houko avatar houko commented on August 24, 2024 1

username是唯一的,username和nickname不是一个东西。

from wechatgpt.

houko avatar houko commented on August 24, 2024 1

另外说个题外话,那个star最高的python写的chatgpt项目的作者最近好像阳了,看到发推了。

from wechatgpt.

houko avatar houko commented on August 24, 2024

refer to #4
谢谢建议,改名的我再考虑一下,我觉得这个名字还不错。
是可以直接用api的,说不能的应该是不会用,事实证明就是可以的。
那个排名第1的涨的有点快,而且我试用了并不好用,所以自己写了一个。

另外关于限定id这个你是打算做什么?有点没太理解,能不能表述的清楚一些。
你是说tg的这个如果是限定了id 就不给回消息吗?

from wechatgpt.

wyek1n avatar wyek1n commented on August 24, 2024

就不给回

同类.env里面的变量是这样的:

TELEGRAM_ID=123456;789987
TELEGRAM_TOKEN=596935...9NVDLjc8b2I

只有tgid为123456和789987的用户使用该bot,即私人用,不公用。

私聊这个机器人获取账号id:
https://t.me/userinfobot

from wechatgpt.

houko avatar houko commented on August 24, 2024

@wyek1n 原来是这个意思啊,安排!!

from wechatgpt.

wyek1n avatar wyek1n commented on August 24, 2024

@wyek1n 搞定,传白名单的用户名就好了,不需要搞这么麻烦还要去查id https://github.com/houko/wechatgpt/releases/tag/v2.7.0

telegram有个小技巧,把用户名设置为空项,可以屏蔽大量广告私聊,如果能搞成id的形式可能更科学,或者存在别人为了用我的bot故意换成和bot主一样的username的可能?(黑脸

image

from wechatgpt.

wyek1n avatar wyek1n commented on August 24, 2024

username是唯一的,username和nickname不是一个东西。

嗯嗯,为了拒绝垃圾私聊,我删除了我的username,这种情况,我就不能让bot确定我的唯一性了,白名单也没法限定我了。

image

from wechatgpt.

houko avatar houko commented on August 24, 2024

用userid的话,还得自己去查,用户体验太差。你这个应该算极小众需求

from wechatgpt.

wyek1n avatar wyek1n commented on August 24, 2024

用userid的话,还得自己去查,用户体验太差。你这个应该算极小众需求

好吧,tg群多了之后,有username真的*扰不断

from wechatgpt.

houko avatar houko commented on August 24, 2024

用userid的话,还得自己去查,用户体验太差。你这个应该算极小众需求

好吧,tg群多了之后,有username真的*扰不断

这个我再想想 实在不行两种都支持也行

from wechatgpt.

wyek1n avatar wyek1n commented on August 24, 2024

id = 空值 + username

得all in呀

大佬小手一挥就写完

from wechatgpt.

Related Issues (20)

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.