Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

link似乎有问题 #41

Closed
lancer-wang opened this issue Sep 5, 2023 · 4 comments
Closed

link似乎有问题 #41

lancer-wang opened this issue Sep 5, 2023 · 4 comments

Comments

@lancer-wang
Copy link

lancer-wang commented Sep 5, 2023

image

点开查询之后看到这个
然后我去数据库发现记录的link似乎不对
比如https://t.me/c/256***/47*2***
实际link似乎应该为 256*** 改为from_chat 字段的 109256***
最终为https://t.me/c/1091256***/472****
看了几个记录之后,发现中间那个群组id只会保留最后六位

1405404*** 变成了 404***

@lancer-wang
Copy link
Author

image

@Taosky Taosky added the bug Something isn't working label Sep 5, 2023
@Taosky
Copy link
Owner

Taosky commented Sep 5, 2023

这个是导入的历史记录吗?

@Taosky
Copy link
Owner

Taosky commented Sep 5, 2023

是用的userbot模式吗?应该是没有升级到super group。

人数较多的群组应该会自动升级, 手动升级需要将群组类型设置为Public(立即生效, 可再改回Private)

msg_link = 'https://t.me/c/{}/{}'.format(str(chat_id)[4:], event.id) 这行代码去掉了chat id的前4位,因为super group实际的chat id是以-100开头的,而消息的链接没有-100

@Taosky Taosky removed the bug Something isn't working label Sep 5, 2023
@lancer-wang
Copy link
Author

lancer-wang commented Sep 6, 2023

是用的userbot模式吗?应该是没有升级到super group。

人数较多的群组应该会自动升级, 手动升级需要将群组类型设置为Public(立即生效, 可再改回Private)

msg_link = 'https://t.me/c/{}/{}'.format(str(chat_id)[4:], event.id) 这行代码去掉了chat id的前4位,因为super group实际的chat id是以-100开头的,而消息的链接没有-100

现在可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants