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 Denis Fedoseev
parent 7a8d1a12c7
commit 4222cc674d

View file

@ -512,7 +512,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"]