What CHAT_SEND_PLAIN_FORBIDDEN means
In the error table for the messages.sendMessage method, the code is described as: you cannot send text messages without media in this chat, with response code 403. It is a setting of one chat: the admins banned members from sending one type of message. A general refusal of the right to write comes as CHAT_WRITE_FORBIDDEN, which has its own page.
Related codes
Telegram has separate codes for attachments. They also come with response 403 and are listed in the table for the messages.sendMedia method.
CHAT_SEND_MEDIA_FORBIDDENbans attachments in general, whileCHAT_SEND_PHOTOS_FORBIDDENandCHAT_SEND_VIDEOS_FORBIDDENban only photos and videos.CHAT_SEND_DOCS_FORBIDDENis about files,CHAT_SEND_STICKERS_FORBIDDENabout stickers,CHAT_SEND_GIFS_FORBIDDENabout GIFs.CHAT_SEND_AUDIOS_FORBIDDEN,CHAT_SEND_VOICES_FORBIDDEN,CHAT_SEND_ROUNDVIDEOS_FORBIDDENandCHAT_SEND_POLL_FORBIDDENclose audio, voice messages, round videos and polls.
What to do
- Check the chat rules. Sometimes text is banned but media with a caption is allowed, and the other way around.
- If the ban hits your format, change the message format or do not write to this chat.
- Remove the chat from your list if the rules do not suit you. Sending again changes nothing.
How TG Combine handles it
A chat mailing skips chats where writing is not allowed and records the reason in the log. In the panel, CHAT_SEND_PLAIN_FORBIDDEN is labeled as a chat that accepts only media, and bans on media, photos, video and documents are labeled as a chat that bans attachments.