Project

General

Profile

Actions

tickets #174151

closed

telegram.service SponsoredMessagesRequest failure

Added by crameleon 3 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
IRC and Matrix
Target version:
-
Start date:
2024-12-11
Due date:
% Done:

0%

Estimated time:

Description

Dec 11 15:34:16 matrix python3.11[504948]:   File "<frozen runpy>", line 88, in _run_code
Dec 11 15:34:16 matrix python3.11[504948]:   File "/usr/lib/python3.11/site-packages/mautrix_telegram/__main__.py", line 25, in <module>
Dec 11 15:34:16 matrix python3.11[504948]:     from .bot import Bot
Dec 11 15:34:16 matrix python3.11[504948]:   File "/usr/lib/python3.11/site-packages/mautrix_telegram/bot.py", line 60, in <module>
Dec 11 15:34:16 matrix python3.11[504948]:     from . import portal as po, puppet as pu, user as u
Dec 11 15:34:16 matrix python3.11[504948]:   File "/usr/lib/python3.11/site-packages/mautrix_telegram/portal.py", line 64, in <module>
Dec 11 15:34:16 matrix python3.11[504948]:     from telethon.tl.functions.channels import (
Dec 11 15:34:16 matrix python3.11[504948]: ImportError: cannot import name 'ViewSponsoredMessageRequest' from 'telethon.tl.functions.channels' (/usr/lib/python3.11/site-packages/telethon/tl/funct
ions/channels.py)
Dec 11 15:34:16 matrix systemd[1]: telegram.service: Main process exited, code=exited, status=1/FAILURE
Dec 11 15:34:16 matrix systemd[1]: telegram.service: Failed with result 'exit-code'.

trying to hack the code and comment out that logic just yields further failures

Dec 11 15:35:35 matrix python3.11[505075]: ImportError: cannot import name 'GetSponsoredMessagesRequest' from 'telethon.tl.functions.channels' (/usr/lib/python3.11/site-packages/telethon/tl/funct
ions/channels.py)
Actions #1

Updated by crameleon 3 months ago

  • Category set to IRC and Matrix
  • Private changed from Yes to No
Actions #2

Updated by crameleon 3 months ago

  • Status changed from New to In Progress
  • Assignee set to crameleon

We received some contributions to o:i:matrix which should solve this.

Actions #3

Updated by crameleon 3 months ago

  • Status changed from In Progress to Resolved

Solved - thank you @Werwolf2517 for sorting the packages!

python-mautrix-telegram: https://build.opensuse.org/requests/1231278
python-mautrix: https://build.opensuse.org/requests/1231196
python-tulir-telethon: https://build.opensuse.org/requests/1230986

Actions

Also available in: Atom PDF