pylakey/aiotdlib

Aiotdlib 0.22.0 is incompatible with tdlib(on commit 958fed) in README

Closed this issue · 1 comments

I tried compiling the TDLib mentioned in the readme, but after successfully compiling it, running the demo threw a Pydantic validation error. Two of the validation errors was:

ERROR:Client:Unable to parse incoming update: {'@type': 'updateScopeNotificationSettings', 'scope': {'@type': 'notificationSettingsScopeChannelChats'}, 'notification_settings': {'@type': 'scopeNotificationSettings', 'mute_for': 0, 'sound_id': '-1', 'show_preview': True, 'disable_pinned_message_notifications': False, 'disable_mention_notifications': False}}! 2 validation errors for ScopeNotificationSettings
use_default_mute_stories
  field required (type=value_error.missing)
story_sound_id
  field required (type=value_error.missing)
1 validation error for User
is_close_friend
  field required (type=value_error.missing)

I checked the output user information, and indeed, there was no 'is_close_friend' field.

Environments:

Python 3.11.7

Package           Version
----------------- -------
aiotdlib          0.22.0
pip               23.2.1
pydantic          1.10.14
setuptools        65.5.0
sortedcontainers  2.4.0
typing_extensions 4.9.0
ujson             5.9.0

tdlib:

$ tree tdlib/lib
tdlib/lib
├── cmake
│   └── Td
│       ├── TdConfig.cmake
│       ├── TdConfigVersion.cmake
│       ├── TdTargets.cmake
│       └── TdTargets-release.cmake
├── libtdactor.a
├── libtdapi.a
├── libtdclient.a
├── libtdcore.a
├── libtddb.a
├── libtdjson_private.a
├── libtdjson.so -> libtdjson.so.1.8.14
├── libtdjson.so.1.8.14
├── libtdjson_static.a
├── libtdnet.a
├── libtdsqlite.a
├── libtdutils.a
└── pkgconfig
    ├── tdactor.pc
    ├── tdapi.pc
    ├── tdclient.pc
    ├── tdcore.pc
    ├── tddb.pc
    ├── tdjson.pc
    ├── tdjson_private.pc
    ├── tdjson_static.pc
    ├── tdnet.pc
    ├── tdsqlite.pc
    └── tdutils.pc

3 directories, 27 files
$ git status
HEAD detached at 958fed6e8
nothing to commit, working tree clean

Outputs of neofetch:

       _,met$$$$$gg.          root@9x2dCAEBwPXtOPRF
    ,g$$$$$$$$$$$$$$$P.       ---------------------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 11 (bullseye) x86_64
 ,$$P'              `$$$.     Host: OpenStack Compute 17.0.3-1.el7
',$$P       ,ggs.     `$$b:   Kernel: 5.10.0-26-amd64
`d$$'     ,$P"'   .    $$$    Uptime: 49 days, 13 hours, 58 mins
 $$P      d$'     ,    $$P    Packages: 576 (dpkg)
 $$:      $$.   -    ,d$$'    Shell: zsh 5.8
 $$;      Y$b._   _,d$P'      Resolution: 1024x768
 Y$$.    `.`"Y$$$$P"'         Terminal: /dev/pts/1
 `$$b      "-.__              CPU: Intel Xeon (Skylake, IBRS) (4) @ 2.294GHz
  `Y$$                        GPU: 00:02.0 Cirrus Logic GD 5446
   `Y$$.                      Memory: 1567MiB / 7688MiB
     `$$b.
       `Y$$b.
          `"Y$b._
              `"""

Outdated, 0.23.1 is the lates version at the moment.

Binaries and python code at the current main branch state are synchronised