mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Sending icon is displayed in the inline keyboard callback button.
This commit is contained in:
@@ -374,6 +374,7 @@ private:
|
||||
protected:
|
||||
void paintButtonBg(Painter &p, const QRect &rect, bool down, float64 howMuchOver) const override;
|
||||
void paintButtonIcon(Painter &p, const QRect &rect, HistoryMessageReplyMarkup::Button::Type type) const override;
|
||||
void paintButtonLoading(Painter &p, const QRect &rect) const override;
|
||||
int minButtonWidth(HistoryMessageReplyMarkup::Button::Type type) const override;
|
||||
|
||||
private:
|
||||
@@ -622,7 +623,6 @@ public:
|
||||
void onListEscapePressed();
|
||||
|
||||
void sendBotCommand(PeerData *peer, const QString &cmd, MsgId replyTo);
|
||||
void sendBotCallback(PeerData *peer, const QByteArray &data, MsgId replyTo);
|
||||
bool insertBotCommand(const QString &cmd, bool specialGif);
|
||||
|
||||
bool eventFilter(QObject *obj, QEvent *e) override;
|
||||
@@ -668,6 +668,8 @@ public:
|
||||
|
||||
bool isItemVisible(HistoryItem *item);
|
||||
|
||||
void app_sendBotCallback(const HistoryMessageReplyMarkup::Button *button, const HistoryItem *msg, int row, int col);
|
||||
|
||||
void ui_repaintHistoryItem(const HistoryItem *item);
|
||||
void ui_repaintInlineItem(const InlineBots::Layout::ItemBase *gif);
|
||||
bool ui_isInlineItemVisible(const InlineBots::Layout::ItemBase *layout);
|
||||
@@ -881,8 +883,12 @@ private:
|
||||
void addMessagesToFront(PeerData *peer, const QVector<MTPMessage> &messages, const QVector<MTPMessageGroup> *collapsed);
|
||||
void addMessagesToBack(PeerData *peer, const QVector<MTPMessage> &messages, const QVector<MTPMessageGroup> *collapsed);
|
||||
|
||||
void botCallbackDone(const MTPmessages_BotCallbackAnswer &answer);
|
||||
bool botCallbackFail(const RPCError &error);
|
||||
struct BotCallbackInfo {
|
||||
FullMsgId msgId;
|
||||
int row, col;
|
||||
};
|
||||
void botCallbackDone(BotCallbackInfo info, const MTPmessages_BotCallbackAnswer &answer, mtpRequestId req);
|
||||
bool botCallbackFail(BotCallbackInfo info, const RPCError &error, mtpRequestId req);
|
||||
|
||||
enum ScrollChangeType {
|
||||
ScrollChangeNone,
|
||||
|
Reference in New Issue
Block a user