V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  firefox12  ›  全部回复第 17 页 / 共 63 页
回复总数  1250
1 ... 13  14  15  16  17  18  19  20  21  22 ... 63  
2020-03-07 14:33:16 +08:00
回复了 summer1989 创建的主题 问与答 如何实现 TG 消息自动发布到网站上
好像并不行, 关键是你的 bot 并不能加入很多别人的群,只有你是管理者才可以。
@outmanone 你现在解决了吗?
我想用自己的账号 把各个 channel 的数据爬下来
关键 你并不能把它加入到 你不是 master 的群里。 我想要一个可以自由加入其他群的 bot 貌似目前不行。
2020-02-29 12:50:04 +08:00
回复了 xkxy 创建的主题 问与答 为什么中国没有类似 stackoverflow 这样的社区平台呢?
csdn 设计的时候 缺乏结果反馈机制,别人答了 你并不知道那个答案有效。stackoverflow 最大的优势 好结果直接用。
其次 社区管理,stackoverflow 的每个答案是在里面的,我只要看结果就知道有哪些结果可选了。csdn 的结果是混杂的
这样有效信息几乎就没有。

从用户角度看 csdn 除了母语以为基本没有优势,产品本身设计的原因 导致基本不可用,搜索能力太弱,也没有标签,所以 技术社区还是需要一些懂技术的人人员维护的。

最后就是 水平上,csdn 还是偏向于入门级别,但是如果运营得好 自然会有人气,可选现在大概没什么人会去看把。
webrtc 基本没有太多实用价值。
基本都是代码问题,比如服务器有 bug, 导致一些数据上传的时候 校验就有问题。代码 bug,保存数据时 自己覆盖了自己某些部分, 其实服务器端也能验证出来,但是它也直接传给你了。

还有就是 bit flip 这个概率其实很低很低,tcp 层发生了 但是逻辑层还有 md5 这样的 按照块 按照文件校验的。
其实 这种错 客户端 服务器端都知道。只是你们不知道。

想一想一款软件, 主要就是 存储 上传 下载, 运维 开发 怎么可能没有 bug, 对运营方来说 某个版本有错 导致某些数据是错的,是再正常不过的,怎么办?慢慢修复呗 等你再上传一次。

其实云存储 最难的 metadata 的存储。不是纯数据, 纯数据校验容易。
2020-01-23 13:28:45 +08:00
回复了 daboq 创建的主题 编程 12306 出票逻辑没那么难吧
代码没问题, 但是就是结果未必是最优解。但是我也觉得可能就没有最优解。现在的规则也不是最优解。

但是业务 不是 O(n)

以 n 4000 个位子 m 30 站为例子, 你每次分票是需要扫描全数组的。
当然可以优化
但是扫描必须全表。

1 你需要扫描每个 n 的每个 m, 得出这个位子能不能出票
比如 有人要买 a-z,
n=0 a...z 都是空的 符合买的条件
n=1 a...m 是空的 但是 l 不是空的,其实是不符合条件

得出一个符合要求的还不行

其次 你还需要做最优解
1, 3, 4, 6 , 7 符合要求,谁是里面最优的?
a...z 是不用考虑的
如果是 m...t 的出票, 出在哪个位子上更好? 上中下铺需求?所以 高速的分票其实比这个复杂。


所以你描述的 O(n) 是不对的。
2020-01-23 12:59:22 +08:00
回复了 firefox12 创建的主题 Telegram telegram bot 好像收不到群组的消息
@MooRider 有什么相关资料可以分享下吗?
2020-01-21 17:31:02 +08:00
回复了 firefox12 创建的主题 Telegram telegram bot 好像收不到群组的消息
Ask Question
Asked 3 years, 8 months ago
Active 1 year, 11 months ago
Viewed 122k times

32


12
I been trying to add a bot to my Telegram group in Android Device but I am not able to do so. I tried @bot_name, /bot_name but it doesn't work. Can anyone tell me is it possible to add a bot to the group or should I create a new bot using Telegram API(not bot API) so I can add the contact number to the group?

bots telegram telegram-bot
shareimprove this question
asked May 20 '16 at 4:45

bazinga
1,08422 gold badges1010 silver badges2525 bronze badges
add a comment
3 Answers
activeoldestvotes

37

Edit: now there is yet an easier way to do this - when creating your group, just mention the full bot name (eg. @UniversalAgent1Bot) and it will list it as you type. Then you can just tap on it to add it.

Old answer:

Create a new group from the menu. Don't add any bots yet
Find the bot (for instance you can go to Contacts and search for it)
Tap to open
Tap the bot name on the top bar. Your page becomes like this: Telegram bot settings
Now, tap the triple ... and you will get the Add to Group button: Adding the bot
Now select your group and add the bot - and confirm the addition
shareimprove this answer
edited Apr 5 '17 at 16:05
answered Oct 21 '16 at 11:39

David Niki
70477 silver badges1111 bronze badges
This was by far the easiest way. But please make those screenshot inline. Thanks. – Benny Bottema Oct 29 '16 at 9:42
add a comment

23

You have to use @BotFather, send it command: /setjoingroups There will be dialog like this:

YOU: /setjoingroups

BotFather: Choose a bot to change group membership settings.

