Skip to content

NewEphemeralMessage - #84

Merged
iamwavecut merged 3 commits into
OvyFlash:masterfrom
Alexkurd:10.2_Ephemeral
Jul 15, 2026
Merged

NewEphemeralMessage#84
iamwavecut merged 3 commits into
OvyFlash:masterfrom
Alexkurd:10.2_Ephemeral

Conversation

@Alexkurd

Copy link
Copy Markdown

If the bot is a chat administrator, it can send an ephemeral message to any non-bot member of the chat at any time without needing to specify a callback_query_id or reply_parameters.ephemeral_message_id. In this case, the message may be delivered across multiple active client applications of the user, but is regardless not guaranteed to be delivered to any of them.

Direct version
curl -s -X POST "https://api.telegram.org/bot/sendMessage"
-d chat_id=<chat_id>
-d text="New Ephemeral"
-d receiver_user_id=<user_id>

@iamwavecut

Copy link
Copy Markdown
Collaborator

Pushed a small follow-up that reuses NewMessage, documents the admin/non-admin requirements, uses receiverUserID, adds direct-admin serialization coverage, and applies gofmt. This keeps the helper consistent with the existing constructor contract.

@iamwavecut
iamwavecut merged commit da9fd29 into OvyFlash:master Jul 15, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants