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:
parent
271b1e9c2d
commit
50be83d212
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user