Skip to content

Commit

Permalink
tg_cli: add td_api::inputStoryAreaTypeWeather support.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Oct 16, 2024
1 parent e24c23a commit 1d5acce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions td/telegram/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1410,6 +1410,8 @@ class CliClient final : public Actor {
as_message_id(message_id));
} else if (area[0] == 'u') {
type = td_api::make_object<td_api::inputStoryAreaTypeLink>(area.substr(1));
} else if (area[0] == 'w') {
type = td_api::make_object<td_api::inputStoryAreaTypeWeather>(20.1, "☀️", to_integer<int32>(area.substr(1)));
}
result->areas_.push_back(td_api::make_object<td_api::inputStoryArea>(std::move(position), std::move(type)));
}
Expand Down

0 comments on commit 1d5acce

Please sign in to comment.