YOU: @YourBot

BotFather: 'Enable' - bot can be added to groups. 'Disable' - block group invitations, the bot can't be added to groups. Current status is: DISABLED

YOU: Enable

BotFather: Success! The new status is: ENABLED.

After this you will see button "Add to Group" in your bot's profile.


这个我已经做过了



看来只能用 telegram 的客户端来做这个事情了。
2020-01-21 17:29:35 +08:00
回复了 firefox12 创建的主题 Telegram telegram bot 好像收不到群组的消息
@blueset

好像 不可以

How to join my Telegram Bot to PUBLIC channel
Ask Question
Asked 2 years, 10 months ago
Active 6 months ago
Viewed 10k times

9


3
My question is: how to join my telegram bot to a telegram public channel that I am not administrator of it, and without asking the channel's admin to add my bot to the channel?

maybe the chatId of channel or thru link of channel?

Thank you in advance :)

edit------ I have heard that some people claim to do this join their bot to channels, and scrape data. So if Telegram does not allow it, how can they do it? can you think of any work around? Appreciate your time?

python telegram telegram-bot python-telegram-bot
shareimprove this question
edited Mar 10 '17 at 4:53
asked Mar 8 '17 at 14:44

Nima
69933 gold badges88 silver badges1313 bronze badges
add a comment
3 Answers
activeoldestvotes

8

Till today, only the Channel Creator can add a bot (as Administrator or Member) to the Channel, whether public or private. Even the other Channel Administrators cannot add a normal member leave alone adding a bot, rather they can only post into the channel. As far as joining the bot via the invite link, there is yet no such method in Bot API to do so. All such claims of adding the bot to a channel by non Creator are false.


所以必须是创建者才可以,简单的想用 bot 做 telegram 的爬虫是不行的。 我尝试加入 channel 都失败了。即使加进去的
也收不到群消息。
2020-01-16 11:44:49 +08:00
回复了 fanrong 创建的主题 新手求助 mysql 是否能支撑亿级用户访问?
这种问题 就是在 YY,不要回答。

我当上国家主席,该让谁做部长,谁做省长?
2020-01-09 13:10:06 +08:00
回复了 Rare0716 创建的主题 分享创造 现在做什么类型网站还能行得通?
挺有意思的,风口过了是一个原因。 过去都是先有线下 然后再把线下搬到线上。 现在这样没搬的行业基本没了,就算搬 你能搬得过 bat ?

个人做 只能做一些大公司没做的东西, 否则 你想想 别人 20 人团队, 你为什么能赢他们?

靠纯技术做这种 基本没有戏了,为什么有什么项目 是你能做的 而不是 bat 里 p8 p9 做不出来的, 别人能做海量数据,你倒可能真做不出来。

所以结论 你只能做一些大公司没做的东西,而不是去硬钢


真正 有可能发起来的 都是无本买卖,靠大家喜欢,解决通点。 抖音为什么火? 因为有大长腿 小姐姐,慢慢的 越来越多。 等 bat 发现的时候 对手已经很强大了。


所以 什么是 大家喜欢的,解决什么痛点? 这很难。已有的痛点解决方案,有大公司看着,想去别人那里抢肉 就太难了。 你也做大长腿小姐姐, 小姐姐为什么不选抖音 而选你的平台呢?

但是我觉得 信息导流还是最有可能突破的,facebook 抖音 都算,理论上没有绝对的壁垒。 微信 淘宝 支付宝 这种就别想了
2020-01-08 11:53:14 +08:00
回复了 Geeker 创建的主题 分享创造 YouTube 观看历史数据分析
@lambdaq 这个可以有
2019-12-31 13:35:21 +08:00
回复了 uxff 创建的主题 程序员 CTO 拒绝 golang,坚持 PHP , v 友怎么看
100*10*1000/8.0/3600
34.72222222222222

100 万订单 放到 8 个小时 qps 也就是 34 , 大 100 呗,现在最弱的 db, 也能支持下来。

这是性能问题吗? 不是。

如果我是 cto, 首先看,原来的架构稳定不稳定,如果不稳定,那是迟早要找出路的, 找什么出路,自己不会 go, 找 go 吗? 还是找 java 吧,成熟 例子多。go 还是差在很多地方,基础框架不如 java 全面,全面监控的方案,全链路监控 有没有。这些都是空白。所以 如果稳 就继续, 或者转 java, go 出局。

其实 cto 应该尝试把项目转到 k8s 上,解决稳定问题。
2019-12-26 13:45:30 +08:00
回复了 BeiTianSoftware 创建的主题 创造者 创业 4 年的苦与甜
真实
会计是什么梗? 冯原来是个会计?
2019-12-20 12:20:04 +08:00
回复了 mengdodo 创建的主题 WebSocket 最近在看 websocket 的聊天室功能,有个小疑问
否则咋整,你要让所有人知道,又不推给所有人,别人怎么知道?写在一个公共队列里,然后让所有人自己来拉?仔细想想这样设计的缺陷在哪里?
1 ... 13  14  15  16  17  18  19  20  21  22 ... 63  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1038 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 54ms · UTC 19:58 · PVG 03:58 · LAX 12:58 · JFK 15:58
Developed with CodeLauncher
♥ Do have faith in what you're doing.