Skip to content

Commit

Permalink
TgBotApi: Simplify call to resloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Royna2544 committed Dec 1, 2024
1 parent 486f8ed commit 682a3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/TgBotApiImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void TgBotApiImpl::commandHandler(const std::string& command,
}

const auto msgLocale = ext->get_or<MessageAttrs::Locale>(Locale::Default);
module->_module->function(this, ext.get(), (*_loader).at(msgLocale),
module->_module->function(this, ext.get(), _loader->at(msgLocale),
_provider);
}

Expand Down

0 comments on commit 682a3d1

Please sign in to comment.