mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
AnalyzeInviteLink: hacky detection of request_needed/join_request for basic chat links
This commit is contained in:
parent
6cfa2a4da6
commit
dcfd89c2a8
2
.github/dev.yml
vendored
2
.github/dev.yml
vendored
|
|
@ -1,7 +1,7 @@
|
|||
pr: none
|
||||
trigger: [ master ]
|
||||
|
||||
name: 4.1.10-dev.$(Rev:r)
|
||||
name: 4.1.11-dev.$(Rev:r)
|
||||
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
|
|
|
|||
|
|
@ -754,7 +754,8 @@ namespace WTelegram
|
|||
}
|
||||
var rrAbout = ci.about == null ? null : new RestrictionReason[] { new() { text = ci.about } };
|
||||
return !ci.flags.HasFlag(ChatInvite.Flags.channel)
|
||||
? new Chat { title = ci.title, photo = chatPhoto, participants_count = ci.participants_count }
|
||||
? new Chat { title = ci.title, photo = chatPhoto, participants_count = ci.participants_count,
|
||||
flags = ci.flags.HasFlag(ChatInvite.Flags.request_needed) ? (Chat.Flags)Channel.Flags.join_request : 0 }
|
||||
: new Channel { title = ci.title, photo = chatPhoto, participants_count = ci.participants_count,
|
||||
restriction_reason = rrAbout, flags = Channel.Flags.min |
|
||||
(ci.flags.HasFlag(ChatInvite.Flags.broadcast) ? Channel.Flags.broadcast : 0) |
|
||||
|
|
|
|||
Loading…
Reference in a new issue