diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index 238939d2b..593f73a69 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -5631,9 +5631,11 @@ void HistoryWidget::destroyPinnedBar() { bool HistoryWidget::sendExistingDocument( not_null document, Api::SendOptions options) { - const auto error = _peer - ? Data::RestrictionError(_peer, ChatRestriction::f_send_stickers) - : std::nullopt; + const auto error = !_peer + ? std::nullopt + : document->sticker() + ? Data::RestrictionError(_peer, ChatRestriction::f_send_stickers) + : Data::RestrictionError(_peer, ChatRestriction::f_send_gifs); if (error) { Ui::show(Box(*error), Ui::LayerOption::KeepOther); return false;