Closed wahidustoz closed 1 year ago
UpdateHandler class juda kop ish bajargani uchun uni tasklarini bo'lish kerak.
UPdate ichida userni ajratib olihs qismini extensino methodga chiqarish keark.
=> update.Type switch { UpdateType.Message => update.Message.From, UpdateType.EditedMessage => update.EditedMessage.From, UpdateType.CallbackQuery => update.CallbackQuery.From, UpdateType.InlineQuery => update.InlineQuery.From, _ => throw new Exception("We dont supportas update type {update.Type} yet") };
UpdateHandler class juda kop ish bajargani uchun uni tasklarini bo'lish kerak.
UPdate ichida userni ajratib olihs qismini extensino methodga chiqarish keark.