client: add option to disable bridging view-once and disappearing media

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-10-08 13:41:00 -06:00
parent a85659df9d
commit c75ac58763
3 changed files with 55 additions and 15 deletions
+5
View File
@@ -49,6 +49,9 @@ type TelegramConfig struct {
AnimatedSticker media.AnimatedStickerConfig `yaml:"animated_sticker"`
DisableViewOnce bool `yaml:"disable_view_once"`
DisableDisappearing bool `yaml:"disable_disappearing"`
MemberList MemberListConfig `yaml:"member_list"`
MaxMemberCount int `yaml:"max_member_count"`
@@ -89,6 +92,8 @@ func upgradeConfig(helper up.Helper) {
helper.Copy(up.Int, "animated_sticker", "args", "width")
helper.Copy(up.Int, "animated_sticker", "args", "height")
helper.Copy(up.Int, "animated_sticker", "args", "fps")
helper.Copy(up.Bool, "disable_view_once")
helper.Copy(up.Bool, "disable_disappearing")
helper.Copy(up.Int, "member_list", "max_initial_sync")
helper.Copy(up.Bool, "member_list", "sync_broadcast_channels")
helper.Copy(up.Bool, "member_list", "skip_deleted")