tom_chattools 2.0.0
tom_chattools: ^2.0.0 copied to clipboard
Unified chat API abstraction for Telegram, WhatsApp, Signal, and other messaging platforms.
2.0.0 #
- No third-party dependency. The Telegram backend calls the Bot API over
HTTP itself (
dart:io): long polling withgetUpdates,sendMessage, thesendDocument/sendPhoto/sendVideo/sendAudiouploads,getFile.televerseis gone, and with itfreezed3, which held the analyzer below 13 and kept every package takingtom_chattoolsoff a currenttom_d4rt. - Breaking:
ChatMessage.rawData['telegram_message']is the Bot APIMessageas JSON (aMap), no longer a televerseMessageobject. rawData['telegram_chat_id']: the chat a message came from (in a group not the sender's id).- A message the bot sent itself is marked
isSelf(the bot's id fromgetMe). TelegramChatConfig.apiBaseUrlandChatSettings.telegramApiBaseUrl: a local Bot API server or a test double instead ofhttps://api.telegram.org.- A refused Bot API call throws
TelegramApiException(method,errorCode,description). - No more debug output on stdout for every received message.
1.0.2 #
- Moved to tom_module_basics repository (from tom_module_communication).
- Updated repository and homepage URLs in pubspec.yaml.
1.0.1 #
- Changed license from MIT to BSD-3-Clause.
1.0.0 #
- Initial public release.
- Abstract
ChatApiinterface for platform-agnostic messaging. ChatMessage,ChatReceiver,ChatResponse,ChatSettingsdata models.- Telegram implementation via
TelegramChatwith polling-based message reception. - Support for text messages, photos, documents, audio, video, and voice attachments.
ChatConfigandTelegramChatConfigfor platform-specific configuration.