Editable interface
Editable is implemented by any type that can identify a specific Telegram message via its ID and chat ID:
*Message object.
StoredMessage
StoredMessage is a ready-to-use Editable implementation designed for database storage:
Message as Editable
*Message implements Editable directly:
Custom Editable types
EmbedStoredMessage or implement MessageSig() on your own model:
Inline messages
For inline messages (sent via inline mode), there is nochat_id. Return 0 for chatID:
Related bot methods
| Method | Description |
|---|---|
b.Edit(msg Editable, what interface{}, opts ...interface{}) | Edit message text or media |
b.EditCaption(msg Editable, caption string, opts ...interface{}) | Edit media caption |
b.EditReplyMarkup(msg Editable, markup *ReplyMarkup) | Edit inline keyboard |
b.Delete(msg Editable) error | Delete a message |
b.Pin(msg Editable, opts ...interface{}) error | Pin a message in the chat |
b.Unpin(chat Recipient, opts ...interface{}) error | Unpin a pinned message |