diff --git a/mautrix_telegram/user.py b/mautrix_telegram/user.py index 4f92db26..8fc05b15 100644 --- a/mautrix_telegram/user.py +++ b/mautrix_telegram/user.py @@ -174,7 +174,7 @@ class User: if portal and portal.mxid: await portal.update_telegram_participants(update.participants.participants) elif isinstance(update, UpdateChannelPinnedMessage): - portal = po.Portal.get_by_tgid(update.channel_id, peer_type="channel") + portal = po.Portal.get_by_tgid(update.channel_id) if portal and portal.mxid: await portal.update_telegram_pin(self, update.id) elif isinstance(update, (UpdateUserName, UpdateUserPhoto)): diff --git a/setup.py b/setup.py index 533ebd96..9a503413 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,9 @@ import setuptools +import mautrix_telegram setuptools.setup( name="mautrix-telegram", - version="0.1.0", + version=mautrix_telegram.__version__, url="https://github.com/tulir/mautrix-telegram", author="Tulir Asokan",