1.0.0 beta 4
This commit is contained in:
@@ -216,7 +216,12 @@ func (ctx *MsgContext) error(err error) {
|
||||
}
|
||||
func (ctx *MsgContext) Error(err error) { ctx.error(err) }
|
||||
|
||||
func (ctx *MsgContext) NewDraft() *Draft { return ctx.draftProvider.NewDraft() }
|
||||
func (ctx *MsgContext) NewDraft() *Draft {
|
||||
draft := ctx.draftProvider.NewDraft()
|
||||
draft.chatID = ctx.Msg.Chat.ID
|
||||
draft.messageThreadID = ctx.Msg.MessageThreadID
|
||||
return draft
|
||||
}
|
||||
func (ctx *MsgContext) Translate(key string) string {
|
||||
if ctx.From == nil {
|
||||
return key
|
||||
|
||||
Reference in New Issue
Block a user