René's URL Explorer Experiment


Title: Make the fields of Telegram types really optional (right now LinkPreviewOptions, ReplyParameters only) by uralm1 · Pull Request #320 · reo7sp/tgbot-cpp · GitHub

Open Graph Title: Make the fields of Telegram types really optional (right now LinkPreviewOptions, ReplyParameters only) by uralm1 · Pull Request #320 · reo7sp/tgbot-cpp

X Title: Make the fields of Telegram types really optional (right now LinkPreviewOptions, ReplyParameters only) by uralm1 · Pull Request #320 · reo7sp/tgbot-cpp

Description: This PR is an example approach how to make optional fields of a secondary type classes really optional. I wrapped optional fields with boost::optional, right now only in LinkPreviewOptions, ReplyPa...

Open Graph Description: This PR is an example approach how to make optional fields of a secondary type classes really optional. I wrapped optional fields with boost::optional, right now only in LinkPreviewOptions, ReplyPa...

X Description: This PR is an example approach how to make optional fields of a secondary type classes really optional. I wrapped optional fields with boost::optional, right now only in LinkPreviewOptions, ReplyPa...

Opengraph URL: https://github.com/reo7sp/tgbot-cpp/pull/320

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:0ac5f754-7b7c-80ff-3bc7-41c496faa8e9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAB48:1DFAA9:720D4A1:9363856:6975A6EB
html-safe-noncefc1680dd6bb179ee86e09ffe981c26ebc70326b4dd9928cae149ca4e063106ab
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjQ4OjFERkFBOTo3MjBENEExOjkzNjM4NTY6Njk3NUE2RUIiLCJ2aXNpdG9yX2lkIjoiMjAwMzUwNTc4NDY4MjgxNzI1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace0e1302218c7b56c38a276adde44d4323229088c3a4bf011d795f8ab816bb2da
hovercard-subject-tagpull_request:2169407755
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/reo7sp/tgbot-cpp/320/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/487f6f2acef9745a57ba160a297908461d2a954a2e3b0282e84a34615cd3726e/reo7sp/tgbot-cpp/pull/320
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/487f6f2acef9745a57ba160a297908461d2a954a2e3b0282e84a34615cd3726e/reo7sp/tgbot-cpp/pull/320
og:image:altThis PR is an example approach how to make optional fields of a secondary type classes really optional. I wrapped optional fields with boost::optional, right now only in LinkPreviewOptions, ReplyPa...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameuralm1
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
go-importgithub.com/reo7sp/tgbot-cpp git https://github.com/reo7sp/tgbot-cpp.git
octolytics-dimension-user_id1623280
octolytics-dimension-user_loginreo7sp
octolytics-dimension-repository_id38309014
octolytics-dimension-repository_nworeo7sp/tgbot-cpp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38309014
octolytics-dimension-repository_network_root_nworeo7sp/tgbot-cpp
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Freo7sp%2Ftgbot-cpp%2Fpull%2F320
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Freo7sp%2Ftgbot-cpp%2Fpull%2F320
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=reo7sp%2Ftgbot-cpp
Reloadhttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
Reloadhttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
Reloadhttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
reo7sp https://patch-diff.githubusercontent.com/reo7sp
tgbot-cpphttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Freo7sp%2Ftgbot-cpp
Fork 263 https://patch-diff.githubusercontent.com/login?return_to=%2Freo7sp%2Ftgbot-cpp
Star 1.1k https://patch-diff.githubusercontent.com/login?return_to=%2Freo7sp%2Ftgbot-cpp
Code https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp
Issues 75 https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/issues
Pull requests 2 https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pulls
Discussions https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/discussions
Actions https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/actions
Security 0 https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/security
Insights https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pulse
Code https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp
Issues https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/issues
Pull requests https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pulls
Discussions https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/discussions
Actions https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/actions
Security https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/security
Insights https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Freo7sp%2Ftgbot-cpp%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Freo7sp%2Ftgbot-cpp%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#issue-comment-box
uralm1https://patch-diff.githubusercontent.com/uralm1
reo7sp:masterhttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/tree/master
uralm1:optional-fields-sendmessagehttps://patch-diff.githubusercontent.com/uralm1/tgbot-cpp/tree/optional-fields-sendmessage
Make the fields of Telegram types really optional (right now LinkPreviewOptions, ReplyParameters only) https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#top
uralm1https://patch-diff.githubusercontent.com/uralm1
reo7sp:masterhttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/tree/master
uralm1:optional-fields-sendmessagehttps://patch-diff.githubusercontent.com/uralm1/tgbot-cpp/tree/optional-fields-sendmessage
Conversation 8 https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
Commits 3 https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/commits
Checks 0 https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/checks
Files changed https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/files
Please reload this pagehttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/uralm1
uralm1https://patch-diff.githubusercontent.com/uralm1
Nov 8, 2024https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#issue-2643730386
#308https://github.com/reo7sp/tgbot-cpp/issues/308
Please reload this pagehttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
https://patch-diff.githubusercontent.com/uralm1
Wrap optional fields with boost::optional (LinkPreviewOptions, ReplyP…https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/commits/66b89bf4c6f285362480c15d4136e5f8d3b728a5
66b89bfhttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/commits/66b89bf4c6f285362480c15d4136e5f8d3b728a5
https://patch-diff.githubusercontent.com/Royna2544
Royna2544https://patch-diff.githubusercontent.com/Royna2544
Nov 13, 2024https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#issuecomment-2472319553
Please reload this pagehttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
https://github.com/Royna2544/tgbot-cpphttps://github.com/Royna2544/tgbot-cpp
Please reload this pagehttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
https://patch-diff.githubusercontent.com/uralm1
uralm1https://patch-diff.githubusercontent.com/uralm1
Nov 13, 2024https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#issuecomment-2474615617
https://github.com/Royna2544/tgbot-cpphttps://github.com/Royna2544/tgbot-cpp
Please reload this pagehttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
https://patch-diff.githubusercontent.com/Royna2544
Royna2544https://patch-diff.githubusercontent.com/Royna2544
Nov 14, 2024https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#issuecomment-2475183324
Please reload this pagehttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
https://patch-diff.githubusercontent.com/uralm1
uralm1https://patch-diff.githubusercontent.com/uralm1
force-pushedhttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/compare/cdfb903b627e2187b53768ca3f0d76dda98a2e38..d5a26908981a45e3ec895ca513713bf8f4bcad16
cdfb903https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/commit/cdfb903b627e2187b53768ca3f0d76dda98a2e38
d5a2690https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/commit/d5a26908981a45e3ec895ca513713bf8f4bcad16
Compare https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/compare/cdfb903b627e2187b53768ca3f0d76dda98a2e38..d5a26908981a45e3ec895ca513713bf8f4bcad16
November 17, 2024 20:12https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#event-15326104723
https://patch-diff.githubusercontent.com/uralm1
Add type templates Optional and Required, simplify parsershttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/commits/42567f5f5b79fe6595a529ce6450bcbf975fcbff
42567f5https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/commits/42567f5f5b79fe6595a529ce6450bcbf975fcbff
https://patch-diff.githubusercontent.com/uralm1
uralm1https://patch-diff.githubusercontent.com/uralm1
force-pushedhttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/compare/d5a26908981a45e3ec895ca513713bf8f4bcad16..42567f5f5b79fe6595a529ce6450bcbf975fcbff
d5a2690https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/commit/d5a26908981a45e3ec895ca513713bf8f4bcad16
42567f5https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/commit/42567f5f5b79fe6595a529ce6450bcbf975fcbff
Compare https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/compare/d5a26908981a45e3ec895ca513713bf8f4bcad16..42567f5f5b79fe6595a529ce6450bcbf975fcbff
November 17, 2024 20:31https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#event-15326154385
https://patch-diff.githubusercontent.com/w15eacre
w15eacrehttps://patch-diff.githubusercontent.com/w15eacre
Nov 17, 2024 https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#pullrequestreview-2441215351
View reviewed changes https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/files/42567f5f5b79fe6595a529ce6450bcbf975fcbff
include/tgbot/TgTypeParser.hhttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/files/42567f5f5b79fe6595a529ce6450bcbf975fcbff#diff-a1b07951e45bc129bde2224e911648308a4308fbe42a3758e4c5f27be39eb89c
Please reload this pagehttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
include/tgbot/Optional.hhttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/files/42567f5f5b79fe6595a529ce6450bcbf975fcbff#diff-afb32000ddaf43211e6c322f8604eea53206f68309a623f3f974446fa85c5b90
w15eacrehttps://patch-diff.githubusercontent.com/w15eacre
Nov 17, 2024https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#discussion_r1845641155
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
samples/echobot-curl-client/src/main.cpphttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/files/42567f5f5b79fe6595a529ce6450bcbf975fcbff#diff-aba948c46590372b3214264bd6c14f0b91a18bea48b8719908acc48a37aed210
Please reload this pagehttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
include/tgbot/TgTypeParser.hhttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/files/42567f5f5b79fe6595a529ce6450bcbf975fcbff#diff-a1b07951e45bc129bde2224e911648308a4308fbe42a3758e4c5f27be39eb89c
Please reload this pagehttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
https://patch-diff.githubusercontent.com/uralm1
uralm1https://patch-diff.githubusercontent.com/uralm1
November 18, 2024 07:57https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#event-15329865751
https://patch-diff.githubusercontent.com/uralm1
uralm1https://patch-diff.githubusercontent.com/uralm1
Nov 18, 2024 https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#ref-issue-2659624394
Problem with optional fields is not solved Royna2544/tgbot-cpp#6 https://patch-diff.githubusercontent.com/Royna2544/tgbot-cpp/issues/6
https://patch-diff.githubusercontent.com/uralm1
README.md, OptionalNullPtr<>, potential ub in sampleshttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/commits/d336b7a96ec8166835cc74303eaded3ee8815233
d336b7ahttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/commits/d336b7a96ec8166835cc74303eaded3ee8815233
https://patch-diff.githubusercontent.com/uralm1
uralm1https://patch-diff.githubusercontent.com/uralm1
force-pushedhttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/compare/8bdef9531e8626b6725f685c7f67ce4ef413640a..d336b7a96ec8166835cc74303eaded3ee8815233
8bdef95https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/commit/8bdef9531e8626b6725f685c7f67ce4ef413640a
d336b7ahttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/commit/d336b7a96ec8166835cc74303eaded3ee8815233
Compare https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/compare/8bdef9531e8626b6725f685c7f67ce4ef413640a..d336b7a96ec8166835cc74303eaded3ee8815233
November 22, 2024 18:25https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#event-15402235386
https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
Copilothttps://patch-diff.githubusercontent.com/apps/copilot-swe-agent
Dec 29, 2025 https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320#ref-pullrequest-3766176759
Add event handlers for message reactions, business accounts, and chat boosts Royna2544/tgbot-cpp#10 https://patch-diff.githubusercontent.com/Royna2544/tgbot-cpp/pull/10
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Freo7sp%2Ftgbot-cpp%2Fpull%2F320
https://patch-diff.githubusercontent.com/w15eacre
w15eacre https://patch-diff.githubusercontent.com/w15eacre
https://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320/files/42567f5f5b79fe6595a529ce6450bcbf975fcbff
Please reload this pagehttps://patch-diff.githubusercontent.com/reo7sp/tgbot-cpp/pull/320
https://patch-diff.githubusercontent.com/uralm1
https://patch-diff.githubusercontent.com/Royna2544
https://patch-diff.githubusercontent.com/w15eacre
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.