Changes
- ~170 new high-level methods: chat administration, invite links, forums, stories, folders, sticker sets, profile, contacts, bot configuration and account settings
- Rich messages (Layer 228):
Rich.markdown()/Rich.html()/Rich.blocks()to send,message.richMarkdown/richHtml/richTextto read - Polls and quizzes:
sendPoll,vote,closePoll - Scheduled messages, drafts,
copyMessages,getMessageByLink,translateTextandsetTyping iterDownloadstreams a file chunk by chunk instead of buffering itDialoggainedsend,markAsRead,archive,pinanddelete- Message and file methods now accept every field their requests support: quoted replies, spoilers, self-destruct timers, video covers, paid messages and quick-reply shortcuts
- Documentation is grouped by category and its search covers comments
Breaking
message.delete()andcallbackQuery.delete()now delete for everyone; pass{ revoke: false }for your side onlyclosePollreturns the closedApi.Pollinstead of a messagemarkAsReadclears mentions only withclearMentions: true, previously the opposite- Node.js 18 or newer is required (#33)
Fixes
- Channel posts are no longer lost when they arrive during an update difference (#35)
- Sign in with a web authorization token via
signInWithWebToken(#34) - Quiz polls are no longer rejected by the server
- Downloads accept a message directly again
- Albums and messages with files no longer drop
sendAs,effect,invertMedia, thumbnails and progress callbacks - A reconnect while signing in is no longer reported as an error
Upgrade
npm i teleproto@latest