mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-13 04:37:11 +02:00
Version 4.14.13: Always send webpages optionally.
If the link cannot be displayed everywhere (channel blocked in some countries) the send request without `optional` flag fails.
This commit is contained in:
parent
6185fa980d
commit
2f0b50cb37
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ MTPInputMedia WebPageForMTP(
|
|||
bool required) {
|
||||
using Flag = MTPDinputMediaWebPage::Flag;
|
||||
return MTP_inputMediaWebPage(
|
||||
MTP_flags((required ? Flag() : Flag::f_optional)
|
||||
MTP_flags(((false && required) ? Flag() : Flag::f_optional)
|
||||
| (draft.forceLargeMedia ? Flag::f_force_large_media : Flag())
|
||||
| (draft.forceSmallMedia ? Flag::f_force_small_media : Flag())),
|
||||
MTP_string(draft.url));
|
||||
|
|
Loading…
Add table
Reference in a new issue