overtake / TelegramSwift

Source code of Telegram for macos on Swift 5.0
https://macos.telegram.org
GNU General Public License v2.0
4.9k stars 815 forks source link

Telegram does not reset input placeholder to default after setting it with bot API #1103

Open britanik opened 2 months ago

britanik commented 2 months ago

If bot sends message like so:

{ ... reply_markup: { ... input_field_placeholder: 'Write about yourself', force_reply: true } }

client will replace default message input placeholder with text "Write about yourself".

If later I want to reset it to default, I send force_reply: false and input_field_placeholder: undefined. But client ignores it and keeps "Write about yourself" placeholder. To reset it I need to close the chat and open it again. Other clients (Desktop and iPhone) handles it correctly.