Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create tg chats: Portal must be postinit()ed before main_intent can be used #736

Closed
mattroot opened this issue Jan 11, 2022 · 1 comment

Comments

@mattroot
Copy link

When attempting to create a new Telegram chat using !tg create group or !tg create supergroup, the following error is returned:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/mautrix/bridge/commands/handler.py", line 474, in handle
    await self._run_handler(handler, evt)
  File "/usr/lib/python3.9/site-packages/mautrix_telegram/commands/handler.py", line 192, in _run_handler
    return await handler(evt)
  File "/usr/lib/python3.9/site-packages/mautrix/bridge/commands/handler.py", line 323, in __call__
    return await self._handler(evt)
  File "/usr/lib/python3.9/site-packages/mautrix_telegram/commands/portal/create_chat.py", line 68, in create
    invites, errors = await portal.get_telegram_users_in_matrix_room(evt.sender)
  File "/usr/lib/python3.9/site-packages/mautrix_telegram/portal.py", line 440, in get_telegram_users_in_matrix_room
    user_mxids = await self.main_intent.get_room_members(
  File "/usr/lib/python3.9/site-packages/mautrix_telegram/portal.py", line 394, in main_intent
    raise RuntimeError("Portal must be postinit()ed before main_intent can be used")
RuntimeError: Portal must be postinit()ed before main_intent can be used

mautrix-telegram version: master

@JuniorJPDJ
Copy link

JuniorJPDJ commented Jan 11, 2022

I'm having the same issue - just checked

@tulir tulir closed this as completed in 8003b9a Jan 12, 2022
pidongqianqian added a commit to kelaresg/mautrix-telegram that referenced this issue Jan 18, 2022
* master_tulir: (48 commits)
  Fix bug in !tg create. Fixes mautrix#736
  bridge state: use TRANSIENT_DISCONNECT if connection drops and is expected to come back soon
  Very basic support for live location
  Add support for t.me/+code invite links
  Bump version to 0.11.1
  Update some small things
  Make telegram blue text more readable on dark themes. Fixes mautrix#729
  Use min() instead of sorting list
  Update dependencies and fix some things in config updater
  Deduplicate lottieconverter calls in tgs_converter
  Delete nulls in message table. Fixes mautrix#731
  Update changelog
  Don't use parameters for pg_constraint query
  voice messages: bridge from Telegram to native Matrix
  Send message checkpoints for Matrix edits too
  Find constraint names dynamically to work around schemas broken by pgloader
  Add missing await to get_input_entity in HTML parser (mautrix#724)
  Don't redact reactions in chats with relaybot
  Don't alter columns to not null on sqlite
  Fix some things in dedup changes
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants