yao/integrations/telegram/types.go
Max ea9e070f29 Enhance robot integration with Telegram and improve event handling
- Add Telegram integration support by introducing a dispatcher for handling Telegram events and messages.
- Implement event notifications for robot configuration changes (creation, update, deletion) to facilitate integration with external services.
- Refactor the robot initialization process to load robots into cache and start the dispatcher, improving the overall system setup.
- Update the delivery event structure to include additional metadata for better context during message handling.
- Enhance logging capabilities for better observability during robot execution and event processing.
2026-03-01 22:03:25 +08:00

21 lines
556 B
Go

package telegram
import "github.com/go-telegram/bot/models"
// Re-export SDK types so adapter code imports from one place.
// When the SDK upgrades, any breaking field changes surface here at compile time.
type (
Update = models.Update
Message = models.Message
User = models.User
Chat = models.Chat
PhotoSize = models.PhotoSize
Document = models.Document
Voice = models.Voice
Video = models.Video
Sticker = models.Sticker
Audio = models.Audio
Animation = models.Animation
MessageEntity = models.MessageEntity
)