Skip to content

Use branded types for dialog IDs in API methods and types #37

Description

@evermake

Currently, type and method definitions use types from Bot API docs (e.g. chat_id: number). I believe it is a good idea to use branded types from Dialog module for fields/parameters that represent Bot API dialog IDs. This will reduce chances of using wrong ID w/o runtime costs (see https://github.com/grom-dev/effect-tg#dialog-and-peer-ids).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions