1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-12-03 13:40:11 +01:00

Fix bots can't edit message

This commit is contained in:
NekoInverter 2020-02-08 10:51:37 +08:00
parent 271b1e9c2d
commit 50be83d212

View File

@ -14359,7 +14359,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
updatePinnedMessageView(true);
updateVisibleRows();
if (!messageObject.scheduled) {
if (!messageObject.scheduled && !UserConfig.getInstance(currentAccount).isBot) {
TLRPC.TL_messages_getMessageEditData req = new TLRPC.TL_messages_getMessageEditData();
req.peer = getMessagesController().getInputPeer((int) dialog_id);
req.id = messageObject.getId();