File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ NUXT_AI_SERVICE_TOKEN=
2323NUXT_AI_DAILY_REPORT_PROMPT =
2424
2525# Telegram
26+ NUXT_TELEGRAM_LOCAL_BOT_API_SERVER_URL =
2627NUXT_TELEGRAM_ADMIN_ID =
2728NUXT_TELEGRAM_WASABI_BOT_ID =
2829NUXT_TELEGRAM_ATRIUM_BOT_ID =
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export default defineNuxtConfig({
2121 dailyReportPrompt : '' ,
2222 } ,
2323 telegram : {
24+ localBotApiServerUrl : '' ,
2425 wasabiBotId : '' ,
2526 atriumBotId : '' ,
2627 orderBotId : '' ,
Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ export async function useCreateWasabiBot() {
1818 throw new Error ( 'Wasabi bot is not configured' )
1919 }
2020
21- bot = new Bot ( token )
21+ bot = new Bot ( token , {
22+ client : { apiRoot : telegram . localBotApiServerUrl } ,
23+ } )
2224
2325 bot . on ( 'message:text' , async ( ctx ) => {
2426 if ( ctx . hasCommand ( 'start' ) ) {
You can’t perform that action at this time.
0 commit comments