yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.45k stars 1.53k forks source link

feature request: edit multiple messages in one API call #908

Closed mikelpr closed 2 years ago

mikelpr commented 3 years ago

Feature Request

I have:

Introduction

A way to batch multiple message edits in one call, to avoid hitting API limits so easily

Example

bot.editMessageText([
  {text1, {message_id_1, chat_id}},
  {text2, {message_id_2, chat_id}},
  {text3, {message_id_3, chat_id}},
  {text4, {message_id_4, chat_id}},
])

Question

is this limited by telegram's API and therefore impossible?

toniop99 commented 2 years ago

Hello!

This is not allowed by the Telegram API

kamikazechaser commented 2 years ago

You could look into https://github.com/gochomugo/tgfancy, maybe fork and update it and use with Promise.all