Closed wahidustoz closed 1 year ago
IBotReponseService degan interface yarating. Uni ichida quyidaig methodlar bo'ladi.
ValueTask<(long ChatId, long MessageId)> SendGreetingAsync(long chatId, CancellationToken cancellationToken = default);
ValueTask<(long ChatId, long MessageId)> SendMainMenuAsync(long chatId, CancellationToken cancellationToken = default);
ValueTask<(long ChatId, long MessageId)> SendLanguageRequestKeyboardAsync(long chatId, CancellationToken cancellationToken = default);
vhk. Qolgan barcha clikent ga habar jonatuvchi qismlarni shu inteface orqali bajaaramiz.
Bu inteface ichida private methodlari bo'lgani yaxhsi.
Hamma uchun Algorithm challenge:
IBotReponseService degan interface yarating. Uni ichida quyidaig methodlar bo'ladi.
ValueTask<(long ChatId, long MessageId)> SendGreetingAsync(long chatId, CancellationToken cancellationToken = default);
ValueTask<(long ChatId, long MessageId)> SendMainMenuAsync(long chatId, CancellationToken cancellationToken = default);
ValueTask<(long ChatId, long MessageId)> SendLanguageRequestKeyboardAsync(long chatId, CancellationToken cancellationToken = default);
vhk. Qolgan barcha clikent ga habar jonatuvchi qismlarni shu inteface orqali bajaaramiz.
Bu inteface ichida private methodlari bo'lgani yaxhsi.
Hamma uchun Algorithm challenge: