Skip to content

feat: Telegram Group Management#602

Open
zp6 wants to merge 2 commits into
Spectral-Finance:mainfrom
zp6:feature/telegram-group-management-65
Open

feat: Telegram Group Management#602
zp6 wants to merge 2 commits into
Spectral-Finance:mainfrom
zp6:feature/telegram-group-management-65

Conversation

@zp6
Copy link
Copy Markdown

@zp6 zp6 commented May 15, 2026

Telegram Group Management

Closes #65

Implementation Summary

This PR implements comprehensive Telegram group and channel management capabilities including member management, permission control, content moderation, and admin action logging.

Components Added

Member Management (ManageChatMember)

  • Promote/demote admins with granular permission flags
  • Restrict members with configurable permission overrides
  • Ban/unban users with optional message revocation
  • Get member info, admin list, and member count

Chat Settings (ManageChatSettings)

  • Set chat title, description, photo
  • Manage chat permissions
  • Configure slow mode (0-36000 seconds)
  • Create/revoke invite links with expiration and member limits
  • Set sticker sets, toggle forum mode
  • Approve/decline join requests

Content Moderation (ContentModerator)

  • Blocked word filtering (case-insensitive)
  • Regex pattern matching for advanced filtering
  • Link detection and blocking
  • Configurable filter settings per chat
  • Admin action logging to designated channels

Channel Post Management (ManageChannelPosts)

  • Create, edit, and delete channel posts
  • Forward and copy posts between chats
  • Markdown/HTML parse mode support
  • Silent posting and content protection

Testing

  • Comprehensive unit tests for all components
  • Content moderation tests verify blocked word detection, link filtering
  • Input validation tests for all required parameters

Acceptance Criteria

  • Complete group management prisms
  • Permission system implementation
  • Moderation action handlers
  • Admin logging system
  • Documentation and examples
  • Test coverage for all components
  • Performance optimization (direct API calls, minimal overhead)

zp6 added 2 commits May 15, 2026 08:14
Implements comprehensive Hyperliquid perpetual trading integration:

- Perpetual Positions Lens: fetch open positions with PnL data
- Funding Rate Lens: current funding rates for all perp markets
- Leverage Control Prism: set cross/isolated leverage (1-50x)
- Margin Management Prism: add/remove isolated margin
- PnL Tracker Prism: realized/unrealized PnL, funding costs, ROI
- Liquidation Monitor Prism: risk levels, proximity alerts, health factor

Closes Spectral-Finance#82
- Add ManageChatMember prism for member management (promote/demote/restrict/ban/unban/get_info/get_admins/count)
- Add ManageChatSettings prism for group/channel settings (title/description/photo/permissions/slow_mode/invite_links)
- Add ContentModerator prism for content filtering (blocked words, regex patterns, link blocking, spam protection)
- Add ManageChannelPosts prism for channel post management (post/edit/delete/forward/copy)
- Admin action logging with formatted log messages
- Comprehensive unit tests for all components
- Proper error handling and input validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Telegram Group Management ($1,800)

1 participant