Can't remove timestamp from chatbot
# 🤝help
b
I tried removing the timestamp trough the .init as described in the docs. Somehow the timestamp still appears in the chatbot. Here my code: >
Copy code
<script src="https://cdn.botpress.cloud/webchat/v0/inject.js"></script>
> <script>
>   window.botpressWebChat.init({'composerPlaceholder': 'Hier die Nachricht eingeben...',
>       'botConversationDescription': 'Stellen Sie alle Ihre Fragen & Anliegen hier.',
>       'botId': 'xxx',
>       'hostUrl': 'https://cdn.botpress.cloud/webchat/v0',
>       'messagingUrl': 'https://messaging.botpress.cloud',
>       'clientId': 'xxx',
>       'botName': 'xxx',
>       'avatarUrl': 'xxx',
>       'phoneNumber': 'xxx',
>       'privacyPolicy': 'xxx',
>       'emailAddress': 'xxx',
>       'website': 'xxx',
>       'stylesheet': 'https://webchat-styler-css.botpress.app/prod/84663240-cfbf-4df4-a4df-ce7009012705/v32854/style.css',
>       'showBotInfoPage': false,
>       'enableConversationDeletion': true,
>           'enableTranscriptDownload': false,
>             'showConversationsButton': false,
>             'enablePersistHistory': false,
>             'showTimestamp': false,
>             'useSessionStorage': true
>   });
> </script>
f
i also had something similar to this before. Here's what worked for me: replace
'showTimestamp': false,
with
"showTimeStamp": "false",
b
Thanks. I confused the timestamp under the message with the timestamp above every new session (attached in the picture). So I will change my question into: is there a possibility to remove this mentioned timestampt (or at least change to format of time & date).
f
In your CSS stylesheet for the bot, try this: .bpw-date-container{ visibility: hidden; } .bpw-small-line{ visibility: hidden; }
b
Worked, fine. Thanks!
41 Views