Comments (16)
${{display_name}}\nLink: ${{link}}
For the above example (Note: code omitted the asterisks (for bold)):
asterisk
dollar sign
two curly braces in
display_name
2 curly braces out
asterisk
backslash n
asterisk
Link
asterisk
colon
space
dollar sign
2 curly braces in
link
2 curly braces out
...
Please also see this: #351
Edit:
Please see this, regarding Portainer (add surrounding single quotes):
#154 (comment)
from tgtg.
Hi,
thank you for your fast reply. I just changed the input accordingly to your suggestion:
I get the following failure-message:
Also the closing with another $ shows the same message.
from tgtg.
Please see this, regarding Portainer:
#154 (comment)
from tgtg.
Hi @Schollino.
In Portainer you need to add quotes.
- 'TELEGRAM_BODY=*${{display_name}}*'
from tgtg.
I think this will not work ...
I am using the "Stack"-Feature in Portainer with the "editor", which obviously uses docker compose to create the container. The rest in the editor looks like this:
If I add the quotes, Portainer complains about this which results in a failure.
from tgtg.
Try this:
- "\'TELEGRAM_BODY=*${{display_name}}*\n*Link*: ${{link}}\'"
from tgtg.
I use portainer on docker swarm. My telegram config (working):
- 'TELEGRAM_BODY={{`*$${{display_name}}*\n*Anzahl*: $${{items_available}}\n*Wann*: $${{pickupdate}}\n*Wo*: $${{pickup_location}}\n*Preis*: $${{price}} $${{currency}}`}}'
from tgtg.
This entry is marked red in the portainer editor ...
... and leads to this error:
2024-01-28 14:45:54 ERROR Telegram Error: Can't parse entities: character '{' is reserved and must be escaped with the preceding ''. For details see https://github.com/Der-Henning/tgtg/wiki/Configuration#note-on-markdown-v2
from tgtg.
Any suggestions? :-(
from tgtg.
Any suggestions? :-(
Are you on the latest Portainer update?
from tgtg.
In my setup I use the compose version: "3.6"
.
from tgtg.
My version is 2.18.2. After an update, my version is 2.19.4.
In my Stack-Editor of the tgtg-container, my version is version: '3.3'
I do not understand, why every suggestion begins with an ' before TELEGRAM_BODY? I did not find any config for a docker container, where it is written like this - 'TELEGRAM_BODY ... By the way: also not in the example-config under https://hub.docker.com/r/derhenning/tgtg .
Could you maybe once share your config for docker/portainer or describe the way, you integrate this?
from tgtg.
The surrounding ' '
is a portainer thing. I don't know how I figured it out when I had the same problem, but the data you put in the portainer UI is not exactly the same as if you create a compose.yml
as you could also include environment variables in compose files.
The environment variables defined as list - key=value
are send as strings including key=value
to the container.
The ' '
should send the string as is to the compose backend.
Another way is to define them as key-value pairs with key: value
.
But you cannot mix both notations.
from tgtg.
I had the same issue with portainer, this is what worked for me:
- 'TELEGRAM_BODY=*$${{display_name}}*\n*Pickup*: $${{pickupdate}}\n*Order*: $${{link}}'
Kind of strange format tbh though.
If somebody could confirm this working, i think it would be nice to add this to the docs.
from tgtg.
Hi,
wow, I don't understand why, but it works!!!
We should really add this in the docs.
Thank you very much :-)
from tgtg.
This information was present in the docker-compose.yml until e6b4c07. Somehow in the transfer of the configration information from the docker-compose file to the wiki a lot of important information got lost. Can we maybe ether add this file back as an e.g., docker-compose.example.yml or add the missing information from there to the wiki (which configurations need special handling in docker compose files (including the 'TELEGRAM_BODY={{...
}}' thing), where to get a google maps API key from, ...)? @Der-Henning
from tgtg.
Related Issues (20)
- Warnings about telegram, although telegram is not enabled HOT 4
- Config not being parsed correctly from docker-compose file HOT 2
- FR: Expose reservations via API HOT 1
- adding and removing items from favorites does not work anymore HOT 1
- Beginner question HOT 1
- Canβt get pickup date in Locale French HOT 3
- Configuration Error: Syntactically invalid HELO argument(s) HOT 3
- Scanner ignoring ItemIDs config setting HOT 3
- Error "'NoneType' object has no attribute 'chat'" when attempting to reserve bag through telegram bot HOT 3
- [Feature-Request] Telegram: Only receive notifications for reservations HOT 1
- Failed to resolve 'api.github.com' HOT 1
- "WARNING No notifiers configured!" even though Apprise is enabled HOT 4
- 1.20.3 Windows executable trips multiple AV warnings HOT 4
- Total new to Coding HOT 1
- [Feature?] Adding SMS support
- configuration issues with SMTP (possibly idiot mistake) HOT 2
- Google Maps Geocoding API is overused? HOT 1
- ConnectionResetError when using metrics server and crawler requests metrics HOT 4
- Prebuilt binary for MacOS x64? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tgtg.