Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion crates/openab-core/src/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,10 @@ impl ChatAdapter for GatewayAdapter {
}

fn message_limit(&self) -> usize {
4096 // Telegram limit
match self.platform_name {
"teams" => 28000, // Teams supports ~80 KB; use 28000 chars as safe limit
_ => 4096, // Telegram / generic limit
}
}

async fn send_message(&self, channel: &ChannelRef, content: &str) -> Result<MessageRef> {
Expand Down
Loading