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

当频道是私有时,投稿成功后的消息直链是错的 #24

Open
david082321 opened this issue Aug 7, 2024 · 3 comments
Open

Comments

@david082321
Copy link

david082321 commented Aug 7, 2024

程序版本: 2.2.4.11
子版本: source

  1. 频道私有
  2. 投稿成功后点击机器人发送的"消息直链"
  3. 提示找不到这个手机号

机器人发送的链接形式是
t.me/-100{Channel ID}/{Message ID}

正确应该为
t.me/c/{Channel ID}/{Message ID}

即:/-100 替换为 /c/

@david082321
Copy link
Author

david082321 commented Aug 7, 2024

这是已经修好了吗?🤔

public static string GetMessageLink(this Chat chat, long messageId)
{
string link = !string.IsNullOrEmpty(chat.Username) ? $"https://t.me/{chat.Username}/{messageId}" : $"https://t.me/c/{chat.Id}/{messageId}";
return link;
}

@chr233
Copy link
Owner

chr233 commented Aug 8, 2024

应该修好了,不过暂时没有发版的计划,频道方面的功能需要大改

@chr233
Copy link
Owner

chr233 commented Aug 8, 2024

还有比较多的功能没有实现,有计划重构一下投稿功能

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