From 6002d3ff3859a322ab4e288d9d07edb1d9e64739 Mon Sep 17 00:00:00 2001 From: Gil Lohner Date: Sun, 6 Oct 2024 00:03:47 +0200 Subject: [PATCH] organisator added --- handlers/meetupHandlers/meetupSuggestionHandler.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handlers/meetupHandlers/meetupSuggestionHandler.js b/handlers/meetupHandlers/meetupSuggestionHandler.js index 8de736a..d6ab630 100644 --- a/handlers/meetupHandlers/meetupSuggestionHandler.js +++ b/handlers/meetupHandlers/meetupSuggestionHandler.js @@ -97,6 +97,9 @@ const handleEventCreationStep = async (bot, msg) => { switch (step) { case 'title': + const username = msg.chat.username; + userStates[chatId].event.tg_user_link = `https://t.me/${username}` + userStates[chatId].event.title = text; userStates[chatId].step = 'date'; bot.sendMessage(chatId, 'Super! Nun gib bitte das Datum des Events ein (Format: YYYY-MM-DD):\n\nOder tippe /cancel um abzubrechen.', {