River documentation

River documentation

  • Documentation
  • Blog

›Message Drafts

User Authorization

  • User Authorization

Error Handling

  • Error Handling

PUSH-notifications

  • Handling PUSH-notifications

Handling Updates

  • Handling Updates

Pagination

  • Pagination

Message Drafts

  • Message Drafts

Encryption

  • Encryption

API methods

  • Available method list

Client Optimization

  • Client Optimization

Uploading and Downloading

  • Uploading and Downloading

Message Drafts

Because of being cross-platform, River makes it possible to type text into message fields through message drafts, so that it will be synced immediately in all of user's devices.

Drafts

DraftMessage constructor will render drafts.

Parameters:

NameTypeDescription
PeerIDint
PeerTypeint
Dateint
Bodystring
EntitiesMessageEntity
ReplyToint
EditedIdint

Saving drafts

To save drafts, the MessagesSaveDraft method will be called.

Parameters:

NameTypeDescription
PeerInputPeer
ReplyToint
Bodystring
EntitiesMessageEntity
EditedIDint

Downloading drafts

When UpdateDraftMessage updates, the new typed draft will automatically send to all user's devices including iOS, Web, Desktop, or ... .

Parameters:

NameTypeDescription
UCountint
UpdateIDint
MessageDraftMessage

Dialog objects fetched via the API also contain the draft associated with the dialog.

Clearing drafts

While the user sends messages using messages.sendMessege, or manually delete the text, a Peer parameter will be passed by MessagesClearDraft. As a result, Drafts will be cleared.

← PaginationEncryption →
  • Drafts
  • Saving drafts
  • Downloading drafts
  • Clearing drafts
Copyright © 2020 RonakSoftwareGroup