(new): expand runtime APIs
(fix): harden concurrent lifecycle (tests): add regression coverage (doc): update v1.2 guidance
This commit is contained in:
+1
-2
@@ -52,13 +52,12 @@ func (bot *Bot[T]) handle(parentCtx context.Context, u *tgapi.Update) {
|
||||
sceneRuntime: bot,
|
||||
observer: bot.observer,
|
||||
eventEmitter: bot.safeEmitEvent,
|
||||
asyncTask: bot.startAsyncTask,
|
||||
payloadType: bot.payloadType,
|
||||
botID: bot.userID,
|
||||
ctx: ctx,
|
||||
}
|
||||
bot.prepareUpdateCtx(u, msgCtx)
|
||||
unlockScenes := bot.sceneLocks.lock(sceneKeysForContext(msgCtx))
|
||||
defer unlockScenes()
|
||||
bot.safeEmitEvent(ctx, UpdateReceivedEvent{
|
||||
UpdateID: u.UpdateID,
|
||||
UpdateType: u.Type,
|
||||
|
||||
Reference in New Issue
Block a user