Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendMessage: disable_web_page_preview #186

Open
dmnc-net opened this issue Dec 4, 2021 · 1 comment
Open

sendMessage: disable_web_page_preview #186

dmnc-net opened this issue Dec 4, 2021 · 1 comment

Comments

@dmnc-net
Copy link

dmnc-net commented Dec 4, 2021

Please is it possible to implement disable_web_page_preview=True parameter for the sendMessage API method?

@gnadelwartz
Copy link
Collaborator

gnadelwartz commented Dec 4, 2021

May be I extend the send_message functions to send any additional parameter, but this needs some thougths on how to do without breaking existing scripts.

If you need it urgent you may try to use the internal function '_format_message_url()' wiith hand crafted 'disable_web_preview' e.g. (not tested):

_format_message_url "${CHAT_ID}" "${TEXT}" ',"disable_web_page_preview":"true"' "${MSG_URL}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants