Fix not all possible destinations shown to forward a message.

This commit is contained in:
Mikhail Barashkov 2024-01-01 19:30:57 +03:00 committed by Slava Monich
parent 2fad48e359
commit e0019d33d6

View file

@ -517,7 +517,7 @@ function handleErrorMessage(code, message) {
}
function getMessagesNeededForwardPermissions(messages) {
var neededPermissions = ["can_send_messages"]
var neededPermissions = ["can_send_basic_messages"]
var mediaMessageTypes = ["messageAudio", "messageDocument", "messagePhoto", "messageVideo", "messageVideoNote", "messageVoiceNote"]
var otherMessageTypes = ["messageAnimation", "messageGame", "messageSticker"]