Move version to single place and remove unnecessary peer_type in update handler
This commit is contained in:
@@ -167,7 +167,7 @@ class User:
|
|||||||
if portal and portal.mxid:
|
if portal and portal.mxid:
|
||||||
portal.update_telegram_participants(update.participants.participants)
|
portal.update_telegram_participants(update.participants.participants)
|
||||||
elif isinstance(update, UpdateChannelPinnedMessage):
|
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:
|
if portal and portal.mxid:
|
||||||
portal.update_telegram_pin(self, update.id)
|
portal.update_telegram_pin(self, update.id)
|
||||||
elif isinstance(update, (UpdateUserName, UpdateUserPhoto)):
|
elif isinstance(update, (UpdateUserName, UpdateUserPhoto)):
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import setuptools
|
import setuptools
|
||||||
|
import mautrix_telegram
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="mautrix-telegram",
|
name="mautrix-telegram",
|
||||||
version="0.1.0",
|
version=mautrix_telegram.__version__,
|
||||||
url="https://github.com/tulir/mautrix-telegram",
|
url="https://github.com/tulir/mautrix-telegram",
|
||||||
|
|
||||||
author="Tulir Asokan",
|
author="Tulir Asokan",
|
||||||
|
|||||||
Reference in New Issue
Block a user