telegram 1.0.0
telegram: ^1.0.0 copied to clipboard
A comprehensive Telegram utility for Flutter with URL schemes, Bot API integration, media sharing, chat management, and Web App support.
1.0.0 - Major Release 🚀 #
Added #
- Modular Architecture: Refactored codebase into focused modules for better maintainability
url_schemes.dart
- Client-side URL scheme methodsmessaging.dart
- Bot API messaging functionalitymedia.dart
- Media handling for all file typeschat.dart
- Chat management and informationmembers.dart
- Member management and moderationbot_config.dart
- Bot configuration and commandswebhook.dart
- Webhook management for real-time updates
Improved #
- Code Organization: Clean separation of concerns with modular structure
- Maintainability: Each module focuses on specific functionality
- Import Flexibility: Option to import specific modules or use unified interface
- Documentation: Updated with modular architecture information
- Developer Experience: Better code navigation and understanding
Technical Details #
- All existing APIs remain unchanged and fully backward compatible
- Main
Telegram
class provides unified interface to all modules - Individual modules can be imported for targeted functionality
- Comprehensive test coverage maintained across all modules
- Example app updated to demonstrate all features
Added #
- Complete Telegram Bot API Integration: Full support for Bot API with comprehensive methods
- Media Messaging: Support for sending photos, videos, audio, documents, animations, voice messages, and video notes
- Rich Content: Added support for stickers, contact sharing, venue sharing, location sharing
- Interactive Features: Poll creation, dice games, callback query handling
- Chat Management: Complete chat administration features including member management, permissions, invite links
- Message Management: Edit, delete, pin/unpin messages with full control
- Bot Configuration: Set bot descriptions, commands, and manage bot profile
- Webhook Support: Full webhook integration for real-time message handling
- Advanced URL Schemes: Support for Web Apps, sticker sets, themes, and sharing URLs
- File Upload Support: Handle file uploads for media messages
- Comprehensive Error Handling: Detailed error responses and validation
Bot API Methods Added #
getMe()
- Get bot informationsendMessage()
- Send text messages with formattingforwardMessage()
- Forward messages between chatssendPhoto()
- Send photo messages with captionssendAudio()
- Send audio files with metadatasendDocument()
- Send document filessendVideo()
- Send video files with previewsendVoice()
- Send voice messagessendVideoNote()
- Send circular video messagessendAnimation()
- Send GIF animationssendSticker()
- Send sticker messagessendContact()
- Share contact informationsendVenue()
- Share venue/location detailssendLocation()
- Share location coordinatessendPoll()
- Create polls and quizzessendDice()
- Send dice roll animationseditMessageText()
- Edit existing text messagesdeleteMessage()
- Delete messagesanswerCallbackQuery()
- Respond to inline keyboard presses
Chat Management Methods Added #
getChat()
- Get chat informationgetChatMember()
- Get member informationgetChatMemberCount()
- Count chat membersbanChatMember()
- Ban users from chatunbanChatMember()
- Unban usersrestrictChatMember()
- Restrict user permissionspromoteChatMember()
- Promote users to adminsetChatAdministratorCustomTitle()
- Set custom admin titlessetChatTitle()
- Change chat titlesetChatDescription()
- Set chat descriptionsetChatPhoto()
- Set chat profile photodeleteChatPhoto()
- Remove chat photosetChatStickerSet()
- Set chat sticker setdeleteChatStickerSet()
- Remove chat sticker setpinChatMessage()
- Pin messagesunpinChatMessage()
- Unpin messagesunpinAllChatMessages()
- Unpin all messagesleaveChat()
- Leave a chat
Invite Link Management #
exportChatInviteLink()
- Export primary invite linkcreateChatInviteLink()
- Create custom invite linkseditChatInviteLink()
- Modify invite link settingsrevokeChatInviteLink()
- Revoke invite links
Bot Configuration #
setMyCommands()
- Set bot command menugetMyCommands()
- Get current bot commandssetMyDescription()
- Set bot descriptiongetMyDescription()
- Get bot descriptionsetMyShortDescription()
- Set short descriptiongetMyShortDescription()
- Get short description
Webhook Integration #
setWebhook()
- Configure webhook URLdeleteWebhook()
- Remove webhookgetWebhookInfo()
- Get webhook statusgetUpdates()
- Poll for updates (alternative to webhook)
Enhanced URL Scheme Methods #
openWebApp()
- Launch Telegram Web AppsopenStickerSet()
- Open sticker set installationopenTheme()
- Open theme installationgenerateShareUrl()
- Generate content sharing URLscreateInlineKeyboardUrl()
- Create inline button URLs
Improved #
- Better Error Handling: More descriptive error messages and validation
- Enhanced Documentation: Comprehensive inline documentation with examples
- Type Safety: Better parameter validation and type checking
- Example Application: Complete demo showcasing all features
- Performance: Optimized API request handling
Breaking Changes #
- Minimum Flutter SDK requirement updated
- Some method signatures updated for consistency
- Enhanced parameter validation may reject previously accepted invalid inputs
Documentation #
- Updated README with comprehensive API reference
- Added detailed examples for all Bot API methods
- Improved getting started guide
- Added troubleshooting section
🎉 NEW: Official Telegram Bot API Integration #
- Complete Bot API Support: Full integration with Telegram Bot API
- Bot Token Management: Secure bot token handling with
setBotToken()
- Bot Information: Get bot details with
getMe()
- Advanced Messaging: Send text, media, and formatted messages via Bot API
📨 Enhanced Messaging Features #
- Rich Text Support: HTML, Markdown, and MarkdownV2 formatting
- Message Management: Edit, delete, and forward messages
- Reply Functionality: Reply to specific messages
- Silent Notifications: Send messages without notifications
🖼️ Media & File Support #
- Photo Sharing: Send photos with captions via
sendPhoto()
- Video Support: Send videos with metadata via
sendVideo()
- Audio Files: Send audio with performer/title info via
sendAudio()
- Document Sharing: Send any document type via
sendDocument()
- Location Sharing: Send GPS coordinates via
sendLocation()
💬 Chat Management #
- Chat Information: Get detailed chat info with
getChat()
- Member Count: Get chat member statistics with
getChatMemberCount()
- Member Details: Get specific member info with
getChatMember()
- Bot Commands: Set and manage bot commands with
setMyCommands()
🌐 Web App Integration #
- Telegram Web Apps: Open Web Apps with
openWebApp()
- Inline Keyboards: Create interactive button URLs
- Share URLs: Generate content sharing links with
generateShareUrl()
🎨 Enhanced UI Features #
- Sticker Sets: Open sticker sets with
openStickerSet()
- Themes: Open Telegram themes with
openTheme()
- Better URL Handling: Improved URL generation and validation
🔧 Developer Experience #
- Comprehensive Example: Full-featured demo app with all APIs
- Better Error Handling: Detailed error messages and exception handling
- Type Safety: Improved type definitions and null safety
- Documentation: Complete API documentation and usage examples
🐛 Bug Fixes & Improvements #
- URL Encoding: Fixed special character handling in URLs
- Error Messages: More descriptive error messages
- Performance: Optimized API request handling
- Code Quality: Improved code structure and maintainability
0.0.9 #
📨 Send Message via Telegram 🔗 Telegram Link Generator 📌 Copy Telegram Link 💬 Open Chat Directly 📢 Join Telegram Channel/Group ✅ Check if Telegram is Installed 📞 Share Contact via Telegram 👥 Open Telegram Group 📷 Send Media via Telegram 🔍 Check Username Availability 🤖 Open Telegram Bot
0.0.7 #
Minor Updates
0.0.6 #
Updated README.md
0.0.5 #
Minor Updates
0.0.4 #
Updated Versions