!FDTDciUzgMWGJcYnwn:maunium.net

Mautrix-Telegram Bridge

1659 Members
Discussion about mautrix-telegram | Latest release: v0.11.1 | https://github.com/mautrix/telegram | Bridged to https://t.me/mautrix_telegram459 Servers

Load older messages


SenderMessageTime
27 Jan 2022
@telegram_281492116:maunium.netFabian P. https://github.com/mautrix/telegram/blob/2732a85f9e657baac34af554580ea6aa20959b02/mautrix_telegram/commands/portal/util.py#L64 00:19:20
@telegram_281492116:maunium.netFabian P. But as the room of the event is also incorrect, I guess something is wrong with the evt object in https://github.com/mautrix/telegram/blob/2732a85f9e657baac34af554580ea6aa20959b02/mautrix_telegram/commands/portal/bridge.py#L57 00:20:07
@telegram_281492116:maunium.netFabian P.and therefore the sender00:20:11
@alex:agoradesk.comAlex | LocalMonero | AgoraDeskHello, everyone!00:20:35
@alex:agoradesk.comAlex | LocalMonero | AgoraDesk Is there any way to trigger a backfill from the telegram bridge bot? I've tried !tg backfill 999 but it didn't seem to work. Our room is https://matrix.to/#/#localmonero:agoradesk.com 00:21:14
@alex:agoradesk.comAlex | LocalMonero | AgoraDesk We have a lot of message history, but so far the bot only backfilled around a week's worth. 00:21:56
@tulir:maunium.nettulirbackfilling currently only supports sending messages after the most recently bridged message, so the room has to be empty if you want old messages00:23:21
@tulir:maunium.nettulir
In reply to @telegram_281492116:maunium.net
But as the room of the event is also incorrect, I guess something is wrong with the evt object in https://github.com/mautrix/telegram/blob/2732a85f9e657baac34af554580ea6aa20959b02/mautrix_telegram/commands/portal/bridge.py#L57
the event object can't be incorrect, the room can be if you pass a wrong room id to the command (by default it uses the current room)
00:24:43
@tulir:maunium.nettulirit might also try to check non-existent rooms if you deleted a previous portal room on the synapse side00:26:02
@tulir:maunium.nettuliryou need to be bridge admin (in the config) to bypass the room power level checks00:26:11
@telegram_281492116:maunium.netFabian P.
In reply to @tulir:maunium.net
the event object can't be incorrect, the room can be if you pass a wrong room id to the command (by default it uses the current room)
The current room if I pass none is incorrect
00:26:52
@telegram_281492116:maunium.netFabian P.
In reply to @tulir:maunium.net
you need to be bridge admin (in the config) to bypass the room power level checks
AAAAAAAAAAAAAHHHHHHHHH
00:27:00
@telegram_281492116:maunium.netFabian P.thanks, you just saved me a lot of hassle00:27:06
@telegram_281492116:maunium.netFabian P.(was trying to edit and persist the code in the docker container)00:27:19
@telegram_281492116:maunium.netFabian P.Redacted or Malformed Event00:29:27
@alex:agoradesk.comAlex | LocalMonero | AgoraDesk
In reply to @tulir:maunium.net
backfilling currently only supports sending messages after the most recently bridged message, so the room has to be empty if you want old messages
You're saying we need to create a new room and unbridge the old room and bridge the new room? Because we created that room and bridged it and it didn't backfill 4 years worth of messages.
00:34:27
@telegram_281492116:maunium.netFabian P.
In reply to @alex:agoradesk.com
Is there any way to trigger a backfill from the telegram bridge bot? I've tried !tg backfill 999 but it didn't seem to work. Our room is https://matrix.to/#/#localmonero:agoradesk.com
do you have a backfill limit configured?
00:36:33
@telegram_281492116:maunium.netFabian P. https://github.com/mautrix/telegram/blob/master/mautrix_telegram/example-config.yaml#L289 00:36:42
@telegram_281492116:maunium.netFabian P.
In reply to @tulir:maunium.net
you need to be bridge admin (in the config) to bypass the room power level checks
I can now bridge the room
But when I do not receive messages and when I use !tg config view I get that this room is not a portal, my guess is still on the telegram bot looking at the wrong matrix room
00:51:30
@telegram_281492116:maunium.netFabian P. * I can now bridge the room
But I do not receive messages and when I use
!tg config view
I get that this room is not a portal, my guess is still on the telegram bot looking at the wrong matrix room
00:51:38
@alex:agoradesk.comAlex | LocalMonero | AgoraDesk
In reply to @telegram_281492116:maunium.net
do you have a backfill limit configured?
No, didn't have it configured. If we configure it now and restart the server, will the bot backfill or will we have to unbridge the room and bridge it again?
00:59:22
@telegram_281492116:maunium.netFabian P.
In reply to @alex:agoradesk.com
No, didn't have it configured. If we configure it now and restart the server, will the bot backfill or will we have to unbridge the room and bridge it again?
I'd try recreating personally
01:05:09
@alex:agoradesk.comAlex | LocalMonero | AgoraDesk
In reply to @telegram_281492116:maunium.net
I'd try recreating personally
So, we're interested in changing initial_limit and missed_limit to -1, correct?
01:05:58
@alex:agoradesk.comAlex | LocalMonero | AgoraDesk And what about takeout_limit? What does using a takeout mean? 01:07:06
@telegram_281492116:maunium.netFabian P.
In reply to @alex:agoradesk.com
So, we're interested in changing initial_limit and missed_limit to -1, correct?
I'm currently struggeling with getting the bridge to work myself, that was just a wild guess having read thw config, might need to wait for someone with more insight
01:09:03
@yannick:simianer.xyzYannick joined the room.01:44:24
@alex:agoradesk.comAlex | LocalMonero | AgoraDesk Is it possible to set the backfill config on a per-room basis? I.e. !tg config set backfill.initial_limit -1 01:56:54
@alex:agoradesk.comAlex | LocalMonero | AgoraDesk Tried that, then did !tg sync, didn't work. Also tried !tg backfill 999 didn't work either. 02:12:10
@alex:agoradesk.comAlex | LocalMonero | AgoraDeskSetting it into the default config would put too much strain on the bridge bot. We just want to backfill rooms with messages from our own Telegram groups, we don't want to have the bot backfill the entire history of all the groups our logged in telegram accounts are members of.02:13:16
@alex:agoradesk.comAlex | LocalMonero | AgoraDesk So, what we have is 4 telegram groups with, like, 4 years of chat history. We've created 4 matrix rooms, did !tg bridge to all of them, and what we is to backfill them and them only with all the message history. We've tried !tg backfill, and !tg config set backfill.initial_limit -1 and then !tg sync chats and !tg backfill 999 and nothing works. 02:15:14

There are no newer messages yet.


Back to Room List