Skip to content

How to make it so that tdlib operates like a daemon? #139

@bangonkali

Description

@bangonkali

Is there any sample in C# such that tdlib operates like a daemon and continues to update db.sqlite with new data as updated information is received?

Somehow this example from tdlib can do client_manager_->receive(10).

  void loop() {
    while (true) {
      if (need_restart_) {
        restart();
      } else if (!are_authorized_) {
        process_response(client_manager_->receive(10));
      } else {

Is there a way to mirror this Using strongly typed APIs?

Or do I have to use the untyped version to be able to make some sort of daemon approach?

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions