V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  firefox12  ›  全部回复第 17 页 / 共 63 页
回复总数  1260
1 ... 13  14  15  16  17  18  19  20  21  22 ... 63  
2020-03-26 12:27:56 +08:00
回复了 shareSK 创建的主题 问与答 淘宝到底是怎么精准风控到 PDD 的员工的?
你的随身码把你的脸都抓进去了,你的订单把你的信息都提供了,电话,关系网,你说看你是不是很简单
2020-03-26 12:24:17 +08:00
回复了 gucheen 创建的主题 奇思妙想 宅家无聊猜想,关于加密聊天的取证问题
@nelujah 但是别人知道 欧美佬监控是违法的,可以谴责的,可以骂。 有的地方是合法的。所以你是不是 M ?
2020-03-25 14:34:34 +08:00
回复了 bot2020 创建的主题 程序员 今天淘宝打开提示“内测版本”?
ios 的技术领导凉凉,证明了 这些技术领导脱离代码很久了,只是做人事安排。被埋了炸弹也不知道。但是我相信有源码控制 还是很容易检查出来的。不过侧面证明 要么阿里的代码 review 很烂,要么 这个被开除的人水平很高,瞒过了所有人。居然修复都修复不了,在有源码的前提下,这真的不可想象。
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 都失败了。即使加进去的
也收不到群消息。
1 ... 13  14  15  16  17  18  19  20  21  22 ... 63  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2531 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms · UTC 07:55 · PVG 15:55 · LAX 00:55 · JFK 03:55
Developed with CodeLauncher
♥ Do have faith in what you're doing.