V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  firefox12  ›  全部回复第 17 页 / 共 63 页
回复总数  1257
1 ... 13  14  15  16  17  18  19  20  21  22 ... 63  
2020-03-25 14:23:56 +08:00
回复了 bot2020 创建的主题 程序员 今天淘宝打开提示“内测版本”?
证明了 被开的人比 留下的牛逼
2020-03-25 13:01:40 +08:00
回复了 wework 创建的主题 程序员 你认为你的 PHP 技术可以抢到一个有价值的域名吗?
域名以后会越来越没用, 你打开 app 你关心过域名?
2020-03-17 12:50:42 +08:00
回复了 firefox12 创建的主题 Telegram telegram bot 好像收不到群组的消息
@v66ex 我看看
2020-03-13 12:41:09 +08:00
回复了 yaozeyuan93 创建的主题 分享创造 写了一个微博导出工具
很棒 能导出 我关注的某个人发的所有微博吗?
2020-03-11 20:49:32 +08:00
回复了 oldmanong 创建的主题 问与答 讨论一下,代码不写注释,算不算对自己的一种保护?
你的代码很难读 意味着 取代你的成本很高。资产方会考虑替换你的成本。你的代码很好读,很好理解,那么意味着换你的成本很低。

说直接换掉的,我只能说 呵呵。
2020-03-08 13:05:39 +08:00
回复了 onfuns 创建的主题 程序员 有没有程序员转行单干做电商的,收益能比得过工资吗?
码农就相当于 有了一个全身心投入的前端 后端 数据库 小程序。大概就是每个月省了几万块。其他方面没什么优势。

说白了电商是个中间商,厂商也不差这点钱,关键是怎么推广。现在电商技术已经没什么门槛了。难的是怎么把东西卖出去。想一想 做一个阿里一样功能的网站 技术难度在那里?但是拥有阿里网站的流量有多难。
2020-03-07 14:47:49 +08:00
回复了 Jinnrry 创建的主题 问与答 一个高并发架构问题,求指点
就是不会用事务,才会有这种问题。以现在 db 的速度,什么性能问题,不存在的。
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 这个可以有
1 ... 13  14  15  16  17  18  19  20  21  22 ... 63  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   913 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 46ms · UTC 22:02 · PVG 06:02 · LAX 15:02 · JFK 18:02
Developed with CodeLauncher
♥ Do have faith in what you're doing.